Details pages -- conventions: Difference between revisions
From Genecats
Jump to navigationJump to search
(added note that SOE links should use ".soe." instead of ".cse." (per Jorge)) |
(giving examples of html coding.) |
||
Line 6: | Line 6: | ||
# Keep lines in the source page to 100 characters or less. | # Keep lines in the source page to 100 characters or less. | ||
# Quotes, ampersands, less than and greater than signs, and degree symbols should be represented with their [[http://www.ascii.cl/htmlcodes.htm html names]]. | # Quotes, ampersands, less than and greater than signs, and degree symbols should be represented with their [[http://www.ascii.cl/htmlcodes.htm html names]]. For example <code>&quot;</code> for " and <code>&amp;</code> for & and <code>&lt;</code> for < and <code>&gt;</code> for > and <code>&deg;</code> for °. | ||
# Email addresses should go through Hiram's sanitizer (encodeEmail.pl). It turns the address into an encrypted HREF "mailto:" address that makes it harder for spammers to use. | # Email addresses should go through Hiram's sanitizer (encodeEmail.pl). It turns the address into an encrypted HREF "mailto:" address that makes it harder for spammers to use. | ||
# The "Display Conventions and Configuration" section should cover all track types. | # The "Display Conventions and Configuration" section should cover all track types. |
Revision as of 18:13, 18 August 2016
Details pages should be consistent from track to track.
To ease the burden on QA, developers are requested to:
- Keep lines in the source page to 100 characters or less.
- Quotes, ampersands, less than and greater than signs, and degree symbols should be represented with their [html names]. For example
"
for " and&
for & and<
for < and>
for > and°
for °. - Email addresses should go through Hiram's sanitizer (encodeEmail.pl). It turns the address into an encrypted HREF "mailto:" address that makes it harder for spammers to use.
- The "Display Conventions and Configuration" section should cover all track types.
- For ENCODE tracks, the page should include contact information for the submitting lab.
- Links to pages outside of the Genome Browser should open in a new window.
- Do not include punctuation in link names. For example:
>link name</A>.
not
>link name.</A>
- Links to our own SOE pages should use ".soe." in the URL, not ".cse." E.g., http://hgdownload.soe.ucsc.edu/
Grammar/punctuation notes:
- Units should be separated from the numbers by a space: "200 bp", not "200bp".
- We are using data as a plural noun. "Data are" not "Data is."
- "It's" means "It is." "Its" is possessive.
- Use American spellings: analyze, minimize, color, etc.
References
- All references to websites not in our domain require the TARGET = _BLANK tag.
- Papers are referenced with outlinks in one place at the bottom of the page only, not in the text above. In the text we simply say something like "Euskirchen, et al., 2007". Particularly if the paper is in preprint or Epub, we then only have to change the ref in one place.
- Refs are in PubMed format (see CBSE_citation_format).
- Refs with many authors are truncated to 10 authors and et al (which should be italicized).
- Refs are in alphabetical order by first author's last name.