Open main menu

Changes

Template:Citation Style documentation/ref

251 bytes added, 15:18, 14 November 2020
+anchor;
* <b {{#invoke:cs1 documentation support|canonical_name_get|Ref|id="csdoc_ref">ref</b>}}: the citation's HTML anchor identifier, when different from its default. When set, {{para|ref|<{{var>|ID</var>}}}} generates an anchor with the given <code>{{var>|ID}}</varcode> (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 default anchor identifier ID is suitable for use with {{tl|sfn}} and {{tl|harv}} templates. For Since April 2020, the parameter / keyword pair {{para|moderef|cs2harv}} has no special meaning; {{para|ref|harv}} defaults to may be removed from existing cs1|2 templates. To inhibit anchor ID creation, set {{para|ref|harvnone}}. Aliases: {{#invoke:cs1 documentation support|alias_names_get|Ref}}. {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}}