Difference between revisions of "Template:AFM roll of honour"

From blackwiki
Jump to navigation Jump to search
blackwiki>PC78
(new template, based on Template:CWGC)
 
blackwiki>PC78
(fewer-links)
Line 2: Line 2:
 
|url=http://www.afm-veterans-uk.info/roll-of-honour.php?SerialNo={{{id}}}
 
|url=http://www.afm-veterans-uk.info/roll-of-honour.php?SerialNo={{{id}}}
 
|title=Personal Details{{#if:{{{name|}}}|{{colon}} {{{name}}}|}}
 
|title=Personal Details{{#if:{{{name|}}}|{{colon}} {{{name}}}|}}
|work=[[Armed Forces Memorial]] roll of honour
+
|work={{#if:{{{fewer-links|}}}|Armed Forces Memorial|[[Armed Forces Memorial]]}} roll of honour
 
|publisher={{#if:{{{fewer-links|}}}|GOV.UK|[[Gov.uk|GOV.UK]]}}
 
|publisher={{#if:{{{fewer-links|}}}|GOV.UK|[[Gov.uk|GOV.UK]]}}
 
|access-date={{{access-date|{{{accessdate|}}}}}}
 
|access-date={{{access-date|{{{accessdate|}}}}}}
 
|mode={{{mode|}}}
 
|mode={{{mode|}}}
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 
}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 03:25, 23 May 2015

Template documentation[view] [edit] [history] [purge]

This template is used to provide links to personal details in the Armed Forces Memorial roll of honour at http://veterans.mod.uk/index.php.

Usage

{{AFM roll of honour|id=|name=|access-date=}}
  • id: (required) the number found in the url for the person (see "Examples" below)
  • name: (optional) the name of the person
  • 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 Louis Mountbatten, 1st Earl Mountbatten of Burma is http://veterans.mod.uk/roll-of-honour.php?SerialNo=J2589

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

{{AFM roll of honour|id=J2589}}, which displays as

"Personal Details". Armed Forces Memorial roll of honour. GOV.UK.

Other examples using the optional parameters:

{{AFM roll of honour|id=J2589|name=Mountbatten, Louis, Lord Mountbatten of Burma}}, which displays as

"Personal Details: Mountbatten, Louis, Lord Mountbatten of Burma". Armed Forces Memorial roll of honour. GOV.UK.

{{AFM roll of honour|id=J2589|name=Mountbatten, Louis, Lord Mountbatten of Burma|access-date=29 December 2025}}, which displays as

"Personal Details: Mountbatten, Louis, Lord Mountbatten of Burma". Armed Forces Memorial roll of honour. GOV.UK. Retrieved 29 December 2025.

{{AFM roll of honour|id=J2589|name=Mountbatten, Louis, Lord Mountbatten of Burma|access-date=29 December 2025|fewer-links=yes}}, which displays as

"Personal Details: Mountbatten, Louis, Lord Mountbatten of Burma". Armed Forces Memorial roll of honour. GOV.UK. Retrieved 29 December 2025.

{{AFM roll of honour|id=J2589|name=Mountbatten, Louis, Lord Mountbatten of Burma|access-date=29 December 2025|mode=cs2}}, which displays as

"Personal Details: Mountbatten, Louis, Lord Mountbatten of Burma", Armed Forces Memorial roll of honour, GOV.UK, retrieved 29 December 2025

See also