Revision as of 19:38, 15 January 2014 editFrietjes (talk | contribs)Autopatrolled, Extended confirmed users, Template editors1,000,827 editsNo edit summary← Previous edit | Revision as of 00:02, 19 May 2015 edit undoPC78 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Pending changes reviewers, Template editors98,746 edits update documentationNext edit → | ||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
This template is used to provide links to pages in the ] |
This template is used to provide links to cemetery pages in the ] database at http://www.cwgc.org. | ||
==Usage== | ==Usage== | ||
< |
<pre>{{cwgc cemetery|id=|name=|access-date=}}</pre> | ||
*''nnnnn'' is the database number found in the Commission's url. | |||
*If included, the optional parameter accessdate= will enable the editor to show the date the database was accessed. | |||
* '''id''': (required) the number found in the url for the cemetery (see "Examples" below) | |||
==Example== | |||
* '''name''': (optional) the name of the cemetery | |||
⚫ | The url for Ploegsteert Wood Military Cemetery is ''<nowiki>http://www.cwgc.org/search/cemetery_details.aspx?cemetery=51602 |
||
* '''access-date''': (optional) the date the information was retrieved from the website | |||
==Examples== | |||
Extract the ''51602'' and add it to the template and ''|accessdate='' as the second: | |||
⚫ | The url for Ploegsteert Wood Military Cemetery is ''<nowiki>http://www.cwgc.org/search/cemetery_details.aspx?cemetery=51602</nowiki>'' | ||
Extract the ''51602'' and use this number for the {{para|id}} parameter, i.e. | |||
<code>{<nowiki>{cwgc cemetery|51602|accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}</nowiki>}</code> | |||
<code><nowiki>{{cwgc cemetery|id=51602}}</nowiki></code>, which displays as | |||
This produces direct links to the four parts of the cemetery register: | |||
:{{cwgc cemetery|id=51602}} | |||
Other examples using the optional parameters: | |||
{{cwgc cemetery|51602|accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} | |||
<code><nowiki>{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery}}</nowiki></code>, which displays as | |||
:{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery}} | |||
<code><nowiki>{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery|access-date=</nowiki>{{date}}<nowiki>}}</nowiki></code>, which displays as | |||
:{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery|access-date={{date}}}} | |||
==See also== | ==See also== | ||
* {{tl| |
* {{tl|cwgc}} | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES HERE, THANKS --> | <!-- CATEGORIES HERE, THANKS --> | ||
] | |||
] | ] | ||
</includeonly> | </includeonly> |
Revision as of 00:02, 19 May 2015
This is a documentation subpage for Template:CWGC cemetery. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to provide links to cemetery pages in the Commonwealth War Graves Commission database at http://www.cwgc.org.
Usage
{{cwgc cemetery|id=|name=|access-date=}}
- id: (required) the number found in the url for the cemetery (see "Examples" below)
- name: (optional) the name of the cemetery
- access-date: (optional) the date the information was retrieved from the website
Examples
The url for Ploegsteert Wood Military Cemetery is http://www.cwgc.org/search/cemetery_details.aspx?cemetery=51602
Extract the 51602 and use this number for the |id=
parameter, i.e.
{{cwgc cemetery|id=51602}}
, which displays as
Other examples using the optional parameters:
{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery}}
, which displays as
{{cwgc cemetery|id=51602|name=Ploegsteert Wood Military Cemetery|access-date=1 January 2025}}
, which displays as
- Cemetery details: Ploegsteert Wood Military Cemetery. Commonwealth War Graves Commission. Retrieved 1 January 2025.
See also
- {{cwgc}}