Open main menu
Home
Random
Log in
Settings
About Chabadpedia
Chabadpedia
Search
Editing
Template:Refn/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
References
Discussion
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page ) --> ===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]], [[Wikipedia: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>{{SUBST:TODAY}}</ref></syntaxhighlight> (Generates: <nowiki>{{SUBST:TODAY}}</nowiki> instead of the date that the edit was made) # <syntaxhighlight lang="wikitext" inline><ref>Explanatory footnote<ref>Citation</ref></ref></syntaxhighlight> (Generates: <span style="font-weight: bold; color: #CC0000;">Cite error: A <ref> tag is missing the closing </ref> (see the [[:Help:Cite errors/Cite error included ref|help page]]).</span> </ref>) Replacing the outermost <syntaxhighlight lang="wikitext" inline><ref>...</ref></syntaxhighlight> set with {{tlp|Refn}} allows for the use of the markup elements listed above. ===Usage=== {{tld|refn|2=group=groupname|3=name=name|4=Contents of the footnote|allowlinebreak=yes}} :* '''groupname''': Groupname per [[WP:REFGROUP]]; if not specified, then the main and nested references will be rendered into the same reference list :* '''name''': Reference name per [[WP:REFNAME]] {{refname rules}} ===Examples=== ====Footnotes with citations==== {{markup |<syntaxhighlight lang="wikitext">An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}} Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}} A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} ==Notes== {{reflist|group=note}} ==References== {{reflist}}</syntaxhighlight> |An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}} Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}} A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} {{fake heading|sub=3|Notes}} {{reflist|group=note}} {{fake heading|sub=3|References}} {{reflist}} }} ====Other forms of citations==== {{markup |<syntaxhighlight lang="wikitext">An example.{{refn|group=note|name=first|A note.<ref>The reference in the first note.</ref>}} Another example.{{refn|name=ref|Another reference, but without a note.}} A third example.{{refn|group=note|A second note.<ref>The reference in the second note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} Repeating the second example.{{refn|name=ref}} A fourth example with citation templates.{{refn|name=harv|{{cite book|author=Smith|title=The Solar System|year=2005|mode=cs2}}, quoted in {{harvnb|Jones|2020|p=25}}.}} ==Notes== {{reflist|group=note}} ==References== {{reflist}}</syntaxhighlight> |An example.{{refn|group=note|name=first|A note.<ref>The reference in the first note.</ref>}} Another example.{{refn|name=ref|Another reference, but without a note.}} A third example.{{refn|group=note|A second note.<ref>The reference in the second note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} Repeating the second example.{{refn|name=ref}} A fourth example with citation templates.{{refn|name=harv|{{cite book|author=Smith|title=The Solar System|year=2005|mode=cs2}}, quoted in {{harvnb|Jones|2020|p=25}}.}} {{fake heading|sub=3|Notes}} {{reflist|group=note}} {{fake heading|sub=3|References}} {{reflist}} }} ====Substitution==== The first example shows that substitution does not work in a regular <syntaxhighlight lang="wikitext" inline><ref>...</ref></syntaxhighlight> tag (the {{para|access-date}} does not appear correctly). The second example shows that the {{para|access-date}} is substituted correctly within {{tl|refn}}. {{markup |<syntaxhighlight lang="wikitext"><ref>{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}</ref> {{reflist}}</syntaxhighlight> |<ref>{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary|no-tracking=yes}}</ref> {{reflist}} |<syntaxhighlight lang="wikitext">{{refn|{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}} {{reflist}}</syntaxhighlight> |{{refn|{{cite web |access-date=4 April 2014 |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}} {{reflist}} }} ===Errors=== If the reference or note content is missing, then Cite error: Invalid <ref> tag; refs with no name must have content. will be displayed. If the note content contains an equals sign (<code>=</code>), the equals sign will be interpreted as setting off a named parameter and cause an error. This can be worked around by [[Help:Template#Usage hints and workarounds|using a numbered parameter]], for example: {{markup |1=<nowiki>{{refn|1+1=2}}</nowiki> |2=<span class="error mw-ext-cite-error">Cite error: There are <ref> tags on this page without content in them (see the [[Help:Cite errors/Cite error ref no input|help page]]).</span> |3=<nowiki>{{refn|1= 1+1=2}}</nowiki> |4={{refn|1= 1+1=2}} {{reflist}} }} {{#section:Help:footnotes|pregroup}} ===See also=== *{{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) {{Wikipedia referencing}} == TemplateData == {{TemplateData header}} <templatedata> { "params": { "1": { "label": "content", "description": "The content of the footnote.", "type": "content", "required": true, "suggested": true, "aliases": [ "refn" ] }, "name": { "description": "The name of the footnote. Corresponds to the \"name\" attribute of the <ref> tag.", "type": "string" }, "group": { "label": "group", "description": "The reference group. Corresponds to the \"group\" attribute on the <ref> tag.", "type": "string" } }, "description": "This template is used to create footnotes in Wikipedia, as an alternative and complement to the <ref> tag.", "paramOrder": [ "1", "name", "group" ], "format": "inline" } </templatedata> <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Footnote templates]] [[Category:Templates that generate named references]] }}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to Chabadpedia are considered to be released under the GNU Free Documentation License 1.3 or later (see
Chabadpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template:!!
(
edit
)
Template:!-
(
edit
)
Template:Cite book
(
edit
)
Template:Cite web
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Em
(
edit
)
Template:Fake heading
(
edit
)
Template:For loop
(
edit
)
Template:Format item
(
edit
)
Template:Harvard citation no brackets
(
edit
)
Template:Harvnb
(
edit
)
Template:Item
(
edit
)
Template:Main other
(
edit
)
Template:Markup
(
edit
)
Template:Markup/row
(
edit
)
Template:Mbox
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Reflist
(
edit
)
Template:Refn
(
edit
)
Template:Refn/doc
(
edit
)
Template:Refname rules
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Template link with parameters
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tld
(
edit
)
Template:Tlp
(
edit
)
Template:Wikipedia referencing
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Citation/CS1
(
edit
)
Module:Citation/CS1/Configuration
(
edit
)
Module:Footnotes
(
edit
)
Module:Footnotes/anchor id list
(
edit
)
Module:Footnotes/anchor id list/data
(
edit
)
Module:Footnotes/whitelist
(
edit
)
Module:For loop
(
edit
)
Module:Item
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
view source
) (protected)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Yesno
(
edit
)
Category:Pages with script errors
Category:Pages with syntax highlighting errors
Close
Loading editor…