Misplaced Pages

Template:Wikicite/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Wikicite Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 00:07, 25 March 2012 editAlarbus (talk | contribs)7,569 edits not just for handwritten citations; useful for old-paradigm templates, too; those not supporting {{para|ref}}← Previous edit Revision as of 00:45, 25 March 2012 edit undoRedrose64 (talk | contribs)Autopatrolled, Administrators273,059 edits Examples: be consistent with other uses of {{sfn}}, so don't italicise; use separate parameters; use year not full date; show page numberNext edit →
Line 76: Line 76:
* {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. ISBN 978-0-7710-0868-9. }} * {{wikicite | ref = {{sfnRef|Atwood|2003}} | reference = Atwood, Margaret (2003). ''Oryx and Crake'', Toronto: McClelland & Stewart. ISBN 978-0-7710-0868-9. }}
|<nowiki> |<nowiki>
According to the ''London Gazette'', blah blah.{{sfn|''London Gazette'' 19 October 1728}} According to the ''London Gazette'', blah blah.{{sfn|London Gazette|1728|p=3}}


== Notes == == Notes ==
Line 83: Line 83:
== References == == References ==
* {{wikicite * {{wikicite
| ref = {{sfnRef|.27.27London Gazette.27.27 19 October 1728}} | ref = {{sfnRef|London Gazette|1728}}
| reference = | reference =
{{London Gazette {{London Gazette
Line 93: Line 93:
}} }}
</nowiki>| </nowiki>|
According to the ''London Gazette'', blah blah.{{sfn|''London Gazette'' 19 October 1728}} According to the ''London Gazette'', blah blah.{{sfn|London Gazette|1728|p=3}}


{{fake heading|Notes}} {{fake heading|Notes}}
Line 100: Line 100:
{{fake heading|References}} {{fake heading|References}}
* {{wikicite * {{wikicite
| ref = {{sfnRef|.27.27London Gazette.27.27 19 October 1728}} | ref = {{sfnRef|London Gazette|1728}}
| reference = | reference =
{{London Gazette {{London Gazette

Revision as of 00:45, 25 March 2012

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.

{{Wikicite}} makes a simple reference, for use in a "References" section for books, journals, web references, etc. The reference text may be formatted manually, and the template merely adds an anchor for linking from in-text citations. This tempalte is also useful when using a citation template that does not support the |ref= parameter (for example, {{London Gazette}}, but there are others).

This template is only needed for handwritten citations, or citations using non-standard citation templates, that are linked to by a shortened footnote or a parenthetical reference. If you don't mind using a citation template, it is more standard to use {{sfn}} or {{harv}} with a template such as {{citation}}, {{cite book}}, {{cite web}}, etc.

This template is not necessary if the citation uses a citation template (such as {{cite book}}). Use the |ref= parameter of the citation template to create the anchor. This template is also not necessary if the article does not contain a shortened footnote or parenthetical reference that creates a link (e.g. (Atwood 2003)). The anchor serves no purpose if nothing links to it.

Usage

Cut-'n'-paste.

{{wikicite | id = | reference = }}

or, alternatively

{{wikicite | ref = | 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>], 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. }}

According to Atwood, blah blah.

Notes
  1. Atwood (2003), p. 29.
References
  • Atwood, Margaret (2003). Oryx and Crake, Toronto: McClelland & Stewart. ISBN 978-0-7710-0868-9.
According to Atwood, blah blah.<ref>], 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. }}

According to Atwood, blah blah.

Notes
  1. Atwood (2003), p. 29.
References
  • Atwood, Margaret (2003). Oryx and Crake, Toronto: McClelland & Stewart. ISBN 978-0-7710-0868-9.
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. }}

According to Atwood, blah blah.

Notes
  1. Atwood 2003, p. 29.
References
  • Atwood, Margaret (2003). Oryx and Crake, Toronto: McClelland & Stewart. ISBN 978-0-7710-0868-9.
According to the ''London Gazette'', blah blah.{{sfn|London Gazette|1728|p=3}}
== Notes ==
{{reflist}}
== References ==
* {{wikicite
  | ref = {{sfnRef|London Gazette|1728}}
  | reference =
    {{London Gazette
    | issue = 6719
    | startpage = 3
    | date = 19 October 1728
    | accessdate = 7 January 2009
    }}
  }}

According to the London Gazette, blah blah.

Notes
  1. London Gazette 1728, p. 3.
References

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 many other templates' in-text citation links (any id which starts with "Reference-")
  • Complies with WP:AUM
  • No conditionals
  • No CSS hacks

Alternatives

Note that the identical behavior can be achieved using the more standard {{Harvnb}} (or {{sfn}}) and {{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