• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:HPC row

  • Language
  • Watch
  • View source
Name Address Coordinates Government recognition (CRHP №) Wikidata ID Image

Upload Photo
Template documentation[view] [edit] [history] [purge]
This template uses the Wikidata properties:
  • NO LABEL (P969) (see uses)
  • NO LABEL (P276) (see uses)
  • NO LABEL (P131) (see uses)
  • NO LABEL (P281) (see uses)
  • NO LABEL (P625) (see uses)
  • NO LABEL (P18) (see uses)
  • NO LABEL (P373) (see uses)

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.

Contents

  • 1 Usage
    • 1.1 If Wikidata page exists
    • 1.2 If Wikidata page does NOT exists
    • 1.3 Parameters
  • 2 Microformat
    • 2.1 Sub-templates
    • 2.2 Classes
    • 2.3 Precision
  • 3 See also

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

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

See also

  • {{HPC header}}
  • {{HPC footer}}
The above documentation is transcluded from Template:HPC row/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:HPC_row&oldid=5758757"
Last edited on 21 June 2024, at 01:39

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 21 June 2024, at 01:39.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop