Template:Citation Style documentation/ref: Difference between revisions

Content deleted Content added
grmmr
allow better anchor link in Template:Citation/doc
 
(14 intermediate revisions by 8 users not shown)
Line 1:
* <span{{#invoke:cs1 documentation support|canonical_name_get|Ref|id="csdoc_ref"}}: />the citation'''ref''':s ID forHTML anchor. By defaultidentifier, nowhen anchordifferent isfrom its generateddefault. TheWhen ordinary nonempty valueset, {{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}}. templateAliases: {{#invoke:cs1 documentation support|alias_names_get|Ref}}. See{{#ifeq:{{#titleparts: [[{{FULLPAGENAME}} | 1 }}| Template:Citation/doc#Anchors for| Harvard<!-- referencingDon't templatesshow 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]]}}.}} }}