Difference between revisions of "Template:Refname rules"
Jump to navigation
Jump to search
test>Valjean (to avoid confusion, and use a real example with a space. It MUST have quotes.) |
test>Checkingfax (copy edit) |
||
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>John Smith</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 reference 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 put quote marks around 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. | * 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>&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|}}}| |
{{{2}}}}} | {{{2}}}}} | ||
− | * Please consider keeping names simple and restricted to the standard [[English alphabet]] and numerals. | + | * Please consider keeping reference names simple and restricted to the standard [[English alphabet]] and numerals. |
− | * You may optionally provide names even when the name is not required. This makes later re-use of the | + | * You may optionally provide names even when the name is not required. This makes later re-use of the sourced reference easier.</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |