Difference between revisions of "Template:Refname rules"

From blackwiki
Jump to navigation Jump to search
test>SMcCandlish
(HTML escape codes)
test>Valjean
(to avoid confusion, and use a real example with a space. It MUST have quotes.)
Line 4: Line 4:
 
* Names must be unique—you cannot use the same name to define different groups or footnotes
 
* Names must be unique—you cannot use the same name to define different groups or footnotes
 
* Quotation marks are optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols <code>!$%&()*,-.:;<@[]^_`{|}~</code>.
 
* Quotation marks are optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols <code>!$%&()*,-.:;<@[]^_`{|}~</code>.
* Inclusion of any other characters, {{em|including spaces}}, requires that the name be enclosed in quotes: <code>name="<var>refname</var>"</code> (since not all later editors will know of this technical restriction, it is safest to always quote the name).
+
* Inclusion of any other characters, {{em|including spaces}}, requires that the name be enclosed in quotes: <code>name="<var>John Smith</var>"</code> (since not all later editors will know of this technical restriction, it is safest to always quote the name).
 
* The quote marks must be the standard straight keyboard marks (<code>"</code>); curly or other quotes will be parsed as part of the reference name.
 
* The quote marks must be the standard straight keyboard marks (<code>"</code>); curly or other quotes will be parsed as part of the reference name.
 
* Quote-enclosed names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>). These may be escaped with <code>&amp;lt;</code> and <code>&amp;quot;</code>, respectively.{{#if: {{{2|}}}|
 
* Quote-enclosed names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>). These may be escaped with <code>&amp;lt;</code> and <code>&amp;quot;</code>, respectively.{{#if: {{{2|}}}|

Revision as of 20:27, 7 September 2015

Template documentation[create]