Template:Citation Style documentation/ref: Difference between revisions

Content deleted Content added
m change <span ... /> to <span ...></span>, the former adds pages to Category:Pages using invalid self-closed HTML tags
allow better anchor link in Template:Citation/doc
 
(7 intermediate revisions by 4 users not shown)
Line 1:
* <span{{#invoke:cs1 documentation support|canonical_name_get|Ref|id="csdoc_ref"></span>'''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 <varcode>{{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 andefault anchor identifierID is suitable for use with {{tl|sfn}} and {{tl|harv}} templates. WhenSince April 2020, the parameter / keyword pair {{para|moderef|cs2harv}} defaultshas tono 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|harvnone}}. 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}}.}} }}