Difference between revisions of "Template:Citation Style documentation/ref"

From Wikispooks
Jump to navigation Jump to search
m (1 revision: refresh 2 x wikipedia template sets)
 
m (1 revision imported)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
* <span id="csdoc_ref" />'''ref''': ID for anchor. By default, no anchor is generated. The ordinary nonempty value {{para|ref|<var>ID</var>}} generates an anchor with the given <var>ID</var>; such a linkable reference can be made the target of [[Wikipedia:Citing sources/Further considerations#Wikilinks to full references|wikilinks to full references]], especially useful in short citations like [[Wikipedia:Citing sources#Shortened footnotes|shortened notes]] and [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. The special value {{para|ref|harv}} generates an anchor suitable for the {{tl|harv}} template. See: [[Template:Citation/doc#Anchors for Harvard referencing templates|Anchors for Harvard referencing templates]].
+
* <b id="csdoc_ref">ref</b>: the citation's HTML anchor identifier. When set, {{para|ref|<var>ID</var>}} generates an anchor with the given <var>ID</var> (the <code>id</code> attribute in the citation's {{tag|cite|params=id="<var>ID</var>"|o}} HTML tag). Setting {{para|ref|<var>ID</var>}} 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 special value {{para|ref|harv}} generates an anchor identifier suitable for use with {{tl|sfn}} and {{tl|harv}} templates. For {{para|mode|cs2}} {{para|ref}} defaults to {{para|ref|harv}}. {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}}

Latest revision as of 16:05, 12 February 2019