www.fgks.org   »   [go: up one dir, main page]

Template:Wikicite/doc: Difference between revisions

Content deleted Content added
Explained change
-
 
(4 intermediate revisions by 3 users not shown)
Line 1:
{{Documentation subpage}}
{{High-use}}
{{Uses TemplateStyles|Template:Citation/styles.css|noprotcat=1}}
 
{{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.
Line 12 ⟶ 13:
== Usage ==
Copy-'n'-paste.
<nowikisyntaxhighlight lang="wikitext">{{wikicite | id = | reference = }}</nowikisyntaxhighlight>
or, alternatively (but not equivalently{{snd}}see below)
<nowikisyntaxhighlight lang="wikitext">{{wikicite | ref = | reference = }}</nowikisyntaxhighlight>
 
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:
Line 20 ⟶ 21:
* {{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
<nowikisyntaxhighlight lang="wikitext">{{wikicite | id = Anchor 1 | reference = Reference text }}</nowikisyntaxhighlight>
<nowikisyntaxhighlight lang="wikitext">{{wikicite | ref = "Reference-Anchor 1" | reference = Reference text }}</nowikisyntaxhighlight>
produce identical results.
 
Line 129 ⟶ 130:
 
In references section:
<code><nowiki>* {{citation | last = Atwood | first = Margaret | year = 2003 | title = Oryx and Crake | location = Toronto | publisher = McClelland &amp; Stewart | isbn = 978-0-7710-0868-9 }}</nowiki></code>
 
== 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]]