Misplaced Pages

Template:CWGC cemetery/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:CWGC cemetery Browse history interactivelyContent deleted Content addedVisualWikitext
Revision as of 14:16, 15 May 2011 editDavidCane (talk | contribs)Autopatrolled, Extended confirmed users, Pending changes reviewers, Rollbackers48,564 edits create doc text  Latest revision as of 07:34, 4 June 2023 edit undoWOSlinker (talk | contribs)Administrators854,910 editsm syntaxhighlight lang="wikitext" 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Uses Wikidata|P1920}}

This template is used to provide links to cemetery details in the ] database at http://www.cwgc.org.

==Usage== ==Usage==
<syntaxhighlight lang="wikitext">{{CWGC cemetery|id=|name=|access-date=}}</syntaxhighlight>
<code>{<nowiki>{cwgc cemetery|nnnnn|accessdate=}</nowiki>}</code>

*''nnnnn'' is the database number found in the Commission's url.
* '''id''': (required) the number found in the url for the cemetery (see "Examples" below)
*If included, the optional parameter accessdate= will enable the editor to show the date the database was accessed.
* '''name''': (optional) the name of the cemetery
* '''access-date''': (optional) the date the information was retrieved from the website

==Examples==
The url for ] is ''<nowiki>http://www.cwgc.org/find-a-cemetery/cemetery/51602</nowiki>''


Extract the ''51602'' and use this number for the {{para|id}} parameter, i.e.
==Example==
The url for Ploegsteert Wood Military Cemetery is ''<nowiki>http://www.cwgc.org/search/cemetery_details.aspx?cemetery=51602&mode=1</nowiki>''.


<code><nowiki>{{CWGC cemetery|id=51602}}</nowiki></code>, which displays as
Extract the ''51602'' and add it to the template and ''|accessdate='' as the second:
:{{CWGC cemetery|id=51602}}


Other examples using the optional parameters:
<code>{<nowiki>{cwgc cemetery|51602|accessdate=</nowiki>{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}</nowiki>}</code>


<code><nowiki>{{CWGC cemetery|id=51602|name=Ploegsteert Wood Military Cemetery}}</nowiki></code>, which displays as
This produces direct links to the four parts of the cemetery register:
:{{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|51602|accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
:{{CWGC cemetery|id=51602|name=Ploegsteert Wood Military Cemetery|access-date={{date}}}}


==See also== ==See also==
* {{tl|CWGC}}
]
* ]


<includeonly> <includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
] ]
]
</includeonly>
]
}}</includeonly>

Latest revision as of 07:34, 4 June 2023

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 details 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/find-a-cemetery/cemetery/51602

Extract the 51602 and use this number for the |id= parameter, i.e.

{{CWGC cemetery|id=51602}}, which displays as

Cemetery details. Commonwealth War Graves Commission.

Other examples using the optional parameters:

{{CWGC cemetery|id=51602|name=Ploegsteert Wood Military Cemetery}}, which displays as

Cemetery details: Ploegsteert Wood Military Cemetery. Commonwealth War Graves Commission.

{{CWGC cemetery|id=51602|name=Ploegsteert Wood Military Cemetery|access-date=18 December 2024}}, which displays as

Cemetery details: Ploegsteert Wood Military Cemetery. Commonwealth War Graves Commission. Retrieved 18 December 2024.

See also