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

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(create)
 
imported>Trappist the monk
(ce;)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* '''ref''': ID for anchor. By default, anchors are always 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]].
+
* '''ref''': the citation's HTML anchor identifier, when different from its default. 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 default anchor ID is suitable for use with {{tl|sfn}} and {{tl|harv}} templates.  {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}}

Latest revision as of 22:20, 18 April 2020

  • ref: the citation's HTML anchor identifier, when different from its default. When set, |ref=ID generates an anchor with the given ID (the id 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. See Script error: No such module "Section link"..