Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Wikicite/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
Move
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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|ws}}). '''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. This template is ''not'' necessary if the citation uses a citation template (such as {{tl|cite book}}). Use the {{para|ref}} parameter of the citation template to create the anchor. This template is also ''not'' necessary if the article does not contain a [[WP:CITESHORT|shortened footnote]] or [[WP:Parenthetical references|parenthetical reference]] that creates a link (e.g. {{Harv|Atwood|2003}}). The anchor serves no purpose if nothing links to it. == Usage == Copy-'n'-paste. <syntaxhighlight lang="wikitext">{{wikicite | id = | reference = }}</syntaxhighlight> or, alternatively (but not equivalently{{snd}}see below) <syntaxhighlight lang="wikitext">{{wikicite | ref = | reference = }}</syntaxhighlight> 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 <syntaxhighlight lang="wikitext">{{wikicite | id = Anchor 1 | reference = Reference text }}</syntaxhighlight> <syntaxhighlight lang="wikitext">{{wikicite | ref = "Reference-Anchor 1" | reference = Reference text }}</syntaxhighlight> produce identical results. The {{para|reference}} parameter is the actual reference text. It may be plain text, formatted text, or one of the citation templates. == Examples == Recommended formats. {{markup|<nowiki> 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. {{ISBN|978-0-7710-0868-9}}. }} </nowiki>| According to Atwood, blah blah.<ref>[[#Atwood-2003|Atwood (2003)]], p. 29.</ref> {{fake heading|Notes}} {{reflist|close=1}} {{fake heading|References}} * {{wikicite | ref = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN|978-0-7710-0868-9}}. }} |<nowiki> 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. {{ISBN|978-0-7710-0868-9}}. }} </nowiki>| According to Atwood, blah blah.<ref>[[#Reference-Atwood-2003|Atwood (2003)]], p. 29.</ref> {{fake heading|Notes}} {{reflist|close=1}} {{fake heading|References}} * {{wikicite | id = Atwood-2003 | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN|978-0-7710-0868-9}}. }} |<nowiki> 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. {{ISBN|978-0-7710-0868-9}}. }} </nowiki>| According to Atwood, blah blah.{{sfn|Atwood|2003|p=29}} {{fake heading|Notes}} {{reflist|close=1}} {{fake heading|References}} * {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. {{ISBN|978-0-7710-0868-9}}. }} }} The parameter <code>reference</code> can be assigned templates as well as text. So if there is a template that is used for citations that does not support the usual {{tl|Harvnb}} templates (see [[Help:CS1]] and [[Help:CS2]]) the template can be passed into this template via the <code>reference</code> parameter. There is a template called {{tlx|ws}} that "places a wikisource icon before text". For example: :<code><nowiki>{{ws|[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]}} by the [[Duke of Wellington]] (19 June 1815)</nowiki></code> would look like: :{{ws|[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]}} by the [[Duke of Wellington]] (19 June 1815) {{markup|<nowiki> According to the ''[[Duke of Wellington]]'', blah blah.{{sfn|Wellington|1815}} == Notes == {{reflist}} == References == * {{wikicite | ref = {{sfnRef|Wellington|1815}} | reference ={{ws|[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]}} by the [[Duke of Wellington]] (19 June 1815) }} </nowiki>| According to the ''[[Duke of Wellington]]'', blah blah.{{sfn|Wellington|1815}} {{fake heading|Notes}} {{reflist|close=1}} {{fake heading|References}} * {{wikicite | ref = {{sfnRef|Wellington|1815}} | reference ={{ws|[[s:Wellingon's Waterloo dispatch to Lord Bathurst, 19 June 1815|''The Waterloo dispatch'']]}} by the [[Duke of Wellington]] (19 June 1815) }} }} 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 {{tl|harv}}-style footnotes: :*<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'']] }} }}</nowiki></code> :*{{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 == * 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 {{tl|Harvnb}} (or {{tl|sfn}}) and {{tl|Citation}} In article body: <code><nowiki>{{Harv|Atwood|2003}}</nowiki></code> In references section: <code><nowiki>* {{citation | last = Atwood | first = Margaret | year = 2003 | title = Oryx and Crake | location = Toronto | publisher = McClelland & 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]] * [[Wikipedia:Citing sources]] * [[Wikipedia:Citing sources/Further considerations#Using Wikicite]] * [[T-34#References]], example of usage <includeonly>{{Sandbox other|| <!-- ADD CATEGORIES BELOW THIS LINE --> [[Category:Inline templates|{{PAGENAME}}]] [[Category:Citation templates|{{PAGENAME}}]] <!-- ADD INTERWIKIS BELOW THIS LINE --> [[ja:Template:Wikicite]] [[sl:Predloga:Wikisklic]] }}</includeonly>
Summary:
Please note that all contributions to Ikwipedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Ikwipedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:!!
(
edit
)
Template:!-
(
edit
)
Template:Catalog lookup link
(
edit
)
Template:Citation
(
edit
)
Template:Citation/styles.css
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Fake heading
(
edit
)
Template:Fake heading/styles.css
(
edit
)
Template:For loop
(
edit
)
Template:Format item
(
edit
)
Template:Harv
(
edit
)
Template:Harvard citation
(
edit
)
Template:High-use
(
edit
)
Template:ISBN
(
edit
)
Template:Item
(
edit
)
Template:Main other
(
edit
)
Template:Markup
(
edit
)
Template:Markup/row
(
edit
)
Template:Markup/styles.css
(
edit
)
Template:Mbox
(
edit
)
Template:Para
(
edit
)
Template:Reflist
(
edit
)
Template:Reflist/styles.css
(
edit
)
Template:Sfn
(
edit
)
Template:SfnRef
(
edit
)
Template:Snd
(
edit
)
Template:Spaced en dash
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Template:Wikicite
(
edit
)
Template:Wikicite/doc
(
edit
)
Template:Wikisource link with icon
(
edit
)
Template:Ws
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Template:Yesno-yes
(
edit
)
Module:Arguments
(
edit
)
Module:Catalog lookup link
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Check isxn
(
edit
)
Module:Citation/CS1
(
edit
)
Module:Citation/CS1/COinS
(
edit
)
Module:Citation/CS1/Configuration
(
edit
)
Module:Citation/CS1/Date validation
(
edit
)
Module:Citation/CS1/Identifiers
(
edit
)
Module:Citation/CS1/Utilities
(
edit
)
Module:Citation/CS1/Whitelist
(
edit
)
Module:Citation/CS1/styles.css
(
edit
)
Module:Footnotes
(
edit
)
Module:Footnotes/anchor id list
(
edit
)
Module:Footnotes/anchor id list/data
(
edit
)
Module:Footnotes/whitelist
(
edit
)
Module:For loop
(
edit
)
Module:High-use
(
edit
)
Module:Item
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/W
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Uses TemplateStyles/config
(
edit
)
Module:Yesno
(
edit
)
Toggle limited content width