Template:CWGC/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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

{{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

[edit source]

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

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Other examples using the optional parameters:

{{CWGC|id=336417|name=Owen, Wilfred Edward Salter}}, which displays as

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

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

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

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

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

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

Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Tracking categories

[edit source]

See also

[edit source]