Template:Refn/doc: Difference between revisions
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page ) --> ===Purpose=== This template is used to create footnotes in Chabadpedia, as an alternative and complement to the <syntaxhighlight lang="wikitext" inline><ref></syntaxhighlight>. Because of a technical limitation, some of the standard Chabadpedia markup elements that are often used in the ar..." |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
===Purpose=== | ===Purpose=== | ||
This template is used to [[Help:Footnotes|create footnotes in Chabadpedia]], as an alternative and complement to the <syntaxhighlight lang="wikitext" inline><ref></syntaxhighlight>. [[:mw:Help:Cite#Substitution and embedded parser functions|Because of a technical limitation]], some of the standard Chabadpedia markup elements that are often used in the article prose do not work within a set of <syntaxhighlight lang="wikitext" inline><ref>...</ref></syntaxhighlight> tags, including but not limited to [[Help:Pipe trick|the pipe trick]], [[ | This template is used to [[Help:Footnotes|create footnotes in Chabadpedia]], as an alternative and complement to the <syntaxhighlight lang="wikitext" inline><ref></syntaxhighlight>. [[:mw:Help:Cite#Substitution and embedded parser functions|Because of a technical limitation]], some of the standard Chabadpedia markup elements that are often used in the article prose do not work within a set of <syntaxhighlight lang="wikitext" inline><ref>...</ref></syntaxhighlight> tags, including but not limited to [[Help:Pipe trick|the pipe trick]], [[Chabadpedia:Substitution|template substitution]] and another "nested" set of <syntaxhighlight lang="wikitext" inline><ref>...</ref></syntaxhighlight> tags. For example, the following does not work as expected: | ||
# <syntaxhighlight lang="wikitext" inline><ref>[[Help:Footnotes|]]</ref></syntaxhighlight> (Generates: <nowiki>[[Help:Footnotes|]]</nowiki> instead of a wikilink) | # <syntaxhighlight lang="wikitext" inline><ref>[[Help:Footnotes|]]</ref></syntaxhighlight> (Generates: <nowiki>[[Help:Footnotes|]]</nowiki> instead of a wikilink) | ||
# <syntaxhighlight lang="wikitext" inline><ref>{{SUBST:TODAY}}</ref></syntaxhighlight> (Generates: <nowiki>{{SUBST:TODAY}}</nowiki> instead of the date that the edit was made) | # <syntaxhighlight lang="wikitext" inline><ref>{{SUBST:TODAY}}</ref></syntaxhighlight> (Generates: <nowiki>{{SUBST:TODAY}}</nowiki> instead of the date that the edit was made) | ||
| Line 13: | Line 13: | ||
{{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}} | {{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}} | ||
:* '''groupname''': Groupname per [[ | :* '''groupname''': Groupname per [[CP:REFGROUP]]; if not specified, then the main and nested references will be rendered into the same reference list | ||
:* '''name''': Reference name per [[ | :* '''name''': Reference name per [[CP:REFNAME]] | ||
{{refname rules}} | {{refname rules}} | ||
| Line 104: | Line 104: | ||
*{{tl|r}} (another template supporting nested footnotes) | *{{tl|r}} (another template supporting nested footnotes) | ||
*{{tl|citeref}} (a different method to create nested links working on citation template anchor level rather than <nowiki><ref></ref></nowiki> markup level) | *{{tl|citeref}} (a different method to create nested links working on citation template anchor level rather than <nowiki><ref></ref></nowiki> markup level) | ||
{{ | {{Chabadpedia referencing}} | ||
== TemplateData == | == TemplateData == | ||
| Line 131: | Line 131: | ||
} | } | ||
}, | }, | ||
"description": "This template is used to create footnotes in | "description": "This template is used to create footnotes in Chabadpedia, as an alternative and complement to the <ref> tag.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||