Template:Citation/doc: Difference between revisions

clean up
(clean up)
(clean up)
 
Line 692: Line 692:


==Anchored citations==
==Anchored citations==
This template can generate a citation that can be combined with [[SV: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 732: 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