Template:Infobox World Heritage Site: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mike Peel
(another tweak)
m (239 revisions imported)
 
(48 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Infobox
#redirect[[Template:Infobox UNESCO World Heritage Site]]
| child    = {{{child|}}}
| bodyclass = vcard
| headerstyle = background:#ddd;
| titleclass = category
| title = {{#if:{{{child|}}}||<includeonly>'''{{{WHS|{{{Name|{{PAGENAMEBASE}}}}}}}}'''</includeonly>{{#if:{{#property:P1705}}|<br />{{#property:P1705}}}}}}
 
| image = {{#if:{{{child|}}}||{{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{Image|{{{image|FETCH_WIKIDATA}}} }}} }}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}}}
| caption = {{#if:{{{child|}}}||{{#if:{{{caption|{{{Caption|{{{imagecaption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}}}}} |<div style="padding-top:0.2em;line-height:1.4em;">{{{caption|{{{Caption|{{{imagecaption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}}}}}</div>}}}}
 
| header1 = [[World Heritage Site|UNESCO World Heritage Site]]
 
| label2 = [[Table of World Heritage Sites by country|Location]]
| data2 = {{#if:{{{child|}}}||{{{Location|{{{location|{{#invoke:WikidataIB|getValue|P17|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{location|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}} }}}}}}}}}}
 
|  label3 = Area
|  data3 = {{#if:{{{child|}}}||{{{area|{{#if:{{#property:P2046}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2046|FETCH_WIKIDATA}}|square inch|{{convert|input=P2046|sqm|abbr=on}}|{{convert|input=P2046|sqft|abbr=on}} }} }} }}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2046}} }} }}
 
|  label4 = Includes
|  data4 = {{#invoke:WikidataIB|getValue|P527|name=includes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|sorted=yes|sep=<br />|{{{includes|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P527}} }}
 
| label5 = [[World Heritage Site#Selection criteria|Criteria]]
| data5 = {{#invoke:WikidataIB|getValue|P2614|name=Criteria|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{Criteria|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2614}} }}
 
|label6 = Reference
|data6 = {{#if:{{#invoke:Wikidata|getValue|P757|{{{ID|FETCH_WIKIDATA}}}}} |{{#if:{{{Link|}}} |[{{{Link}}} {{#invoke:Wikidata|getValue|P757|{{{ID|FETCH_WIKIDATA}}}}}] |[http://whc.unesco.org/en/list/{{#invoke:Wikidata|getValue|P757|{{{ID|FETCH_WIKIDATA}}}}} {{#invoke:Wikidata|getValue|P757|{{{ID|FETCH_WIKIDATA}}}}}] }} }}
 
|label7 = [[Geographic coordinate system|Coordinates]]
|data7 = {{#if:{{{nocoord|}}}||{{#if:{{{child|}}}||{{#if:{{{coords|}}} | {{{coords}}} |  {{#if:{{{Coordinates|}}} | {{{Coordinates}}} |  {{#if:{{{coordinates|}}} | {{{coordinates}}} | {{#if:{{#Property:P625}} | {{Coord|nosave=1|display=inline|format=dms}} }} }} }} }}}}}}
 
|label9 = Inscription
|data9 = <includeonly>{{#if:{{{Year|#property:P1435}}} |{{{Year|{{#invoke:WikidataIB |getQualifierValue |P1435 |pval=Q9259 |qual=P580 |name=inscription |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|no}}}|noicon=yes}}}}} <small>(<!--
          -->{{{Session|{{#switch: {{{Year|{{#invoke:WikidataIB |getQualifierValue |P1435 |pval=Q9259 |qual=P580 |name=inscription |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|no}}}|noicon=yes}}}}}
                  |1977=1st  |1978=2nd  |1979=3rd  |1980=4th  |1981=5th
                  |1982=6th  |1983=7th  |1984=8th  |1985=9th  |1986=10th
                  |1987=11th |1988=12th |1989=13th |1990=14th |1991=15th
                  |1992=16th |1993=17th |1994=18th |1995=19th |1996=20th
                  |1997=21st |1998=22nd |1999=23rd |2000=24th |2001=25th
                  |2002=26th |2003=27th |2004=28th |2005=29th |2006=30th
                  |2007=31st |2008=32nd |2009=33rd |2010=34th |2011=35th
                  |2012=36th |2013=37th |2014=38th |2015=39th |2016=40th
                  |#default = Unknown
                }}}}}<!--
          --> [[World Heritage Committee|Session]])</small><!--
      -->}}</includeonly>
 
|label10 = Extensions
|data10 = {{{Extension|{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q29778318 |qual=P585 |name=extension |fetchwikidata={{{fetchwikidata|ALL}}}}} }}}
 
|label11 = [[List of World Heritage in Danger|Endangered]]
|data11 = {{{Danger|{{#if:{{#Property:P793}}|{{If first display both|{{Start date|{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q222384 |qual=P580 |name=danger |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|no}}}}}|–{{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q222384 |qual=P582 |name=danger |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|no}}} }} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P793|Q222384}}}} }} }} }}}
 
| label12 = Website
|  data12  = {{#if:{{{child|}}}||{{{website|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}} }}}}
 
| data13 = {{{embedded|}}}
 
|data14 = {{#if:{{{child|}}}||{{Wikidata location map|locmapin={{{locmapin|}}}|map_caption={{{map_caption|}}}|name={{{name|}}}|trackingcat={{main other|[[Category:Articles using Infobox World Heritage Site with missing Location map template]]}}|nomap={{{nomap|}}}}}}}
 
| below    = {{EditOnWikidata}}
 
}}<includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox World Heritage Site with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox World Heritage Site]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | Caption | caption | child | Coordinates | coordinates | Criteria | Danger | embedded | Extension | ID | image | Image | image_size | image_upright | imagecaption | Link | location | Location | locmapin | map_caption | map_width | Name | name | nocoord | nomap | Region | relief | Session | Type | WHS | Year | State Party
}}{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|child|nocoord|nomap|locmapin}}|[[Category:Articles using Infobox World Heritage Site using locally defined parameters]]|{{#if:{{{child|}}}||[[Category:Articles with infoboxes completely from Wikidata]]}}}}}}</includeonly><noinclude>{{documentation}}<!--Please add any categories to the /doc page --></noinclude>

Latest revision as of 04:40, 3 September 2020