Help:Cite messages

The WikiQueer footnotes system uses the Cite.php software extension to generate references. MediaWiki messages are then used to format the display of the inline links and the references.

Elements

 * Inline link: the link shown by the content enclosed in ; shown in superscript and enclosed in brackets; coded in the MediaWiki message as $2
 * Backlink: the link shown in the references section; a single link is shown as a caret; coded as $2
 * Backlink label: multiple backlinks are shown as a caret followed alpha character labels
 * ID: a unique HTML ID that does not show; coded as $1
 * Reference content: the content enclosed in  that shows in the reference list; coded as $3

Messages
{| class="wikitable" ! MediaWiki interface page !! Use !! Current
 * Cite reference link || format inline link ||  [&#60;/nowiki> $3  ]&#60;/nowiki>
 * Cite reference link || format inline link ||  [&#60;/nowiki> $3  ]&#60;/nowiki>


 * $1 = Cite reference link prefix + reference name + numeric starting with 0


 * $2 = inline link number starting with 1
 * Cite references link many || format reference with multiple backlinks || ^ $2 $3
 * Cite references link many and || || space
 * Cite references link many format || || $3
 * Cite references link many format backlink labels || backlink labels used in the reference list || currently from a to azz
 * Cite references link many sep || || space
 * Cite references link one || format reference with single backlink || ^ $3
 * Cite references prefix || prefix for ||
 * Cite references suffix || suffix for || 
 * Cite reference link key with num || unknown || $1_$2
 * Cite reference link prefix || inline link prefix || cite_ref-
 * Cite reference link suffix || inline link suffix || unused
 * Cite references link prefix || reference list link prefix || cite_note-
 * Cite references link suffix || reference list link suffix|| unused
 * Cite-desc || Description for the cite extension as shown in Special:Version || Adds  and
 * Cite references suffix || suffix for || 
 * Cite reference link key with num || unknown || $1_$2
 * Cite reference link prefix || inline link prefix || cite_ref-
 * Cite reference link suffix || inline link suffix || unused
 * Cite references link prefix || reference list link prefix || cite_note-
 * Cite references link suffix || reference list link suffix|| unused
 * Cite-desc || Description for the cite extension as shown in Special:Version || Adds  and
 * Cite reference link suffix || inline link suffix || unused
 * Cite references link prefix || reference list link prefix || cite_note-
 * Cite references link suffix || reference list link suffix|| unused
 * Cite-desc || Description for the cite extension as shown in Special:Version || Adds  and
 * Cite references link suffix || reference list link suffix|| unused
 * Cite-desc || Description for the cite extension as shown in Special:Version || Adds  and
 * Cite-desc || Description for the cite extension as shown in Special:Version || Adds  and

Class .references formats the reference list; defined in Common.css When the inline cite link is clicked, the focus jumps to the proper cite in the reference list. The following rules highlight the cite in light blue. This is supported by Gecko (FireFox) and Webkit (Safari, Chrome) browsers; it is not supported by current versions of Trident, but does work in the Internet Explore 9 platform preview.

Although not specific to references, Common.css does have this line height rule to keep line spacing from breaking on subscript and superscript, as used in the inline link. Internet Explorer 7 has problems with  when printing, so it is disabled for IE7 through Common.js.

Markup
This is the markup for some simple references

Unamed

Named

Named reference used again

Which shows as

Unnamed

Named

Named reference used again

Which renders as

The MediaWiki messages are combined to form the HTML output

Unamed <sup id="cite_ref-0" class="reference"><a href="#cite_note-0" title=""> [ 1 ] </a> Named <sup id="cite_ref-named_1-0" class="reference"><a href="#cite_note-named-1" title=""> [ 2 ] </a> Named reference used again <sup id="cite_ref-named_1-1" class="reference"><a href="#cite_note-named-1" title=""> [ 2 ] </a>  <li id="cite_note-0"><a href="#cite_ref-0" title="">^</a> This is an unnamed reference</li> <li id="cite_note-named-1">^ <a href="#cite_ref-named_1-0" title="">a</a> <a href="#cite_ref-named_1-1" title="">b</a> This is a named reference</li> </ol>

If citation templates are used, they will inject other classes and ids into the HTML output.