Difference between revisions of "Template:CWGC/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(add links to tracking categories)
imported>Zyxw
m (→‎Tracking categories: update category links using AWB)
Line 38: Line 38:
  
 
==Tracking categories==
 
==Tracking categories==
* [[:Category:CWGC person ID not in Wikidata]] ({{PAGESINCAT:CWGC person ID not in Wikidata}} pages)
+
* {{clc|CWGC person ID not in Wikidata}}
* [[:Category:CWGC person ID different from Wikidata]] ({{PAGESINCAT:CWGC person ID different from Wikidata}} pages)
+
* {{clc|CWGC person ID different from Wikidata}}
* [[:Category:CWGC person ID same as Wikidata]] ({{PAGESINCAT:CWGC person ID same as Wikidata}} pages)
+
* {{clc|CWGC person ID same as Wikidata}}
* [[:Category:CWGC template with no id set]] (exists in template, not created)
+
* {{cl|CWGC template with no id set}} (exists in template, not created)
  
 
==See also==
 
==See also==

Revision as of 22:01, 21 November 2016

Template:Uses Wikidata Template:Tracks Wikidata

This template is used to provide links to casualty details in the Commonwealth War Graves Commission database at http://www.cwgc.org.

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=yes to disable wikilinks and prevent overlinking, i.e. if the template is used more than once in an article
  • mode: (optional) set |mode=cs2 to 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=26 June 2026}}, which displays as

"Casualty Details: Owen, Wilfred Edward Salter". Commonwealth War Graves Commission. Retrieved 26 June 2026.Script error: No such module "EditAtWikidata".Template:WikidataCheck

{{CWGC|id=336417|name=Owen, Wilfred Edward Salter|access-date=26 June 2026|fewer-links=yes}}, which displays as

"Casualty Details: Owen, Wilfred Edward Salter". Commonwealth War Graves Commission. Retrieved 26 June 2026.Script error: No such module "EditAtWikidata".Template:WikidataCheck

{{CWGC|id=336417|name=Owen, Wilfred Edward Salter|access-date=26 June 2026|mode=cs2}}, which displays as

"Casualty Details: Owen, Wilfred Edward Salter", Commonwealth War Graves Commission, retrieved 26 June 2026Script error: No such module "EditAtWikidata".Template:WikidataCheck

Tracking categories

See also