Template:Citation Style documentation/ref: Difference between revisions
From All Skies Encyclopaedia
imported>Trappist the monk m (ce;) |
imported>Trappist the monk m (ce;) |
||
Line 1: | Line 1: | ||
* <b id="csdoc_ref">ref</b>: the citation's HTML anchor identifier, when different from its default. When set, {{para|ref| |
* <b id="csdoc_ref">ref</b>: the citation's HTML anchor identifier, when different from its default. When set, {{para|ref|{{var|ID}}}} generates an anchor with the given <code>{{var|ID}}</code> (the <code>id=</code> attribute in the citation's {{tag|cite|params=id="{{var|ID}}"|o}} HTML tag). Setting {{para|ref|{{var|ID}}}} identifies the template as a target and allows [[Wikipedia:Citing sources/Further considerations#Wikilinks to full references|wikilinking to full references]], especially useful with short-form citations like [[Wikipedia:Citing sources#Shortened footnotes|shortened notes]] and [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. The default anchor ID is suitable for use with {{tl|sfn}} and {{tl|harv}} templates. To inhibit anchor ID creation, set {{para|ref|none}}. {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}} |
Revision as of 16:44, 21 April 2020
- ref: the citation's HTML anchor identifier, when different from its default. When set,
|ref=ID
generates an anchor with the givenID
(theid=
attribute in the citation's<cite id="ID">
HTML tag). Setting|ref=ID
identifies the template as a target and allows wikilinking to full references, especially useful with short-form citations like shortened notes and parenthetical referencing. The default anchor ID is suitable for use with {{sfn}} and {{harv}} templates. To inhibit anchor ID creation, set|ref=none
.