Template: Refn: Difference between revisions
| Line 8: | Line 8: | ||
===Usage=== | ===Usage=== | ||
{{ | <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:
- Template:Tag (Generates: [[Help:Footnotes|]] instead of a wikilink)
- Template:Tag (Generates: {{SUBST:TODAY}} instead of the date that the edit was made)
- 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.