Template:Wikicite
{{{1}}}
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.
{{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.
Usage
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
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
- 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
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
- {{Citation}}
- {{Citeref}}, alternative method to create links to citations
- Category:Citation templates
- BattleIntelligence:Citing sources