Template:PH wikidata: Difference between revisions
Appearance
Content deleted Content added
changed P137 from wikidata to wikidataIB; add admiralty |
add {{param||noicon=true}} (twice) |
||
Line 158: | Line 158: | ||
| climate_title = [[Köppen climate classification|Climate type]] |
| climate_title = [[Köppen climate classification|Climate type]] |
||
| climate_type = {{safesubst:ucfirst:{{safesubst:#invoke:WikidataIB |getPreferredValue |P2564|fetchwikidata=ALL|onlysourced=no}} }} |
| climate_type = {{safesubst:ucfirst:{{safesubst:#invoke:WikidataIB |getPreferredValue |P2564|fetchwikidata=ALL|onlysourced=no|noicon=true}} }} |
||
| operator = {{safesubst:ucfirst:{{safesubst:#invoke:WikidataIB |getPreferredValue |P137|fetchwikidata=ALL|onlysourced=no}} }} |
| operator = {{safesubst:ucfirst:{{safesubst:#invoke:WikidataIB |getPreferredValue |P137|fetchwikidata=ALL|onlysourced=no|noicon=true}} }} |
||
| has_part = {{safesubst:#if:{{safesubst:#property:P527}}|{{safesubst:#invoke:sorted plain list|ascd|propertyID=P527}}}} |
| has_part = {{safesubst:#if:{{safesubst:#property:P527}}|{{safesubst:#invoke:sorted plain list|ascd|propertyID=P527}}}} |
Revision as of 06:54, 3 February 2018
This template uses Lua: |
This template uses the Wikidata properties:
- instance of (P31) (see uses)
- nickname (P1449) (see uses)
- motto text (P1451) (see uses)
- image (P18) (see uses)
- flag image (P41) (see uses)
- seal image (P158) (see uses)
- locator map image (P242) (see uses)
- located in the administrative territorial entity (P131) (see uses)
- ISO 3166-2 code (P300) (see uses)
- detail map (P1621) (see uses)
- country (P17) (see uses)
- contains the administrative territorial entity (P150) (see uses)
- inception (P571) (see uses)
- legislative body (P194) (see uses)
- office held by head of government (P1313) (see uses)
- instance of (P31) (see uses)
- legislative body (P194) (see uses)
- population (P1082) (see uses)
- determination method or standard (P459) (see uses)
- point in time (P585) (see uses)
- Philippine Standard Geographic Code (P988) (see uses)
- poverty incidence (P8843) (see uses)
- electorate (P1831) (see uses)
- number of households (P1538) (see uses)
- language used (P2936) (see uses)
- demonym (P1549) (see uses)
- postal code (P281) (see uses)
- located in/on physical feature (P706) (see uses)
- local dialing code (P473) (see uses)
- income classification (Philippines) (P1879) (see uses)
- patron saint (P417) (see uses)
- official website (P856) (see uses)
- Facebook username (P2013) (see uses)
- X username (P2002) (see uses)
- Instagram username (P2003) (see uses)
- YouTube channel ID (P2397) (see uses)
- Commons category (P373) (see uses)
- ICAO airport code (P239) (see uses)
- IATA airport code (P238) (see uses)
- OpenStreetMap relation ID (P402) (see uses)
- coordinate location (P625) (see uses)
- Köppen climate classification (P2564) (see uses)
- diocese (P708) (see uses)
- elevation above sea level (P2044) (see uses)
- operator (P137) (see uses)
- area (P2046) (see uses)
- fiscal/tax revenue (P3087) (see uses)
- associated electoral district (P7938) (see uses)
- number of constituencies (P4253) (see uses)
- total assets (P2403) (see uses)
- total liabilities (P2138) (see uses)
- total expenditure (P2402) (see uses)
This template is used to retrieve wikidata for use in {{infobox settlement}} templates transcluded in articles about populated places in the Philippines. Currently, this template is used within the article, but may be moved to {{infobox settlement}} in the future. Keeping the "infobox parameter" / "wikidata property" relationships within a single template ensures some level of consistency, allows for tracking of uses, and allows for changes to the relationships without changing every single article.
Per this 2013 RFC, this template is limited to use within infoboxes. It must not be used within article prose.
Add {{infobox lighthouse}}.
This template uses the Wikidata properties:
- Admiralty number (P3562) (see uses)
- ARLHS lighthouse ID (P2980) (see uses)
- focal height (P2923) (see uses)
- height (P2048) (see uses)
- light characteristic (P1030) (see uses)
- light sector (P3922) (see uses)
- lighthouse range (P2929) (see uses)
- NGA lighthouse ID (P3563) (see uses)
Usage
{{PH wikidata|property name}}
where property name
is one of the following
area_code
area
assets
capital_of
climate_type
commons
coordinates
council_title
country
diocese
district
electoral_district
electorate_point_in_time
electorate_title
electorate
elevation_ft
elevation_m
elevation_footnotes
established_date
orfounded
expenditure
facebook
government_type
household
iata
icao
image_caption
image_flag
image_map
image_map1
image_seal
image_shield
image_skyline
income_class_ordinal
income_class_title
income_class
orincome_class_text
instagram
iso_region
oriso_code
orcoordinates_region
language
leader_title
ormayor_title
liabilities
located_on
orlocated_in
map_caption
map_caption1
motto
municipalities
orbarangays
name
nickname1
number of divisions
official_name
operator
osm
patron_saint
population_as_of
population_demonym
ordemonym
population_point_in_time
population_total
postal_code
poverty_incidence
poverty_incidence_point_in_time
province
psgc_title
psgc
region
revenue
revenue_point_in_time
seat
settlement_text
settlement_type
twitter
vicemayor_title
website
youtube
infobox lighthouse
admiralty
ARLHS
characteristic
focalheight
height
light_sector
NGA
range
Tracking
- Special:WhatLinksHere/Template:PH wikidata/check wikidata commons link
- Special:WhatLinksHere/Template:PH wikidata/deprecated parameter
See also
- {{areacodestyle}}
- {{Official URL}}
- {{PH census}} / {{Philippine census reference}}
- {{PH Comelec roll}}
- {{PH Town Council}}
- {{PSGC detail}}
- {{PSGCstyle}}