வார்ப்புரு:Sfnmp/doc
{{Documentation subpage}}
 {{lua |Module:Footnotes}}
 &lt;!-- PLEASE ADD TEMPLATE CATEGORIES AT THE BOTTOM OF THIS PAGE. --&gt;
 
 
 This is a companion template to {{tlx|Sfn}}; see there for a more general introduction. Unlike {{tld|Sfn}}, however, {{tlx|Sfnmp}} supports the inclusion of multiple sources in a single footnote and renders the year in parentheses.
 
 ==Usage==
 Each of the several sources listed in the template is identified using a set of numbered ({{var|n}}) parameters where the first source is numbered &lt;code&gt;1&lt;/code&gt;, the second &lt;code&gt;2&lt;/code&gt;, 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:
 &lt;code&gt;&lt;nowiki&gt;{{Sfnmp|1a1=Smith|1a2=Jones|1a3=Johnson|1y=2005|1p=15|2a1=Jones|2a2=Johnson|2a3=Smith|2y=2004|2p=50}}&lt;/nowiki&gt;&lt;/code&gt;
 will produce the following footnote: {{Sfnmp|1a1=Smith|1a2=Jones|1a3=Johnson|1y=2005|1p=15|1ignore-err=yes|2a1=Jones|2a2=Johnson|2a3=Smith|2y=2004|2p=50|2ignore-err=yes}} &lt;!-- |#ignore-err=yes here because template can't see into transcluded doc page --&gt;
 :{| style=&quot;border: 1px solid black&quot;
 |{{reflist}}
 |}
 
 ===Parameters===
 The following parameters are used where {{var|n}} always begins at 1, increases by one for each successive source; {{var|n}} has no set limit.
 *{{para|{{var|n}}a{{var|m}}}} – source {{var|n}} author (required) – has the form: &lt;code&gt;{{var|n}}a{{var|m}}&lt;/code&gt; where &lt;code&gt;{{var|n}}&lt;/code&gt; is the source number, &lt;code&gt;a&lt;/code&gt; indicates that this is an author parameter, and &lt;code&gt;{{var|m}}&lt;/code&gt; identifies the {{var|m}}th author of source {{var|n}} → {{para|1a1}} is first source author one, {{para|5a4}} is fifth source author four; author numbers (&lt;code&gt;{{var|m}}&lt;/code&gt;) greater than &lt;code&gt;4&lt;/code&gt; are ignored; 
 *{{para|{{var|n}}y}} – year – accepted formats are: &lt;code&gt;YYYY&lt;/code&gt;, &lt;code&gt;n.d.&lt;/code&gt; or &lt;code&gt;nd&lt;/code&gt; (no date), &lt;code&gt;c. YYYY&lt;/code&gt;, &lt;code&gt;YYYY–YYYY&lt;/code&gt; (endash separator); all dates may have a single lowercase letter disambiguator suffix; see [[Template:Sfn#More than one work in a year|sfn §More than one work in a year]]
 *{{para|{{var|n}}p}} – in-source page cited
 *{{para|{{var|n}}pp}} – in-source pages cited
 *{{para|{{var|n}}loc}} – in-source location when not pagination – appended to {{para|{{var|n}}p}} or {{para|{{var|n}}pp}} if present
 *{{para|{{var|n}}ref}} – alternate reference identifier used to link source to its full citation; the special keyword &lt;code&gt;none&lt;/code&gt; inhibits creation of a link from source to its long form reference
 *{{para|{{var|n}}ps}} – source postscript – terminal character or text; defaults to none; the special keyword &lt;code&gt;none&lt;/code&gt; (used by {{tld|sfn}}) is silently ignored
 *{{para|ps}} – postscript – template's final terminal character or text; defaults to period (&lt;code&gt;.&lt;/code&gt;);  the special keyword &lt;code&gt;none&lt;/code&gt; inhibits the postscript character; yields to {{para|{{var|n}}ps}} where {{var|n}} is the last source
 
 When a source has a single author, use of positional parameters for author and year is supported; both &lt;code&gt;|{{var|author}}&lt;/code&gt; and &lt;code&gt;{{var|year}}&lt;/code&gt; are required when there is more than one of these single-author sources listed in the template:
 &lt;code&gt;&lt;nowiki&gt;{{Sfnmp|Smith|2005|1p=15|Jones|2004|2p=2}}&lt;/nowiki&gt;&lt;/code&gt;
 which will produce the following footnote: {{Sfnmp|Smith|2005|1p=15|1ignore-err=yes|Jones|2004|2p=2|2ignore-err=yes}} &lt;!-- |#ignore-err=yes here because template can't see into transcluded doc page --&gt;
 :{| style=&quot;border: 1px solid black&quot;
 |{{reflist}}
 |}
 
 ==Literature cited==
 *{{cite journal|last1=Jones|first1=John|year=2004|title=My Journal Article|journal=Journal of Important Studies|volume=509|issue=13 |pages=10–23}}
 *{{cite book|last1=Jones|first1=John|last2=Johnson|first2=John|last3=Smith|first3=John|year=2004|title=Our First Book}}
 *{{cite journal|last1=Smith|first1=John|year=2005|title=Another Journal Article|journal=Journal of Important Studies|volume=510|issue=14 |pages=100–134}}
 *{{cite book|last1=Smith|first1=John|last2=Jones|first2=John|last3=Johnson|first3=John|year=2005|title=Our Second Book}}
 
 ==See also==
 *{{tlx|sfnm}} – a similar template that does not render source year in parentheses
 
 &lt;includeonly&gt;{{sandbox other||
 &lt;!-- ADD TEMPLATE CATEGORIES BELOW THIS LINE --&gt;
 [[Category:Footnote templates]]
 [[Category:Author–date citation templates]]