Difference between revisions of "Template:HPC row/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Arctic.gnome
(Create sandbox version of Template:HPC row)
 
imported>Arctic.gnome
(test)
Line 2: Line 2:
 
</noinclude>|- class="vcard"
 
</noinclude>|- class="vcard"
 
| class="fn org" | {{{name|}}}
 
| class="fn org" | {{{name|}}}
| class="label" | {{{address|}}}
+
| class="street-address" | {{{address|}}}
| Class="adr" | <span class="locality">{{{municipality|}}}</span>
+
| Class="adr" | <span class="locality">{{{municipality|}}}</span>, <abbr class="region" title="{{CanProvName|{{{region|}}}|name}}">{{CanProvName|{{{region|}}}}}</abbr>
 
| {{{pc|}}}
 
| {{{pc|}}}
 
| {{#if:{{both|{{{lat|}}}|{{{lon|}}}}}
 
| {{#if:{{both|{{{lat|}}}|{{{lon|}}}}}
Line 14: Line 14:
 
| {{#if:{{{idp|}}}|[http://www.historicplaces.ca/en/rep-reg/place-lieu.aspx?id={{{idp|}}} {{{idp|}}}]}}
 
| {{#if:{{{idp|}}}|[http://www.historicplaces.ca/en/rep-reg/place-lieu.aspx?id={{{idp|}}} {{{idp|}}}]}}
 
| {{#if:{{{idm|}}}|[http://www.historicplaces.ca/en/rep-reg/place-lieu.aspx?id={{{idm|}}} {{{idm|}}}]}}
 
| {{#if:{{{idm|}}}|[http://www.historicplaces.ca/en/rep-reg/place-lieu.aspx?id={{{idm|}}} {{{idm|}}}]}}
| style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image|}}}|100px]]{{#if:{{{commonscat|}}}|<br />[[:commons:Category:{{{commonscat}}}|More images]]}}| {{UploadCampaignLink|campaign=wlm-ca|id={{#if:{{{idf|}}}|{{{idf|}}}%7C}}{{#if:{{{idNHS|}}}|{{{idNHS|}}}%7C}}{{#if:{{{idp|}}}|{{{idp|}}}%7C}}{{#if:{{{idm|}}}|{{{idm|}}}%7C}}|description={{{name|}}}|lat={{{lat|}}}|lon={{{lon|}}} }} }}<noinclude>
+
| class="photo" style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image|}}}|100px]]{{#if:{{{commonscat|}}}|<br />[[:commons:Category:{{{commonscat}}}|More images]]}}| {{UploadCampaignLink|campaign=wlm-ca|id={{#if:{{{idf|}}}|{{{idf|}}}%7C}}{{#if:{{{idNHS|}}}|{{{idNHS|}}}%7C}}{{#if:{{{idp|}}}|{{{idp|}}}%7C}}{{#if:{{{idm|}}}|{{{idm|}}}%7C}}|description={{{name|}}}|lat={{{lat|}}}|lon={{{lon|}}} }} }}<noinclude>
 
|}
 
|}
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 22:34, 27 April 2016

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

Template:Uses Wikidata

This template provides a row in a table of entries from the Canadian Register of Historic Places. These are used primarily in lists accessed from Lists of historic places in Canada.

Usage

If Wikidata page exists

{{HPC row
|name=
|coordname=
|region=
|idf=
|idf2=
|idp=
|idm=
|wikidata=
}}

If Wikidata page does NOT exists

{{HPC row
|name=
|coordname=
|region=
|address=
|municipality=
|pc=
|lat=
|lon=
|provinceId=
|idf=
|idf2=
|idp=
|idm=
|image=
|commonscat=
}}

Parameters

  • name - this should be the name (or one of the names) as given in the CRHP for the site. It may contain links.
  • coordname - this is a plaintext name that will be used in mapping the site. It may not contain links or other wiki markup. Note: if "lat/lon" are used and the "name" contains links then "coordname" must be used to avoid problems with the coordinates display.
  • region - one of the two letter provincial/territorial codes.
  • address - the street address, or other description of the site's location with the community. Ideally this parameter will include the use of {{sort}} so that the entries in a table will sort well by this parameter. If blank, will use the Wikidata property located at street address or location.
  • municipality - the community in which the site is found. This should be wikilinked. If blank, will use the Wikidata property located in the administrative territorial entity.
  • pc - the three-digit Canadian postal code for the site. If blank, will use the Wikidata property postal code.
  • lat - the latitude (in decimal notation) for the site.
  • lon - the longitude (in decimal notation) for the site.
  • provinceId - the CRHP numeric identifier for the province in which the site is located.
  • image - the name of an image to use; do not include [[File:, [[Image:, or other image formatting. If blank, will use the Wikidata property image.
  • commonscat - The category on Wikimedia Commons for images of this site. If blank, will use the Wikidata property Commons category.
  • idf - a federal designation number in the CRHP; the template will provide a link to the CRHP using this number.
  • idf2 - a second federal designation number in the CRHP for sites registered twice at the federal level (used for national historic sites and historic railways); the template will provide a link to the CRHP using this number.
  • idp - a provincial designation number in the CRHP; the template will provide a link to the CRHP using this number.
  • idm - a municipal designation number in the CRHP; the template will provide a link to the CRHP using this number.
  • wikidata - the ID of the site on Wikidata

Microformat

Template:UF-hcard-geo

See also