வார்ப்புரு:PH wikidata
&lt;includeonly&gt;{{safesubst:#switch:{{safesubst:lc:{{{1|}}}}}
 | settlement_type = {{safesubst:#switch:{{safesubst:lc:{{safesubst:#property:P31}}}}
  |=
  |barangay = [[Barangay]]
  |island group = Islands
  |municipality of the philippines = [[Municipalities of the Philippines|Municipality]]
  |city of the philippines = [[Cities of the Philippines|{{safesubst:#switch:{{{prefix}}}| cc = Component| huc = Highly Urbanized| icc = Independent Component}} City]]
  |province of the philippines = [[Provinces of the Philippines|Province]]
  |#default = {{safesubst:#invoke:Wikidata|getValue|P31|FETCH_WIKIDATA}}
  }}
 | nickname1 = {{safesubst:#if:{{safesubst:#property:P1449}}|{{safesubst:replace|{{safesubst:#property:P1449}}|,|{{safesubst:repeat|&lt;br /&gt;|{{safesubst:#if:{{{lflf|}}}|{{{lflf|}}}|1}}}}}}}}
 | motto = {{safesubst:#property:P1451}}
 | image_skyline = {{safesubst:#invoke:Wikidata|claim|P18}}
 | image_caption = {{safesubst:#invoke:Wikidata |getImageLegend|FETCH_WIKIDATA}}
 | image_flag = {{safesubst:#property:P41}}
 | image_seal = {{safesubst:#property:P158}}
 | image_shield = {{safesubst:#property:P94}}
 | image_map = {{safesubst:#property:P242}}
 | map_caption = {{safesubst:#if:{{safesubst:#property:P131}}|Map of {{safesubst:#invoke:string|replace|{{safesubst:#property:P131}}|%s+%([^%(]-%)$||plain=false}} with {{safesubst:#invoke:string|replace|{{safesubst:PAGENAME}}|, .*||plain=false}} highlighted}}
 | official_name = {{safesubst:#property:P1448}}
 | iso_region | iso_code | coordinates_region = {{safesubst:#if:{{safesubst:#property:P300}}|{{safesubst:#property:P300}}|{{safesubst:#if:{{safesubst:#property:P988}}| PH-{{safesubst:#switch: {{safesubst:#invoke:String|sub|{{safesubst:#property:P988}}|3|4}} | 01=ABR| 02=AGN| 03=AGS| 04=AKL| 05=ALB| 06=ANT| 07=BAS| 08=BAN| 09=BTN| 10=BTG| 11=BEN| 12=BOH| 13=BUK| 14=BUL| 15=CAG| 16=CAN| 17=CAS| 18=CAM| 19=CAP| 20=CAT| 21=CAV| 22=CEB| 23=DAV| 24=DAS| 25=DAO| 26=EAS| 27=IFU| 28=ILN| 29=ILS| 30=ILI| 31=ISA| 32=KAL| 33=LUN| 34=LAG| 35=LAN| 36=LAS| 37=LEY| 38=MAG| 40=MAD| 41=MAS| 42=MSC| 43=MSR| 44=MOU| 45=NEC| 46=NER| 47=NCO| 48=NSA| 49=NUE| 50=NUV| 51=MDC| 52=MDR| 53=PLW| 54=PAM| 55=PAN| 56=QUE| 57=QUI| 58=RIZ| 59=ROM| 60=WSA| 61=SIG| 62=SOR| 63=SCO| 64=SLE| 65=SUK| 66=SLU| 67=SUN| 68=SUR| 69=TAR| 70=TAW| 71=ZMB| 72=ZAN| 73=ZAS| 77=AUR| 78=BIL| 79=GUI| 80=SAR| 81=APA| 82=COM| 83=ZSI| 85=DIN| 86=DVO
 | #default = {{safesubst:#invoke:String|sub|{{safesubst:#property:P988}}|1|2}} }} | PH }} }}
 | country = {{safesubst:#invoke:Wikidata|getValue|P17|FETCH_WIKIDATA}}
 | region = {{safesubst:PH wikidata/regionlink|{{safesubst:PH wikidata/region|{{safesubst:#property:P131}}}}}}
 | province = {{safesubst:#invoke:Wikidata|getValue|P131|FETCH_WIKIDATA}}
 
 | district = Legislative district: {{safesubst:#invoke:Wikidata|getValue|P131|FETCH_WIKIDATA}} {{safesubst:#if:{{safesubst:#property:P768}}|#{{safesubst:Ordinal|{{safesubst:#property:P768}}}} District}}
 
 | seat = {{safesubst:#if:{{safesubst:#property:P36}}|{{safesubst:#invoke:Wikidata|getValue|P36|FETCH_WIKIDATA}}}}
 | capital_of = {{safesubst:#if:{{safesubst:#property:P1376}}|{{safesubst:#invoke:Wikidata|getValue|P1376|FETCH_WIKIDATA}}}}
 | municipalities | barangays = {{safesubst:#if:{{safesubst:#property:P150}}|{{safesubst:#invoke:sorted plain list|asc|{{safesubst:#property:P150}}}}}}
 | established_date | founded = {{safesubst:#if:{{safesubst:#property:P571}}|{{safesubst:replace|{{safesubst:#property:P571}}|,|{{safesubst:repeat|&lt;br /&gt;|{{safesubst:#if:{{{lflf|}}}|{{{lflf|}}}|1}}}}}}}}
 | leader_title | mayor_title = {{safesubst:#switch:{{safesubst:lc:{{safesubst:#property:P1313}}}}
  |=[[Category:Pages using PH wikidata incorrectly|B]]Mayor
  |mayor = [[Mayor]]
  |punong barangay = [[Punong Barangay|Brgy Captain]]
  | governor = [[Governor]]
  |#default = {{safesubst:#invoke:Wikidata|getValue|P1313|FETCH_WIKIDATA}}
  }}
 | vicemayor_title = {{safesubst:#if:{{safesubst:#property:P1313}}|Vice&amp;nbsp;{{safesubst:#property:P1313}}|[[Category:Pages using PH wikidata incorrectly|B]]Vice&amp;nbsp;mayor}}
 | council_title = {{safesubst:#switch:{{safesubst:lc:{{safesubst:#property:P31}}}}
  |barangay = [[Sangguniang Barangay|Brgy Council]]
  |municipality of the philippines = [[Sangguniang Bayan|Town Council]]
  |city of the philippines = [[Sangguniang Panlungsod|City Council]]
  |province of the philippines = [[Sangguniang Panlalawigan|Provincial Board]]
  |#default = Council
  }}
 | elevation_m      = {{safesubst:#ifexpr:{{safesubst:#invoke:String|find|{{safesubst:#property:P2044}}|foot}}||{{safesubst:#invoke:String|replace|{{safesubst:#invoke:string|replace|{{safesubst:#property:P2044}}|±[%d%.][%d%.]*||plain=false}}|metre}}}}
 | elevation_ft     = {{safesubst:#ifexpr:{{safesubst:#invoke:String|find|{{safesubst:#property:P2044}}|foot}}| {{safesubst:#invoke:String|replace|{{safesubst:#invoke:string|replace|{{safesubst:#property:P2044}}|±[%d%.][%d%.]*||plain=false}}|foot }}}}
 | population_as_of = {{safesubst:#if:{{safesubst:#invoke:Wikidata|claim|P1082|qualifier=P585}} | {{safesubst:#time:Y|{{safesubst:#invoke:Wikidata|claim|P1082|qualifier=P585}}}} | ? }} {{safesubst:lc:{{safesubst:#invoke:Wikidata|claim|P1082|qualifier=P459|FETCH_WIKIDATA}}}}
 | population_point_in_time = {{safesubst:#if:{{safesubst:#invoke:Wikidata|claim|P1082|qualifier=P585}} | {{safesubst:#time:Y|{{safesubst:#invoke:Wikidata|claim|P1082|qualifier=P585}}}} | ? }}
 | population_total = {{safesubst:#invoke:string|replace|{{safesubst:#invoke:string|replace|{{safesubst:#if:{{{2|}}}
   |{{safesubst:#invoke:Wikidata|getValueFromID|{{{2}}}|P1082|FETCH_WIKIDATA}}
   |{{safesubst:#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}
   }}|([%d]), .*|%1|plain=false}}|±0|}} {{safesubst:#ifeq:{{safesubst:#invoke:string|replace|{{safesubst:#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|([%d]), .*|%1|plain=false}}|{{safesubst:#invoke:Wikidata|getValue|P1082|FETCH_WIKIDATA}}|| {{safesubst:PH wikidata/deprecated parameter}}}}
 | electorate_title = {{safesubst:nowrap|Voter{{safesubst:font|css=font-weight:normal;|{{safesubst:thinsp|{{safesubst:PH Comelec roll|({{safesubst:#if:{{safesubst:#invoke:Wikidata|claim|P1831|qualifier=P585}} |{{safesubst:#time:Y|{{safesubst:#invoke:Wikidata|claim|P1831|qualifier=P585}}}} | ? }})}}}}}}}}
 | electorate = {{safesubst:#invoke:string|replace|{{safesubst:#if:{{{2|}}}
   |{{safesubst:#invoke:Wikidata|getValueFromID|{{{2}}}|P1831|FETCH_WIKIDATA}}
   |{{safesubst:#invoke:Wikidata|getValue|P1831|FETCH_WIKIDATA}}
   }}|±0|}}
 | electorate_point_in_time = {{safesubst:#if:{{safesubst:#invoke:Wikidata|claim|P1831|qualifier=P585}} | {{safesubst:#time:Y|{{safesubst:#invoke:Wikidata|claim|P1831|qualifier=P585}}}} | ? }}
 | language = {{safesubst:#if:{{safesubst:#property:P1412}}|{{safesubst:replace|{{safesubst:#property:P1412}}|,|&lt;br /&gt;}}}}
 | population_demonym | demonym = {{safesubst:#if:{{safesubst:#property:P1549}}|{{safesubst:replace|{{safesubst:#property:P1549}}|,|&lt;br /&gt;}}}}
 | postal_code = {{safesubst:#property:P281}}
 | located_on | located_in = {{safesubst:#if:{{safesubst:#property:P706}}|{{safesubst:#invoke:Wikidata|getValue|P706|FETCH_WIKIDATA}}}}
 | area_code = {{safesubst:#if:{{safesubst:#property:P473}}|+63&amp;thinsp;(0){{safesubst:#property:P473}}}}
 | income_class | income_class_text = {{safesubst:#if:{{safesubst:#property:P1879}}
   |{{safesubst:ifnumber|{{safesubst:#property:P1879}}
      |{{safesubst:Ordinal to word/0 to 19|{{safesubst:#property:P1879}}}} income class
      |{{safesubst:#property:P1879}}
    }}
   }}
 | electoral_district = {{safesubst:#if:{{safesubst:#property:P768}}|{{safesubst:Ordinal|{{safesubst:#property:P768}}}}}}
 
 |income_class_title = [[Municipalities_of_the_Philippines#Income_classification|Income class]]
 |income_class_ordinal = {{safesubst:#ifeq:{{safesubst:#property:P1879}}|no value|&amp;mdash;|{{safesubst:#ifeq:{{safesubst:#property:P1879}}|unknown|''Unknown''|{{safesubst:#if:{{safesubst:#property:P1879}}|{{safesubst:str left|{{safesubst:#property:P1879}}|3}}}} class}}}}
 | icao = {{safesubst:uc:{{safesubst:#property:P239}}}}
 | iata = {{safesubst:uc:{{safesubst:#property:P238}}}}
 | diocese = {{safesubst:#invoke:Wikidata|claim|P361|qualifier=P708}}
 | patron_saint = {{safesubst:ucfirst:{{safesubst:#property:P417}}}}
 
 | website = {{safesubst:#if:{{safesubst:#property:P856}}|{{safesubst:URL|1={{safesubst:#property:P856}}}}}}
 
 | commons = {{safesubst:#if:{{safesubst:#property:P373}} | {{safesubst:#property:P373}} | {{safesubst:PH wikidata/check wikidata commons link}} }}
 
 | settlement_text = {{safesubst:#switch:{{safesubst:lc:{{safesubst:#property:P31}}}}
  |barangay = barangay
  |island group = island group
  |municipality of the philippines = municipality
  |city of the philippines = {{safesubst:#switch:{{{prefix}}}| cc = component| huc = highly urbanized | icc = independent component}} city
  |province of the philippines = {{safesubst:#switch:{{{prefix}}}| is = island}} province
  |#default = {{safesubst:#invoke:Wikidata|getValue|P31|FETCH_WIKIDATA}}
  }}
 | government_type = {{safesubst:#switch:{{safesubst:lc:{{safesubst:#property:P31}}}}
  |barangay = {{safesubst:nowrap|[[Sangguniang Barangay]]}}
  |municipality of the philippines = {{safesubst:nowrap|[[Sangguniang Bayan]]}}
  |city of the philippines = {{safesubst:nowrap|[[Sangguniang Panlungsod]]}}
  |province of the philippines = [[Sangguniang Panlalawigan]]
  }}
 | osm = {{safesubst:#property:P402}}
 | climate_type = {{safesubst:#property:P2564}}
 | operator = {{safesubst:#invoke:Wikidata|getValue|P137|FETCH_WIKIDATA}}
 | area = {{safesubst:#invoke:String|replace|{{safesubst:#invoke:String|replace|{{safesubst:#if:{{{2|}}}
   |{{safesubst:#invoke:Wikidata|getValueFromID|{{{2}}}|P2046|FETCH_WIKIDATA}}
   |{{safesubst:#invoke:Wikidata|getValue|P2046|FETCH_WIKIDATA}}
   }}| %D+||plain=false}}|±[%d%.][%d%.]*||plain=false}}
 | #default = {{safesubst:PH wikidata/deprecated parameter}} &lt;span class=&quot;error&quot;&gt;[[Template:PH wikidata]] called with unsupported input &quot;{{{1}}}&quot;&lt;/span&gt;
 }}&lt;/includeonly&gt;&lt;noinclude&gt;