Jump to content

From Noumenapedia
Revision as of 08:52, 9 September 2026 by Deleatur yhe (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Sfnm/doc

__EXPECTED_UNCONNECTED_PAGE__

This is a companion template to {{Sfn}}; see there for a more general introduction. Unlike {{Sfn}}, however, {{Sfnm}} supports the inclusion of multiple sources in a single footnote.

Usage

Each of the several sources listed in the template is identified using a set of numbered (n) parameters where the first source is numbered 1, the second 2, etc. There is no set limit to the number of sources that may be listed in a single template though editors should be aware that readability suffers with an increase of the number of sources.

The following markup: {{Sfnm|1a1=Smith|1a2=Jones|1a3=Johnson|1y=2005|1p=15|2a1=Jones|2a2=Johnson|2a3=Smith|2y=2004|2p=50}} will produce the following footnote: [1]

Parameters

The following parameters are used where n always begins at 1, increases by one for each successive source; n has no set limit.

  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|nam= – source n author (required) – has the form: nam where n is the source number, a indicates that this is an author parameter, and m identifies the mth author of source n → <syntaxhighlight lang="wikitext" inline style="display: none;" />|1a1= is first source author one, <syntaxhighlight lang="wikitext" inline style="display: none;" />|5a4= is fifth source author four; author numbers (m) greater than 4 are ignored;
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|ny= – year – accepted formats are: YYYY, n.d. or nd (no date), c. YYYY, YYYY–YYYY (endash separator); all dates may have a single lowercase letter disambiguator suffix; see sfn §More than one work in a year
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|np= – in-source page cited
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|npp= – in-source pages cited
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|nloc= – in-source location when not pagination – appended to <syntaxhighlight lang="wikitext" inline style="display: none;" />|np= or <syntaxhighlight lang="wikitext" inline style="display: none;" />|npp= if present
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|nref= – alternate reference identifier used to link source to its full citation; the special keyword none inhibits creation of a link from source to its long form reference
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|nps= – source postscript – terminal character or text; defaults to none; the special keyword none (used by {{sfn}}) is silently ignored
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|ps= – postscript – template's final terminal character or text; defaults to period (.); the special keyword none inhibits the postscript character; yields to <syntaxhighlight lang="wikitext" inline style="display: none;" />|nps= where n is the last source
  • <syntaxhighlight lang="wikitext" inline style="display: none;" />|group= – reference group for the footnote

When a source has a single author, use of positional parameters for author and year is supported; both |author and |year are required when there is more than one of these single-author sources listed in the template: {{Sfnm|Smith|2005|1p=15|Jones|2004|2p=2}} which will produce the following footnote: [1]

  1. ↑ Smith 2005, p. 15; Jones 2004, p. 2.

Literature cited

  • Jones, John (2004). "My Journal Article". Journal of Important Studies. 509 (13): 10–23.
  • Jones, John; Johnson, John; Smith, John (2004). Our First Book.
  • Smith, John (2005). "Another Journal Article". Journal of Important Studies. 510 (14): 100–134.
  • Smith, John; Jones, John; Johnson, John (2005). Our Second Book.

Template data

<templatedata> { "params": { "1a1": { "aliases": [ "1" ], "label": "First author of the first source", "type": "string", "required": true }, "1a2": { "label": "Second author of the first source", "type": "string" }, "1a3": { "label": "Third author of the first source", "type": "string" }, "1a4": { "label": "Fourth author of the first source", "type": "string" }, "1y": { "aliases": [ "2" ], "label": "Year of the first source", "type": "number", "required": true }, "1p": { "label": "Page cited of the first source", "type": "number" }, "1pp": { "label": "Pages cited of the first source", "example": "2-9", "type": "string" }, "2a1": { "aliases": [ "3" ], "label": "First author of the second source", "type": "string", "required": true }, "2a2": { "label": "Second author of the second source", "type": "string" }, "2a3": { "label": "Third author of the second source", "type": "string" }, "2a4": { "label": "Fourth author of the second source", "type": "string" }, "2y": { "aliases": [ "4" ], "label": "Year of the second source", "type": "number", "required": true }, "2p": { "label": "Page cited of the second source", "type": "number" }, "2pp": { "label": "Pages cited of the second source", "example": "2-9", "type": "string" } }, "description": "Creates multiple short author–date citation.", "format": "inline" } </templatedata>

See also

The {{harvnb}} and {{r}} or other similar templates can be manually bundled in a single footnote

General templates that create lists not necessarily designed for references or footnotes can be found at Category:List formatting and function templates.