Content deleted Content added
→Examples: (see § Alternatives for more details): |
- |
||
(18 intermediate revisions by 15 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{High-use}}
{{Uses TemplateStyles|Template:Citation/styles.css}}
{{tl|Wikicite}} creates an anchor, for use in a "References" section for books, journals, web references, etc. The anchor should be linked-to in the body of the article.
The reference text may be formatted manually, and the template merely adds an anchor for linking from in-text citations. This template is also useful when using a citation template that does not support the {{para|ref}} parameter (for example, {{tl|
'''This template is only needed for ''handwritten'' citations, or citations using non-standard citation templates, that are linked to by a [[WP:CITESHORT|shortened footnote]] or a [[WP:Parenthetical references|parenthetical reference]]'''. If you don't mind using a citation template, it is more standard to use {{tl|sfn}} or {{tl|harv}} with a template such as {{tl|citation}}, {{tl|cite book}}, {{tl|cite web}}, etc.
Line 11 ⟶ 12:
== Usage ==
<
or, alternatively (but not equivalently{{snd}}see below)
<
The first parameter is an alias for {{para|reference}}. The {{para|id}} or {{para|ref}} parameters are alternative unique identifiers used for the reference link on the page, compatible with some other reference templates. If both {{para|id}} and {{para|ref}} are provided, {{para|id}} is ignored. There are two differences between these:
* {{para|id}} automatically prefixes the link anchor with "Reference-", whereas {{para|ref}} does not
* {{para|id}} encloses the link anchor in double quotes, so these must not be provided by the editor; but if using {{para|ref}}, the specified content for this parameter must be enclosed in quotes ''unless'' it consists entirely of letters, figures, hyphens and periods. If it contains ''any'' other character - such as a blank or underscore - it must be quoted. (e.g., a ref anchor of ''Von Autor-2006'' must be specified as {{para|ref|"Von Autor-2006"}})
Thus, these two forms
<
<
produce identical results.
Line 36 ⟶ 37:
== References ==
* {{wikicite | ref = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
</nowiki>|
According to Atwood, blah blah.<ref>[[#Atwood-2003|Atwood (2003)]], p. 29.</ref>
Line 44 ⟶ 45:
{{fake heading|References}}
* {{wikicite | ref = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
|<nowiki>
According to Atwood, blah blah.<ref>[[#Reference-Atwood-2003|Atwood (2003)]], p. 29.</ref>
Line 52 ⟶ 53:
== References ==
* {{wikicite | id = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
</nowiki>|
According to Atwood, blah blah.<ref>[[#Reference-Atwood-2003|Atwood (2003)]], p. 29.</ref>
Line 60 ⟶ 61:
{{fake heading|References}}
* {{wikicite | id = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
|<nowiki>
According to Atwood, blah blah.{{sfn|Atwood|2003|p=29}}
Line 68 ⟶ 69:
== References ==
* {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
</nowiki>|
According to Atwood, blah blah.{{sfn|Atwood|2003|p=29}}
Line 76 ⟶ 77:
{{fake heading|References}}
* {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN
}}
Line 109 ⟶ 110:
However this is only one of several ways this particular text could be cited (see [[#Alternatives| § Alternatives]] for more details):
*{{tlx|ws}} can take a template as a parameter itself, and then the citation can be linked using the standard
:*<code><nowiki>{{ws| {{citation |last=Wellington |first=Duke of |date=19 June 1815 |title=[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]
:*{{ws| {{citation |last=Wellington |first=Duke of |date=19 June 1815 |title=[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]
== Features ==
Line 122 ⟶ 120:
* Produces well-formed, accessible, semantically-correct HTML code
* Compatible with many other templates' in-text citation links (any id which starts with "Reference-")
* No conditionals
* No CSS hacks
== Alternatives ==
Note that
In article body:
Line 133 ⟶ 130:
In references section:
<code><nowiki>* {{citation | last = Atwood | first = Margaret | year = 2003 | title = Oryx and Crake | location = Toronto | publisher = McClelland &
== See also ==
* {{tl|Citation}}
* {{tl|Harvnb}}
* {{tl|Sfn}}, an alternative method for creating shortened footnotes
* {{tl|Citeref}}, alternative method to create links to citations
* [[Wikipedia:Citation templates]]
* [[Wikipedia:Citing sources]]
Line 144 ⟶ 142:
* [[T-34#References]], example of usage
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Inline templates|{{PAGENAME}}]]
Line 152 ⟶ 150:
[[ja:Template:Wikicite]]
[[sl:Predloga:Wikisklic]]
}}</includeonly>
|