Template:Efn/doc: Difference between revisions
m (1 revision) |
(→Usage: clean up) |
||
Line 9: | Line 9: | ||
<code><nowiki>{{efn|name=</nowiki>''footnote name''<nowiki>|</nowiki>''Footnote text''<nowiki>}}</nowiki></code> | <code><nowiki>{{efn|name=</nowiki>''footnote name''<nowiki>|</nowiki>''Footnote text''<nowiki>}}</nowiki></code> | ||
'''{{Para|name}}''' Sets a standard reference name per [[ | '''{{Para|name}}''' Sets a standard reference name per [[SV:NAMEDREFS]]. The [[SV:REFGROUP|group name]] is always set to ''lower-alpha'', thus the link labels are styled as lowercase Latin letters. However, this is not required because identical footnote markers are automatically identified and consolidated into a single footnote. | ||
Remember that "=" cannot appear in an unnamed template parameter and "|" cannot appear in any template parameter. For "|", {{tl|!}} can be used. For "=", {{tl|{{=}}}} can be used or the parameter can be named 1= explicitly: | Remember that "=" cannot appear in an unnamed template parameter and "|" cannot appear in any template parameter. For "|", {{tl|!}} can be used. For "=", {{tl|{{=}}}} can be used or the parameter can be named 1= explicitly: |
Latest revision as of 16:01, 11 April 2014
This is a documentation subpage for Template:Efn. It contains usage information, categories and other content that is not part of the original template page. |
{{efn}} is used, together with {{notelist}}, to create explanatory notes.
Usage
{{efn|Footnote text}}
{{efn|name=footnote name|Footnote text}}
|name=
Sets a standard reference name per SV:NAMEDREFS. The group name is always set to lower-alpha, thus the link labels are styled as lowercase Latin letters. However, this is not required because identical footnote markers are automatically identified and consolidated into a single footnote.
Remember that "=" cannot appear in an unnamed template parameter and "|" cannot appear in any template parameter. For "|", {{!}} can be used. For "=", {{=}} can be used or the parameter can be named 1= explicitly:
{{efn|1=Converting at a rate of Kr 20 = £1.}}
Examples
Using full citations in footnotes:
Markup | Renders as |
---|---|
Some information.<ref name=Smith2009>{{cite book|last=Smith|year=2009|title=Smith's book}}</ref> More information.{{efn|A clarification.<ref name=Smith2009/>}} ==Notes== {{notelist}} ==References== {{reflist}} |
Some information.[1] More information.[lower-alpha 1] |
Using Shortened footnotes:
Markup | Renders as |
---|---|
Some information.{{sfn|Smith|2010|p=1}} More information.{{efn|A clarification.{{sfn|Smith|2010|p=2}}}} ==Notes== {{notelist}} ==Citations== {{reflist}} ==References== * {{citation|last=Smith|year=2010|title=Smith's book}} |
Some information.[1] More information.[lower-alpha 1]
|
You can create multiple explanatory lists by closing {{notelist}}. This is useful when adding sources to elements such as multiple tables.
Markup | Renders as |
---|---|
Some information.<ref name=Smith2009>{{cite book|last=Smith|year=2009|title=Smith's book}}</ref> More information.{{efn|A clarification.<ref name=Smith2009/>}} ==Notes== {{notelist|close}} Some more information.<ref name=Smith2009>{{cite book|last=Smith|year=2009|title=Smith's book}}</ref> More information.{{efn|A further clarification.<ref name=Smith2009/>}} ==Notes== {{notelist|close}} ==References== {{reflist}} |
Some information.[1] More information.[lower-alpha 1]
Some more information.[1] More information.[lower-alpha 1] |
Example articles
- Logic theorist (a short article showing basic usage)
- Chinese room (a long and complex article which uses all the features: named footnotes, list defined notes, etc.)
- Empire of Brazil
- John Diefenbaker (w/name= && note in {notelist})
See also
{{#lst:Help:Cite errors/Cite error group refs without references|rlt}}