Template:Citation Style documentation/ref: Difference between revisions

From The Goon Show Depository
m (1 revision imported)
en>Waldyrious
(allow better anchor link in Template:Citation/doc)
Line 1: Line 1:
* {{#invoke:cs1 documentation support|canonical_name_get|Ref|id=csdoc_ref}}: 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. Since April 2020, the parameter / keyword pair {{para|ref|harv}} has no special meaning; this deprecated setting should ''not'' be used and may be removed from existing cs1|2 templates. To inhibit anchor ID creation, set {{para|ref|none}}. Aliases: {{#invoke:cs1 documentation support|alias_names_get|Ref}}. {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}}
* {{#invoke:cs1 documentation support|canonical_name_get|Ref|id=csdoc_ref}}: 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. Since April 2020, the parameter / keyword pair {{para|ref|harv}} has no special meaning; this deprecated setting should ''not'' be used and may be removed from existing cs1|2 templates. To inhibit anchor ID creation, set {{para|ref|none}}. Aliases: {{#invoke:cs1 documentation support|alias_names_get|Ref}}. {{#ifeq:{{#titleparts: {{FULLPAGENAME}} | 1 }}| Template:Citation | <!-- Don't show this link in Template:Citation or its subpages (it's added manually there) --> | {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates}}.}} }}

Revision as of 10:46, 29 December 2022

  • Lua error in package.lua at line 80: module 'strict' not found.: 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. Since April 2020, the parameter / keyword pair |ref=harv has no special meaning; this deprecated setting should not be used and may be removed from existing cs1|2 templates. To inhibit anchor ID creation, set |ref=none. Aliases: Lua error in package.lua at line 80: module 'strict' not found.. See Template:Citation/doc ยง Anchors for Harvard referencing templates.