Difference between revisions of "Template:Infobox cemetery/sandbox"
imported>Frietjes |
imported>Frietjes |
||
| Line 2: | Line 2: | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| titleclass = fn org | | titleclass = fn org | ||
| − | | title = {{{name|<includeonly>{{ | + | | title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}} |
| subheader = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | | subheader = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span>}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagesize|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| image2 = {{#if:{{{map_type|}}}|{{Location map|{{{map_type}}} | | image2 = {{#if:{{{map_type|}}}|{{Location map|{{{map_type}}} | ||
| − | | | + | |coordinates = {{{coordinates|}}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|width={{{map_size|220}}}|float=center|border=none|caption= }}{{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}} }} | |width={{{map_size|220}}}|float=center|border=none|caption= }}{{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}} }} | ||
| − | | header1 = {{#if:{{{established|}}}{{{country|}}}{{{location|}}}{{{coordinates | + | | header1 = {{#if:{{{established|}}}{{{country|}}}{{{location|}}}{{{coordinates|}}}{{{type|}}}{{{owner|}}}{{{size||}}}{{{size_km2|}}}{{{size_sqmi|}}}{{{size_ha|}}}{{{size_acre|}}}{{{graves|}}}{{{website|}}}{{{findagraveid|}}}{{{findagrave1|}}}{{{politicalgeo|}}}|Details}} |
| label2 = Established | | label2 = Established | ||
| data2 = {{{established|}}} | | data2 = {{{established|}}} | ||
| − | | label3 = {{#if:{{{abandoned|}}}|Abandoned|Closed}} | + | | label3 = {{#if:{{{abandoned|}}}|Abandoned|{{#if:{{{disestablished|}}}|Disestablished|Closed}}}} |
| − | | data3 = {{ | + | | data3 = {{if empty|{{{abandoned|}}}|{{{disestablished|}}}|{{{closed|}}}}} |
| label4 = Location | | label4 = Location | ||
| Line 35: | Line 26: | ||
| label6 = [[Geographic coordinate system|Coordinates]] | | label6 = [[Geographic coordinate system|Coordinates]] | ||
| − | | data6 = {{#if:{{ | + | | data6 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}}}} |
| − | |||
| label7 = Type | | label7 = Type | ||
| Line 66: | Line 56: | ||
| label17 = [[Find a Grave]] | | label17 = [[Find a Grave]] | ||
| − | | data17 = {{#if:{{{findagraveid|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagraveid|}}} {{#invoke:String|replace|{{{name|{{PAGENAMEBASE}}}}}|%s+%b()$||1|false}}]|{{{findagrave|}}}}} | + | | data17 = {{#if:{{{findagraveid|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagraveid|}}} {{#invoke:String|replace|{{{name|{{PAGENAMEBASE}}}}}|%s+%b()$||1|false}}]|{{comma separated entries |
| + | |1={{#if:{{{findagrave1|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagrave1}}} {{{findagrave1_label|}}}]}} | ||
| + | |2={{#if:{{{findagrave2|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagrave2}}} {{{findagrave2_label|}}}]}} | ||
| + | |3={{#if:{{{findagrave3|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagrave3}}} {{{findagrave3_label|}}}]}} | ||
| + | |4={{#if:{{{findagrave4|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagrave4}}} {{{findagrave4_label|}}}]}} | ||
| + | |5={{#if:{{{findagrave5|}}}|[http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid={{{findagrave5}}} {{{findagrave5_label|}}}]}} | ||
| + | }}}}{{{findagrave|}}} | ||
| label18 = [[The Political Graveyard]] | | label18 = [[The Political Graveyard]] | ||
| Line 76: | Line 72: | ||
| data20 = {{{nrhp|{{{embedded|}}}}}} | | data20 = {{{nrhp|{{{embedded|}}}}}} | ||
| − | }}{{# | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox cemetery with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox cemetery]] with unknown parameter "_VALUE_"|ignoreblank=y| abandoned | alt | caption | closed | coordinates | country | cremations | disestablished | embedded | established | findagrave | findagrave1 | findagrave1_label | findagrave2 | findagrave2_label | findagrave3 | findagrave3_label | findagrave4 | findagrave4_label | findagrave5 | findagrave5_label | findagraveid | footnotes | graves | image | image_size | imagesize | interments | leases | location | map_caption | map_size | map_type | name | native_name | native_name_lang | nrhp | owner | political | politicalgeo | size | size_acre | size_ha | size_km2 | size_sqmi | style | type | website }}<noinclude> |
| − | + | {{Documentation}}<!--Please add this template's categories to the /doc subpage, not here - thanks!--> | |
| − | {{Documentation}} | ||
| − | |||
| − | <!--Please add this template's categories to the /doc subpage, not here - thanks!--> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:50, 7 January 2017
| Closed | Script error: No such module "If empty". |
|---|
| This is the template sandbox page for Template:Infobox cemetery (diff). See also the companion subpage for test cases. |
| This template uses Lua: |
Usage
Template:Parameter names example
{{Infobox cemetery
| name =
| native_name =
| native_name_lang =
| image =
| image_size =
| alt =
| caption =
| map_type =
| map_size =
| map_caption =
| established =
| abandoned = <!-- or | closed = -->
| location =
| country =
| coordinates =
| type =
| style =
| owner =
| size =
| graves =
| interments =
| cremations =
| leases =
| website =
| findagraveid =
| politicalgeo =
| footnotes =
| nrhp =
| embedded =
}}
Parameters
All parameters are optional.
| Parameter | Default | Description |
|---|---|---|
| name | Page title | The name by which the site is known |
| image | ||
| imagesize | ||
| alt | ||
| caption | ||
| map_type | Uses the {{Location map}} format maps with the latitude and longitude fields, specify the map to use | |
| map_size | The user's thumbnail size | Sets a specific size to the map |
| map_caption | "Shown within" + map_type | Descriptive caption to display under the map |
| established | Year or Date established | |
| location | ||
| country | ||
| coordinates | ||
| type | Common purposes e.g. Public, Private, Church, Family, Jewish, Muslim, Roman Catholic, City, State, Veterans, Federal or National, Non-profit, Historic, Paupers | |
| style | Architectural, Artistic, or Cultural style of cemetery's design | |
| owner | Organization or group who own or are responsible for the cemetery. | |
| size | Size in acres, hectares, square miles, square kilometers, etc. | |
| graves | Number of known graves | |
| interments | Number of interments. Note that in U.S. National or Veterans cemeteries, the veteran and spouse are buried in one grave site. | |
| cremations | Number of cremations | |
| leases | Terms of lease of the grave if the burial is not "in perpetuity". | |
| website | URL of the cemetery's web site | |
| findagraveid | The Cemetery ID number shown on Find a Grave's web site page for this cemetery | |
| politicalgeo | The geo id used at The Political Graveyard web site page for this cemetery (i.e., http://politicalgraveyard.com/geo/GEOID, where GEOID is the geo id)
| |
| nrhp | National Register of Historic Places | |
| embedded |
Coordinates
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox cemetery No description.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Microformats
Tracking category
| The above documentation is transcluded from Template:Infobox cemetery/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |