Wiktenauer logo.png

Template:Refname rules

From Wiktenauer
Revision as of 02:21, 23 September 2012 by Michael Chidester (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
[edit] [history] [purge] Documentation icon Template documentation

Usage

This template outlines the rules for HTML ids.

There are two unnamed parameters:

  1. The beginning text; defaults to "Names for footnotes and groups must follow these rules:"
  2. Additional rules; start each entry on a newline; bullet as needed

Example:

Default:

{{Refname rules}}

Names for footnotes and groups must follow these rules:

  • Names are case-sensitive
  • Names may not be a numeric integer
  • Quotes are optional if the only characters used are letters A–Z, a–z, digits 0–9 and the symbols !$%&()*,-.:;<@[]^_`{|}~
  • Inclusion of any other characters including spaces requires that the name be enclosed in straight quotes (")
  • Quote-enclosed names may not include a less-than sign (<) or a quote symbol (")
It is recommended that names be kept simple and restricted to the standard English alphabet and numerals.

With parameters:

{{Refname rules|A custom ID must follow these rules:|
* If CITEREF is used, then spaces in the {{para|ref}} field must be replaced with underscores}}

A custom ID must follow these rules:

  • Names are case-sensitive
  • Names may not be a numeric integer
  • Quotes are optional if the only characters used are letters A–Z, a–z, digits 0–9 and the symbols !$%&()*,-.:;<@[]^_`{|}~
  • Inclusion of any other characters including spaces requires that the name be enclosed in straight quotes (")
  • Quote-enclosed names may not include a less-than sign (<) or a quote symbol (")
  • If CITEREF is used, then spaces in the |ref= field must be replaced with underscores
It is recommended that names be kept simple and restricted to the standard English alphabet and numerals.

See also