Template:Citation Style documentation/ref: Difference between revisions

Content deleted Content added
Gadget850 (talk | contribs)
+
 
allow better anchor link in Template:Citation/doc
 
(16 intermediate revisions by 9 users not shown)
Line 1:
* '''ref'''{{#invoke:cs1 IDdocumentation forsupport|canonical_name_get|Ref|id=csdoc_ref}}: anchor.the Bycitation's default, noHTML anchor isidentifier, generated.when Thedifferent ordinaryfrom nonemptyits valuedefault. When set, {{para|ref|<{{var>|ID</var>}}}} generates an anchor with the given <varcode>{{var|ID}}</varcode>; such(the a<code>id=</code> linkableattribute referencein canthe becitation's {{tag|cite|params=id="{{var|ID}}"|o}} HTML tag). Setting {{para|ref|{{var|ID}}}} madeidentifies the template as a target ofand allows [[Wikipedia:Citing sources/Further considerations#Wikilinks to full references|wikilinkswikilinking to full references]], especially useful inwith short-form citations like [[Wikipedia:Citing sources#Shortened footnotes|shortened notes]] and [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. The specialdefault anchor ID is suitable for use with {{tl|sfn}} and {{tl|harv}} templates. Since April 2020, the parameter / keyword valuepair {{para|ref|harv}} generateshas anno special meaning; this deprecated setting should ''not'' be used and may be removed from existing cs1|2 templates. To inhibit anchor suitableID forcreation, theset {{tlpara|harvref|none}}. template;Aliases: see{{#invoke:cs1 documentation support|alias_names_get|Ref}}. {{#ifeq:{{#titleparts: {{FULLPAGENAME}} | 1 }}| [[Template:Citation/doc#Anchors for| Harvard<!-- referencingDon't show this link in Template:Citation or its subpages (it's added manually there) --> templates|anchors {{crossref|See {{section link|Template:Citation/doc|Anchors for Harvard referencing templates]]}}.}} }}