Template:Citation/doc: Difference between revisions

clean up
m (1 revision)
 
(clean up)
 
(One intermediate revision by the same user not shown)
Line 385: Line 385:
| issue  = 19
| issue  = 19
| date  = October 1, 1879
| date  = October 1, 1879
| year  = 1879
| page  = 289
| page  = 289
| url    = http://www.sidneyrigdon.com/dbroadhu/IL/sain1872.htm#100179
| url    = http://www.sidneyrigdon.com/dbroadhu/IL/sain1872.htm#100179
Line 440: Line 439:
| chapter = Letter to Emma S. Pilgrim
| chapter = Letter to Emma S. Pilgrim
| date = March 27, 1876
| date = March 27, 1876
| year = 1876
| editor-last  = Vogel
| editor-last  = Vogel
| editor-first = Dan
| editor-first = Dan
Line 593: Line 591:
| first = Philip
| first = Philip
| contribution = Affidavit
| contribution = Affidavit
| year = 1872
| date = September 5, 1872
| date = September 5, 1872
| place = Lincoln County, Nevada
| place = Lincoln County, Nevada
Line 695: Line 692:


==Anchored citations==
==Anchored citations==
This template can generate a citation that can be combined with [[WP:CITESHORT|shortened footnotes]] or [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref|harv}} generates an ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; this is the default for the {{tl|citation}} template. To disable anchor generation, specify {{para|ref|none}} – leaving {{para|ref}} empty has the same effect but is ambiguous; this is the default for the Cite templates such as {{tl|cite book}} and {{tl|cite news}}. You can also specify the ID directly, using the {{para|ref|<var>ID</var>}} parameter. For example, suppose an article's ''References'' section contains the markup:
This template can generate a citation that can be combined with [[SV:CITESHORT|shortened footnotes]] or [[Sarkarverse:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref|harv}} generates an ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; this is the default for the {{tl|citation}} template. To disable anchor generation, specify {{para|ref|none}} – leaving {{para|ref}} empty has the same effect but is ambiguous; this is the default for the Cite templates such as {{tl|cite book}} and {{tl|cite news}}. You can also specify the ID directly, using the {{para|ref|<var>ID</var>}} parameter. For example, suppose an article's ''References'' section contains the markup:
* <code><nowiki>{{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}</nowiki></code>
* <code><nowiki>{{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}</nowiki></code>
which generates the citation:
which generates the citation:
Line 714: Line 711:
Last names are used, as specified by the parameters {{para|last1}} (or {{para|last}}), {{para|last2}}, {{para|last3}}, and {{para|last4}}, and similarly for {{para|editor1-last}} etc. and for {{para|inventor1-last}} etc. If a full name is given but no last name is specified, this template falls back on the full name, but this usage is not recommended. For example, in "<code><nowiki>{{Citation | author = Sigmund Freud | title = The Ego and the Id | year = 1923}}</nowiki></code>" no last name is given, so this citation cannot be combined with the Harvard reference "<code><nowiki>{{harv|Freud|1923}}</nowiki></code>". To make these {{tl|citation}} and {{tl|harv}} invocations compatible, either replace "{{para|author|Sigmund Freud}}" with "{{para|first|Sigmund}} {{para|last|Freud}}", or add "{{para|ref|<nowiki>{{harvid|Freud|1923}}</nowiki>}}" to the {{tl|citation}} invocation, or add the same ref parameter (say, "{{para|ref|EgoId}}") to both the {{tl|citation}} and the {{tl|harv}} invocations.
Last names are used, as specified by the parameters {{para|last1}} (or {{para|last}}), {{para|last2}}, {{para|last3}}, and {{para|last4}}, and similarly for {{para|editor1-last}} etc. and for {{para|inventor1-last}} etc. If a full name is given but no last name is specified, this template falls back on the full name, but this usage is not recommended. For example, in "<code><nowiki>{{Citation | author = Sigmund Freud | title = The Ego and the Id | year = 1923}}</nowiki></code>" no last name is given, so this citation cannot be combined with the Harvard reference "<code><nowiki>{{harv|Freud|1923}}</nowiki></code>". To make these {{tl|citation}} and {{tl|harv}} invocations compatible, either replace "{{para|author|Sigmund Freud}}" with "{{para|first|Sigmund}} {{para|last|Freud}}", or add "{{para|ref|<nowiki>{{harvid|Freud|1923}}</nowiki>}}" to the {{tl|citation}} invocation, or add the same ref parameter (say, "{{para|ref|EgoId}}") to both the {{tl|citation}} and the {{tl|harv}} invocations.


Similarly, the year is used, as specified by {{para|year}}. If no year is given, this template attempts to derive the year from {{para|date}} (or, if no date is given, from {{para|publication-date}}) by applying the [[mw:Help:Extension:ParserFunctions##time|MediaWiki#time function]]. This heuristic works with many common date formats (American, International and [[ISO 8601#Calendar dates|ISO 8601 standard format]] YYYY-MM-DD as listed in [[WP:MOS]]), but may not work as expected with other formats, so when in doubt it may be safer to use {{para|year}}. Note that if only a year, say 2005, is known you must use {{para|year|2005}} rather than {{para|date|2005}}.
Similarly, the year is used, as specified by {{para|year}}. If no year is given, this template attempts to derive the year from {{para|date}} (or, if no date is given, from {{para|publication-date}}) by applying the [[mw:Help:Extension:ParserFunctions##time|MediaWiki#time function]]. This heuristic works with many common date formats (American, International and [[ISO 8601#Calendar dates|ISO 8601 standard format]] YYYY-MM-DD as listed in [[SV:MOS]]), but may not work as expected with other formats, so when in doubt it may be safer to use {{para|year}}. Note that if only a year, say 2005, is known you must use {{para|year|2005}} rather than {{para|date|2005}}.


===IDs must be unique===
===IDs must be unique===
Line 735: Line 732:
Dates should not be linked in references.
Dates should not be linked in references.


Please see ''[[Wikipedia:Manual of Style (dates and numbers)#Dates]]'' for more guidance about formatting dates.
Please see ''[[Sarkarverse:Manual of Style (dates and numbers)#Dates]]'' for more guidance about formatting dates.
</ref>}}
</ref>}}


==Tools==
==Tools==
See [[Wikipedia:Citing sources#Citation templates and tools]] for a list of tools that can help create a reference in the "citation" format.
See [[Sarkarverse:Citing sources#Citation templates and tools]] for a list of tools that can help create a reference in the "citation" format.


==Template Data==
==Template Data==
14,061

edits