Template:Refn/doc

Purpose
This template is used to create footnotes in Wikipedia, as an alternative and complement to the. Because of a technical limitation, some of the standard Wikipedia markup elements that are often used in the article prose do not work within a set of  tags, including but not limited to the pipe trick, template substitution and another "nested" set of   tags. For example, the following does not work as expected:
 * 1)   (Generates: Help:Footnotes instead of a wikilink)
 * 2)   (Generates:  instead of the date that the edit was made)
 * 3)   (Generates: Cite error: A &lt;ref&gt; tag is missing the closing &lt;/ref&gt; (see the help page). &lt;/ref&gt;)

Replacing the outermost  set with  allows for the use of the markup elements listed above.

Usage

 * groupname: Groupname per w:WP:REFGROUP; if not specified, then the main and nested references will be rendered into the same reference list
 * name: Reference name per w:WP:REFNAME

Substitution
The first example shows that substitution does not work in a regular  tag (the access-date does not appear correctly). The second example shows that the access-date is substituted correctly within refn.

Errors
If the reference or note content is missing, then Cite error: Invalid &lt;ref&gt; tag; refs with no name must have content. will be displayed.

If the note content contains an equals sign, the equals sign will be interpreted as setting off a named parameter and cause an error. This can be worked around by using a numbered parameter, for example:

TemplateData
{	"params": { "1": {			"label": "content", "description": "The content of the footnote.", "type": "content", "required": false, "suggested": true },		"name": { "description": "The name of the footnote. Corresponds to the \"name\" attribute of the tag.", "type": "string" },		"group": { "label": "group", "description": "The reference group. Corresponds to the \"group\" attribute on the tag.", "type": "string" }	},	"description": "This template is used to create footnotes in Wikipedia, as an alternative and complement to the tag.", "paramOrder": [ "1",		"name", "group" ],	"format": "inline" }