Template:Wikicite/doc
This is a documentation subpage for Template:Wikicite. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
{{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.
Contents
Usage[edit]
Copy-'n'-paste.
{{wikicite | id = | reference = }}
or, alternatively (but not equivalently – see below)
{{wikicite | ref = | reference = }}
The first parameter is an alias for |reference=
. The |id=
or |ref=
parameters are alternative unique identifiers used for the reference link on the page, compatible with some other reference templates. If both |id=
and |ref=
are provided, |id=
is ignored. There are two differences between these:
|id=
automatically prefixes the link anchor with "Reference-", whereas|ref=
does not|id=
encloses the link anchor in double quotes, so these must not be provided by the editor; but if using|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|ref="Von Autor-2006"
)
Thus, these two forms
{{wikicite | id = Anchor 1 | reference = Reference text }} {{wikicite | ref = "Reference-Anchor 1" | reference = Reference text }}
produce identical results.
The |reference=
parameter is the actual reference text. It may be plain text, formatted text, or one of the citation templates.
Examples[edit]
Recommended formats.
Markup | Renders as |
---|---|
According to Atwood, blah blah.<ref>[[#Atwood-2003|Atwood (2003)]], p. 29.</ref> == Notes == {{reflist}} == References == * {{wikicite | ref = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart.}} |
According to Atwood, blah blah.[1]
|
According to Atwood, blah blah.<ref>[[#Reference-Atwood-2003|Atwood (2003)]], p. 29.</ref> == Notes == {{reflist}} == References == * {{wikicite | id = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart.}} |
According to Atwood, blah blah.[1]
|
According to Atwood, blah blah.{{sfn|Atwood|2003|p=29}} == Notes == {{reflist}} == References == * {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart.}} |
According to Atwood, blah blah.[1]
|
Features[edit]
- Compatible with any reference style: editor has 100% control of the format through a technology called editing wikitext
Technical features:
- 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[edit]
Note that identical behavior can be achieved using the more standard {{Citation}}
In article body:
{{Harv|Atwood|2003}}
In references section:
* {{citation | last = Atwood | first = Margaret | year = 2003 | title = Oryx and Crake | location = Toronto | publisher = McClelland & Stewart | isbn = 978-0-7710-0868-9 }}
See also[edit]
- {{Citation}}
- {{Citeref}}, alternative method to create links to citations
- Category:Citation templates
- BattleTechWiki:Citing sources