Difference between revisions of "Template:CWGC"
(←Blanked the page) |
imported>MusikAnimal m (Reverted edits by 2A03:2880:3020:1FE9:FACE:B00C:0:8000 (talk): Unexplained blanking of page (HG) (3.1.20)) |
||
| Line 1: | Line 1: | ||
| − | + | {{Cite web | |
| + | |url = http://www.cwgc.org/find-war-dead/casualty/{{{id|{{{1|{{#property:P1908|[[Category:CWGC template with no id set]]}}}}}}}}/ | ||
| + | |title = Casualty Details{{#if:{{{name|{{{2|}}}}}}|{{colon}} {{{name|{{{2}}}}}}}} | ||
| + | |publisher = {{#if:{{{fewer-links|}}}|Commonwealth War Graves Commission|[[Commonwealth War Graves Commission]]}} | ||
| + | |access-date = {{{access-date|{{{accessdate|}}}}}} | ||
| + | |mode = {{{mode|}}} | ||
| + | }}<includeonly>{{#invoke:EditAtWikidata|showMessage|pid=P1908|{{{id|{{{1|}}}}}}}}{{#if:{{{id|}}}{{{1|}}}|{{WikidataCheck|property=P1908|value={{{id|{{{1|}}}}}}|category=CWGC person ID}}}}</includeonly><noinclude> | ||
| + | {{documentation}}</noinclude> | ||
Revision as of 15:26, 9 November 2016
template with no id set%5d%5d}}/ "Casualty Details" Check |url= value (help). Commonwealth War Graves Commission.
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
This template is used to provide links to casualty details in the Commonwealth War Graves Commission database at http://www.cwgc.org.
Contents
Usage
{{CWGC|id=|name=|access-date=}}
- id: (optional; will fetch ID from Wikidata if no value provided) the number found in the URL for the casualty (see "Examples" below)
- name: (optional) the name of the casualty
- access-date: (optional) the date the information was retrieved from the website
- fewer-links: (optional) set
|fewer-links=yesto disable wikilinks and prevent overlinking, i.e. if the template is used more than once in an article - mode: (optional) set
|mode=cs2to make the template compatible with Citation Style 2; defaults to Citation Style 1
Examples
The url for Wilfred Owen is http://www.cwgc.org/find-war-dead/casualty/336417/
Extract the 336417 and use this number for the |id= parameter, i.e.
{{CWGC|id=336417}}, which displays as
- "Casualty Details". Commonwealth War Graves Commission.Script error: No such module "EditAtWikidata".Template:WikidataCheck
Other examples using the optional parameters:
{{CWGC|id=336417|name=Owen, Wilfred Edward Salter}}, which displays as
- "Casualty Details: Owen, Wilfred Edward Salter". Commonwealth War Graves Commission.Script error: No such module "EditAtWikidata".Template:WikidataCheck
{{CWGC|id=336417|name=Owen, Wilfred Edward Salter|access-date=31 December 2025}}, which displays as
- "Casualty Details: Owen, Wilfred Edward Salter". Commonwealth War Graves Commission. Retrieved 31 December 2025.Script error: No such module "EditAtWikidata".Template:WikidataCheck
{{CWGC|id=336417|name=Owen, Wilfred Edward Salter|access-date=31 December 2025|fewer-links=yes}}, which displays as
- "Casualty Details: Owen, Wilfred Edward Salter". Commonwealth War Graves Commission. Retrieved 31 December 2025.Script error: No such module "EditAtWikidata".Template:WikidataCheck
{{CWGC|id=336417|name=Owen, Wilfred Edward Salter|access-date=31 December 2025|mode=cs2}}, which displays as
- "Casualty Details: Owen, Wilfred Edward Salter", Commonwealth War Graves Commission, retrieved 31 December 2025Script error: No such module "EditAtWikidata".Template:WikidataCheck
Tracking categories
- Category:CWGC person ID not in Wikidata (0)
- Category:CWGC person ID different from Wikidata (0)
- Category:CWGC person ID same as Wikidata (0)
- Category:CWGC template with no id set (exists in template, not created)
See also
- {{CWGC cemetery}}
- {{AFM roll of honour}}
| The above documentation is transcluded from Template:CWGC/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |