Difference between revisions of "Template:Refname rules"
Jump to navigation
Jump to search
test>Checkingfax (copy edit refine; remove extra whitespace) |
test>D'Ranged 1 (→top: Add spacing for readability; remove very bad advice to always use quotation marks even when they're not needed.) |
||
Line 3: | Line 3: | ||
* 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 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 <code>A–Z</code>, <code>a–z</code>, digits <code>0–9</code>, and the symbols <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. | ||
* Quote-enclosed reference names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>). These may be escaped with <code>&lt;</code> and <code>&quot;</code>, respectively.{{#if: {{{2|}}}| | * Quote-enclosed reference names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>). These may be escaped with <code>&lt;</code> and <code>&quot;</code>, respectively.{{#if: {{{2|}}}| |