Template:SfnRef/doc: Difference between revisions

→‎See also: lower case for consistency
m (1 revision imported)
(→‎See also: lower case for consistency)
Line 3: Line 3:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


Generate an identifier suitable as an [[Template:Citation/doc #Anchors for Harvard referencing templates|anchor for a Harvard citation]]. This template, which can be used with either the name {{tlc|SfnRef}} or the name {{tlc|harvid}}, is intended to be paired with Harvard citation templates such as {{tl|Sfn}}, {{tl|harv}}, and {{tl|harvnb}}. This templates uses the same arguments as the other citation templates. As explained below, this template is needed only in some cases when the Harvard citation templates are used.
Generate an identifier suitable as an [[Template:Citation/doc #Anchors for Harvard referencing templates|anchor for a Harvard citation]]. This template, which can be used with either the name {{tlc|SfnRef}} or the name {{tlc|harvid}}, is intended to be paired with Harvard citation templates such as {{tl|Sfn}}, {{tl|harv}}, and {{tl|harvnb}}. This template uses the same arguments as the other citation templates. As explained below, this template is needed only in some cases when the Harvard citation templates are used.


== Usage ==
== Usage ==
Line 46: Line 46:


For example, a ''References'' section might contain the following markup:
For example, a ''References'' section might contain the following markup:
: <code><nowiki>{{</nowiki>[[Template:vcite journal|vcite journal]]<nowiki> |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–61 |year=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}</nowiki></code>
: <code><nowiki>{{</nowiki>[[Template:vcite journal|vcite journal]]<nowiki> |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–661 |year=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}</nowiki></code>
This markup uses <code><nowiki>{{harvid|Peh|Ng|2009}}</nowiki></code> to generate the anchor identifier "{{harvid|Peh|Ng|2009}}", used internally to link Harvard references to citations. (This identifier is not visible to the article's reader.) The generated citation looks like this:
This markup uses <code><nowiki>{{harvid|Peh|Ng|2009}}</nowiki></code> to generate the anchor identifier "{{harvid|Peh|Ng|2009}}", used internally to link Harvard references to citations. (This identifier is not visible to the article's reader.) The generated citation looks like this:
: {{vcite journal |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–61 |year=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}
: {{vcite journal |author=Peh WC, Ng KH |title=Preparing the references |journal=Singapore Med J |volume=50 |issue=7 |pages=659–661 |year=2009 |pmid=19644619 |url=http://smj.sma.org.sg/5007/5007emw1.pdf |format=PDF |ref={{harvid|Peh|Ng|2009}} }}
Article prose can link to this citation with markup like the following:
Article prose can link to this citation with markup like the following:
: {{tlx|harv|Peh|Ng|2009}}
: {{tlx|harv|Peh|Ng|2009}}
Line 56: Line 56:


== See also ==
== See also ==
* {{tl|citeref}} (a wrapper for <code><nowiki>harvid</nowiki></code> to create #internal wikilinks with either superscript <sup>[n]</sup> or plain-text labels to other citations from inside a citation)
{{Wikipedia referencing}}
{{Wikipedia referencing}}


<includeonly>
<includeonly>{{Sandbox other||
[[Category:Author–date citation templates]]
[[Category:Author–date citation templates]]
[[Category:Footnote templates]]
[[Category:Footnote templates]]
Line 66: Line 68:
[[sl:Template:SfnRef]]
[[sl:Template:SfnRef]]
[[simple:Template:SfnRef]]
[[simple:Template:SfnRef]]
</includeonly>
}}</includeonly>
Anonymous user