Template:Sfnm/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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.

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

[edit source]

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

  • |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|1a1= is first source author one, |5a4= is fifth source author four; author numbers (m) greater than 4 are ignored;
  • |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
  • |np= – in-source page cited
  • |npp= – in-source pages cited
  • |nloc= – in-source location when not pagination – appended to |np= or |npp= if present
  • |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
  • |nps= – source postscript – terminal character or text; defaults to none; the special keyword none (used by {{sfn}}) is silently ignored
  • |ps= – postscript – template's final terminal character or text; defaults to period (.); the special keyword none inhibits the postscript character; yields to |nps= where n is the last source
  • |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

[edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Template data

[edit source]

Creates multiple short author–date citation.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
First author of the first source1a1 1

no description

Stringrequired
Second author of the first source1a2

no description

Stringoptional
Third author of the first source1a3

no description

Stringoptional
Fourth author of the first source1a4

no description

Stringoptional
Year of the first source1y 2

no description

Numberrequired
Page cited of the first source1p

no description

Numberoptional
Pages cited of the first source1pp

no description

Example
2-9
Stringoptional
First author of the second source2a1 3

no description

Stringrequired
Second author of the second source2a2

no description

Stringoptional
Third author of the second source2a3

no description

Stringoptional
Fourth author of the second source2a4

no description

Stringoptional
Year of the second source2y 4

no description

Numberrequired
Page cited of the second source2p

no description

Numberoptional
Pages cited of the second source2pp

no description

Example
2-9
Stringoptional

See also

[edit source]

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.