.mw-parser-output .citation{word-wrap:break-word}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}
| This template uses TemplateStyles: |
For some atypical citations, {{Wikicite}} can create an HTML anchor. When used in manually written, non-templated full citations, it allows shortened footnotes to link to the full citation on the same page. The link anchor can work with short-citation templates, such as {{sfn}}, {{harvnb}}, {{sfnp}}, {{harvp}}, and others.
This template is only needed for a handwritten citation or for a citation using non-standard citation templates, that is linked to by a shortened footnote. The anchor serves no purpose if nothing links to it, and full citations created with the common {{cite xxx}} templates will either automatically create the anchor or offer the |ref= parameter for custom link anchors. In most cases, this template is expected to be used temporarily, in cases where an editor is not certain how to format the full citation data into a template, does not have time to do it, where there is a dispute on the talk page about which citation format should be used, or where a specific citation template does not yet support the |ref= parameter. In a handful of cases, however, there remain some articles with local consensus to use entirely manually formatted citations, to exactly mirror some off-site citation style. This is rare but permitted by the WP:CITESTYLE guideline.
Copy and paste:
{{wikicite |ref={{sfnref|}} |reference= }}
or
{{wikicite |ref= |reference= }}
|ref="Von Autor-2006".In the following examples from the Bengal famine of 1943, an unpublished but publicly available manuscript by the Indian Government’s Regional Food Commissioner is used as a primary source. As there are few acceptable places on Wikipedia to use an unpublished memoir as a source, no citation template directly matches the document:
| Markup | Renders as |
|---|---|
Government sources privately admitted the shortfall was 2 million tons.{{sfn|Braund|1944|p=50}}
==Notes==
{{reflist}}
==References==
* {{wikicite | ref = {{sfnref|Braund|1944}} | reference = Braund, H. B. L. (1944). ''Famine in Bengal'', typescript. British Library Doc D792.}}
|
Government sources privately admitted the shortfall was 2 million tons.[1] Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
|
You can also provide the |ref= parameter with a free-form anchor. The anchor can contain letters, numbers, and hyphens. To link to a free-form anchor, use a wikitext anchor link. For example, link to {{wikicite |ref=Doe-1999 |reference=... }} with <ref>[[#Doe-1999|Doe 1999]], p. x.</ref>. Below, the previous example has been rewritten with a free-form anchor:
| Markup | Renders as |
|---|---|
Government sources privately admitted the shortfall was 2 million tons.<ref>[[#Braund-1944|Braund (1944)]], p. 50</ref>
==Notes==
{{reflist}}
==References==
* {{wikicite | ref = Braund-1944 | reference = Braund, H. B. L. (1944). ''Famine in Bengal'', typescript. British Library Doc D792.}}
|
Government sources privately admitted the shortfall was 2 million tons.[1] Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
|
Most citation templates have a |ref= parameter that can accept any anchor, similar to the |ref= parameter in this template. Templates that don't support this can be placed into this template's |reference= parameter:
* {{wikicite |ref={{Harvid|Australian Recording Industry Association A}} |reference= {{cite certification|region=Australia|certyear=2006|access-date=1 July 2019}} }}
When the citation template is updated to generate its own anchor, the custom anchor can be moved from {{wikicite}} to the citation template:
* {{cite certification|region=Australia|certyear=2006|access-date=1 July 2019 |ref={{Harvid|Australian Recording Industry Association A}} }}
The |id= parameter can also be used to create an HTML anchor in a full citation. It has the same role as the |ref= parameter but they work in slightly different ways. If both |id= and |ref= are provided, |id= is ignored. There are two differences:
|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.Thus, these two forms produce identical results:
{{wikicite | id = Anchor 1 | reference = Reference text }}
{{wikicite | ref = "Reference-Anchor 1" | reference = Reference text }}
The |id= parameter can only be used with manual anchor links:
| Markup | Renders as |
|---|---|
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}}. }}
|
According to Atwood, blah blah.[1] Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
|
This template can be used with the same unnamed parameters as other short citation template like {{sfn}} and {{SfnRef}}. If no |ref= or |id= parameter is given, then the unnamed parameters are 1 to 4 author surnames (in the same order as found in the citation) and the year as the last parameter, each with it's own |.
{{SfnRef inline|Smith|2022}}{{SfnRef inline|Garcia|Chiang|1975}}{{SfnRef inline|Banh|van Doren|Lytton-St. John|O'Brien|2009}}| Markup | Renders as |
|---|---|
Some article text.{{sfnp|Buchanan|2023|loc=para. 7}}
==Notes==
{{reflist}}
==References==
* {{wikicite|Buchanan|2023|reference=Buchanan, Abigail. (14 November 2023). "[https://en.wikipedia.org/wiki/Template:SfnRef_inline 'We are making bagpipes sexy again': Inside the late Queen's beloved Scottish music school]". ''[[The Daily Telegraph]]'') {{Webarchive |url= https://web.archive.org/web/20240102130411/https://www.telegraph.co.uk/christmas/2023/11/14/inside-the-late-queens-beloved-scottish-music-school/ |date=2 January 2024}} }}
|
Some article text.[1] Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
Template loop detected: Template:Fake heading Template loop detected: Template:Fake heading
|
TemplateData for Wikicite
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Visible reference text | reference | The entire visible reference. Can include links and templates. | Unknown | suggested |
| Anchor | ref | HTML anchor id used by links (not visible to readers)
| Unknown | suggested |
| 1 | 1 | no description | Unknown | optional |
| 2 | 2 | no description | Unknown | optional |
| 3 | 3 | no description | Unknown | optional |
| 4 | 4 | no description | Unknown | optional |
| 5 | 5 | no description | Unknown | optional |
| id | id | alternative HTML anchor id used by links (ignored when the 'ref' parameter is also used) | Unknown | optional |
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.