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

Template:Wikicite/doc: Difference between revisions

Content deleted Content added
ce
m →‎Usage: syntaxhighlight
Line 12:
== 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:
* {{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.