Template:Efn/doc

From Sapphire Wiki
Revision as of 22:34, 3 September 2013 by Bryan (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{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 WP: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}}

Using Template:Sfnote:

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.<ref name="FOOTNOTESmith20101">Smith 2010, p. 1.</ref> More information.<ref group="lower-alpha">A clarification.<ref name="FOOTNOTESmith20102">Smith 2010, p. 2.</ref></ref>

Template:Fake heading

<references group="lower-alpha" responsive="1"></references>

Template:Fake heading

<references group="" responsive="1"></references>

Template:Fake heading

  • Smith (2010), Smith's book 

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}}

Example articles

See also

{{#lst:Help:Cite errors/Cite error group refs without references|rlt}}