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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(not needed)
imported>Frietjes
m
 
(4 intermediate revisions by 3 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|}}}
            | lat_deg = {{{lat_d|}}}
+
            | coordinates    = {{{coordinates|{{{coords|}}}}}} }}
            | lat_min = {{{lat_m|}}}
+
          | {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{{map_size|{{{mapsize|{{{map_width|}}}}}}}}}|maxsize=284px|alt={{{map_alt|}}}}}
            | lat_sec = {{{lat_s|}}}
+
          }}
            | lat_dir = {{{lat_NS|}}}
+
| caption2 = {{#if:{{{map|}}} || {{{map_caption|}}} }}
            | lon_deg = {{{long_d|}}}
 
            | lon_min = {{{long_m|}}}
 
            | lon_sec = {{{long_s|}}}
 
            | lon_dir = {{{long_EW|}}}
 
            }} }}
 
  
 
|rowclass1 = locality
 
|rowclass1 = locality
Line 47: 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|}}}}} }}
            | {{Infobox coord
 
              | lat_d  = {{{lat_d|}}}
 
              | lat_m  = {{{lat_m|}}}
 
              | lat_s  = {{{lat_s|}}}
 
              | lat_NS  = {{{lat_NS|}}}
 
              | long_d  = {{{long_d|}}}
 
              | long_m  = {{{long_m|}}}
 
              | long_s  = {{{long_s|}}}
 
              | long_EW = {{{long_EW|}}}
 
              | type    = {{#if:{{{type|}}}|{{{type|}}}|landmark }}
 
              | region  = {{{region|}}}
 
              | scale  = {{{scale|}}}
 
              | source  = {{{source|}}}
 
              | display = {{{display|}}}
 
              | format  = {{{format|}}}
 
              | name    = <!-- leave undefined -->
 
              }}{{#if:{{{coords_ref|}}}|{{{coords_ref|}}} }}
 
            | {{#if:{{{coords|}}}|{{{coords|}}}{{#if:{{{coords_ref|}}}|{{{coords_ref|}}} }}  | {{#invoke:WikidataIB|getValue|P625|name=coords|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}}} }} }}
 
  
 
|label4    = Area
 
|label4    = Area
Line 83: 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 94: 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 104: Line 81:
 
             | {{#if:{{{url|}}} | {{{url|}}} }} }}
 
             | {{#if:{{{url|}}} | {{{url|}}} }} }}
  
|header11  = {{ifempty|{{{embedded1|}}}|{{{embedded|}}} }}
+
|header11  = {{if empty|{{{embedded1|}}}|{{{embedded|}}} }}
  
 
|header12  = {{{embedded2|}}}
 
|header12  = {{{embedded2|}}}
Line 110: 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".