Template:Refname rules: Difference between revisions

From WWII Archives

m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
* Names should have semantic value, so that they can be more easily distinguished from each other by human editors who are looking at the wikitext.  This means that ref names like <code>"Nguyen 2010"</code> are preferred to names like <code>":31337"</code>.
* Names should have semantic value, so that they can be more easily distinguished from each other by human editors who are looking at the wikitext.  This means that ref names like <code>"Nguyen 2010"</code> are preferred to names like <code>":31337"</code>.
* Names must be unique. You may not use the same name to define different groups or footnotes. Try to avoid picking a name that someone else is likely to choose for a new citation, such as <code>":0"</code> or <code>"NYT"</code>.
* Names must be unique. You may not use the same name to define different groups or footnotes. Try to avoid picking a name that someone else is likely to choose for a new citation, such as <code>":0"</code> or <code>"NYT"</code>.
* Please consider keeping reference names simple and restricted to the standard [[English alphabet]] and numerals. If spaces are used, the following technical restrictions become relevant:
* Please consider keeping reference names short, simple, and restricted to the standard [[English alphabet]] and numerals. If spaces are used, the following technical restrictions become relevant:
** Quotation marks are preferred but 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  style="word-break: break-all;">!$%&()*,-.:;<@[]^_`{|}~</code>. That is, all printable ASCII characters except <code style="word-break: break-all;">#"'/=<>?\</code> and space.  
** Quotation marks are preferred but 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  style="word-break: break-all;">!$%&()*,-.:;<@[]^_`{|}~</code>. That is, all printable ASCII characters except <code style="word-break: break-all;">#"'/=<>?\</code> and space.  
** Inclusion of any other characters, {{em|including spaces}}, requires that the reference name be enclosed in quotes; for example, <code>name="John Smith"</code>. But quote-enclosed reference names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>), which may however be included by [[Escape sequence|escaping]] as <code>&amp;lt;</code> and <code>&amp;quot;</code> respectively.{{#if: {{{2|}}}|
** Inclusion of any other characters, {{em|including spaces}}, requires that the reference name be enclosed in quotes; for example, <code>name="John Smith"</code>. But quote-enclosed reference names may not include a less-than sign (<code><</code>) or a double straight quote symbol (<code>"</code>), which may however be included by [[Escape sequence|escaping]] as <code>&amp;lt;</code> and <code>&amp;quot;</code> respectively.{{#if: {{{2|}}}|

Latest revision as of 23:02, 17 May 2024

Names for footnotes and groups must follow these rules:

  • Names are case-sensitive. Please do not use raNdOM capitalization.
  • Names must not be purely numeric; the software will accept something like ":31337" (which is punctuation plus a number), but it will ignore "31337" (purely numeric).
  • Names should have semantic value, so that they can be more easily distinguished from each other by human editors who are looking at the wikitext. This means that ref names like "Nguyen 2010" are preferred to names like ":31337".
  • Names must be unique. You may not use the same name to define different groups or footnotes. Try to avoid picking a name that someone else is likely to choose for a new citation, such as ":0" or "NYT".
  • Please consider keeping reference names short, simple, and restricted to the standard English alphabet and numerals. If spaces are used, the following technical restrictions become relevant:
    • Quotation marks are preferred but optional if the only characters used are letters A–Z, a–z, digits 0–9, and the symbols !$%&()*,-.:;<@[]^_`{|}~. That is, all printable ASCII characters except #"'/=<>?\ and space.
    • Inclusion of any other characters, including spaces, requires that the reference name be enclosed in quotes; for example, name="John Smith". But quote-enclosed reference names may not include a less-than sign (<) or a double straight quote symbol ("), which may however be included by escaping as &lt; and &quot; respectively.
    • The quote marks must be the standard, straight, double quotation marks ("); curly or other quotes will be parsed as part of the reference name.
  • You may optionally provide reference names even when the reference name is not required. This makes later re-use of the sourced reference easier.
File:Test Template Info-Icon.svg Template documentationcreate · purge ]
This documentation is transcluded from Template:Refname rules/doc.