Template: Refn: Difference between revisions

From A Wiki of Ice and Fire
Jump to: navigation, search
Maester Pounce (talk | contribs)
Maester Pounce (talk | contribs)
Line 8: Line 8:


===Usage===
===Usage===
{{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}}
<nowiki>{{refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}}</nowiki>


:* '''groupname''': If not specified, then the main and nested references will be rendered into the same reference list
:* '''groupname''': If not specified, then the main and nested references will be rendered into the same reference list

Revision as of 11:16, 8 May 2014

Purpose

This template is used to create footnotes as an alternative and complement to the Template:Tag tag. Because of a technical limitation, some of the standard markup elements that are often used in the article prose do not work within a set of Template:Tag tags, including but not limited to the pipe trick, template substitution, and another "nested" set of Template:Tag tags. For example, the following does not work as expected:

  1. Template:Tag (Generates: [[Help:Footnotes|]] instead of a wikilink)
  2. Template:Tag (Generates: {{SUBST:TODAY}} instead of the date that the edit was made)
  3. Template:Tag (Generates: Cite error: A <ref> tag is missing the closing </ref> (see the help page). </ref>)

Replacing the outermost Template:Tag set with Template:Tlp allows for the use of the markup elements listed above.

Usage

{{refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}}

  • groupname: If not specified, then the main and nested references will be rendered into the same reference list
  • name: Reference name

Errors

If the reference or note content is missing, a Cite error will be generated.

Currently, this template may not be used more than once within list-defined references. Doing so will result in Cite errors.