Difference between revisions of "Template:Refname rules"

From blackwiki
Jump to navigation Jump to search
test>D'Ranged 1
(→‎top: Add spacing for readability; remove very bad advice to always use quotation marks even when they're not needed.)
(Explicitly list forbidden characters, for clarity.)
Line 2: Line 2:
 
* Names are case-sensitive
 
* Names are case-sensitive
 
* Names may not be purely numeric
 
* Names may not be purely numeric
* Names must be unique—you cannot use the same name to define different groups or footnotes
+
* Names must be unique—you may not use the same name to define different groups or footnotes
 
* Quotation marks are optional if the only characters used are letters <code>A–Z</code>, <code>a–z</code>, digits <code>0–9</code>, and the symbols <code> ! $ % & ( ) * , - . : ; < @ [ ] ^ _ ` { | } ~ </code>.
 
* Quotation marks are optional if the only characters used are letters <code>A–Z</code>, <code>a–z</code>, digits <code>0–9</code>, and the symbols <code> ! $ % & ( ) * , - . : ; < @ [ ] ^ _ ` { | } ~ </code>.
 +
** The forbidden printable ASCII characters are <code> # " ' / = > ? \ </code>.
 
* Inclusion of any other characters, {{em|including spaces}}, requires that the reference name be enclosed in quotes: <code>name="<var>John Smith</var>"</code>.
 
* Inclusion of any other characters, {{em|including spaces}}, requires that the reference name be enclosed in quotes: <code>name="<var>John Smith</var>"</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.
 
* 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.

Revision as of 07:17, 21 August 2016

Template documentation[create]