Difference between revisions of "Template:Infobox protected area/Wikidata"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.)
imported>Frietjes
m
 
(2 intermediate revisions by 2 users not shown)
Line 19: Line 19:
 
|caption1  = {{{photo_caption|}}}
 
|caption1  = {{{photo_caption|}}}
  
|image2    = {{#if:{{{map|}}} | {{Infobox map
+
|image2    = {{#if:{{{map|}}} | {{location map|{{{map|}}}
            | map            = {{{map|}}}
+
             | border = infobox | float = center
             | map_width      = {{#if:{{{map_width|}}}|{{least|{{{map_width|}}}|284}}}}
+
            | width          = {{{map_size|{{{mapsize|{{{map_width|}}}}}}}}}
 
             | default_width  = 284
 
             | default_width  = 284
 
             | relief        = {{{relief|}}}
 
             | relief        = {{{relief|}}}
             | label          = {{ifempty|{{{label|}}}|{{{name|}}} }}
+
             | label          = {{if empty|{{{label|}}}|{{{name|}}} }}
             | label_position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none -->   
+
             | position      = {{if empty|{{{label_position|}}}|none}} <!-- change default to none -->   
             | map_caption    = {{{map_caption|}}}
+
             | caption        = {{{map_caption|}}}
             | map_alt        = {{ifempty|{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
+
             | alt            = {{if empty|{{{map_alt|}}}|Map showing the location of {{{name|}}} }}
             | mark          = {{ifempty|{{{mark|}}}|{{#ifeq:{{lc:{{{map|}}}}}|us locator blank.svg|Green pog.svg|Red pog.svg }}}}
+
             | mark          = {{{mark|}}}
            | mark_width    = {{ifempty|{{{marker_size|}}}|8}}
+
            | marksize      = {{{marker_size|}}}
            | coordinates = {{{coordinates|}}}
+
            | coordinates    = {{{coordinates|{{{coords|}}}}}} }}
            }} }}
+
          | {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{{map_size|{{{mapsize|{{{map_width|}}}}}}}}}|maxsize=284px|alt={{{map_alt|}}}}}
 +
          }}
 +
| caption2 = {{#if:{{{map|}}} || {{{map_caption|}}} }}
  
 
|rowclass1 = locality
 
|rowclass1 = locality
Line 40: Line 42:
 
|label2    = {{#if:{{{nearest_city|}}}|Nearest&nbsp;city
 
|label2    = {{#if:{{{nearest_city|}}}|Nearest&nbsp;city
 
             | {{#if:{{{nearest_town|}}}|Nearest&nbsp;town }}}}
 
             | {{#if:{{{nearest_town|}}}|Nearest&nbsp;town }}}}
|data2    = {{ifempty|{{{nearest_city|}}}|{{{nearest_town|}}}}}
+
|data2    = {{if empty|{{{nearest_city|}}}|{{{nearest_town|}}}}}
  
 
|label3    = Coordinates
 
|label3    = Coordinates
|data3    = {{#if:{{{lat_d|}}}{{{long_d|}}}
+
|data3    = {{#if:{{{coordinates|}}}|{{{coordinates|}}}{{#if:{{{coords_ref|}}}|{{{coords_ref|}}} }}  | {{#invoke:WikidataIB|getValue|P625|name=coords|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}}} }}
            |[[Category:Pages using deprecated coordinates format|protected area wikidata]]
 
            | {{#if:{{{coordinates|}}}|{{{coordinates|}}}{{#if:{{{coords_ref|}}}|{{{coords_ref|}}} }}  | {{#invoke:WikidataIB|getValue|P625|name=coords|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}}} }} }}
 
  
 
|label4    = Area
 
|label4    = Area
Line 60: Line 60:
 
             | {{#if:{{{established|}}}|Established
 
             | {{#if:{{{established|}}}|Established
 
             | {{#if:{{{designated|}}}|Designated }}}}}}}}
 
             | {{#if:{{{designated|}}}|Designated }}}}}}}}
|data6    = {{ifempty|{{{authorized|}}}|{{{created|}}}|{{{established|}}}|{{{designated|}}} }}
+
|data6    = {{if empty|{{{authorized|}}}|{{{created|}}}|{{{established|}}}|{{{designated|}}} }}
  
 
|label7    = Visitors
 
|label7    = Visitors
Line 71: Line 71:
 
             | {{#if:{{{operator|}}}|Operator
 
             | {{#if:{{{operator|}}}|Operator
 
             | {{#if:{{{owner|}}}|Owner }}}}}}}}
 
             | {{#if:{{{owner|}}}|Owner }}}}}}}}
|data8    = {{ifempty|{{{governing_body|}}}|{{{administrator|}}}|{{{operator|}}}|{{{owner|}}} }}
+
|data8    = {{if empty|{{{governing_body|}}}|{{{administrator|}}}|{{{operator|}}}|{{{owner|}}} }}
  
 
|label9    = World&nbsp;Heritage Site
 
|label9    = World&nbsp;Heritage Site
Line 81: Line 81:
 
             | {{#if:{{{url|}}} | {{{url|}}} }} }}
 
             | {{#if:{{{url|}}} | {{{url|}}} }} }}
  
|header11  = {{ifempty|{{{embedded1|}}}|{{{embedded|}}} }}
+
|header11  = {{if empty|{{{embedded1|}}}|{{{embedded|}}} }}
  
 
|header12  = {{{embedded2|}}}
 
|header12  = {{{embedded2|}}}
Line 87: Line 87:
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
+
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:17, 12 October 2019

Script error: No such module "If empty".
Script error: No such module "If empty".
Script error: No such module "If empty".
Script error: No such module "If empty".