Difference between revisions of "Template:Refname rules"
Jump to navigation
Jump to search
test>Margin1522 (Delete rule that (probably) used to be true, but isn't anymore. See Talk.) |
test>SMcCandlish (Use the quotes - you have no idea what later editors will do or understand.) |
||
| 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>. |
| − | * Inclusion of any other characters, | + | * 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). |
* 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>){{#if: {{{2|}}}| | * Quote-enclosed names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>){{#if: {{{2|}}}| | ||
{{{2}}}}} | {{{2}}}}} | ||
* Please consider keeping names simple and restricted to the standard [[English alphabet]] and numerals. | * Please consider keeping 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 source easier.</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||