Difference between revisions of "Template:Refname rules"

From blackwiki
Jump to navigation Jump to search
test>AlanM1
(Clarify that quoted names are different than unquoted)
test>Margin1522
(minor change in order. Logically, "quotes are required" should come before the type of quotes that are required.)
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
 
* Quotes are optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols <code>!$%&()*,-.:;<@[]^_`{|}~</code>
 
* Quotes are optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols <code>!$%&()*,-.:;<@[]^_`{|}~</code>
* The quote marks must be the standard keyboard marks (<code>"</code>); curly or other quotes will be parsed as part of the reference name.
+
* Inclusion of any other characters, ''including spaces'', requires that the name be enclosed in quotes (<code>"</code>)
* Inclusion of any other characters, ''including spaces'', requires that the name be enclosed in double straight quotes (<code>"</code>)
+
* 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.
 
* If a name is quoted when defined, it must also be quoted for additional invocations (i.e. <code>name="something"</code> is not the same as <code>name=something</code>).
 
* If a name is quoted when defined, it must also be quoted for additional invocations (i.e. <code>name="something"</code> is not the same as <code>name=something</code>).
 
* Quote-enclosed names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>){{#if: {{{2|}}}|
 
* Quote-enclosed names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>){{#if: {{{2|}}}|

Revision as of 01:35, 26 November 2014

Template documentation[create]