Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Jura1
>Jura1
(item call)
Line 4: Line 4:
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}


| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image |qid={{{item|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}


Line 35: Line 35:
| label1 = Location
| label1 = Location
| class1 = label
| class1 = label
|  data1 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}}}
|  data1 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|qid={{{item|}}} }}


| label2 = [[British national grid reference system|OS grid]]
| label2 = [[British national grid reference system|OS grid]]
Line 41: Line 41:


| label3 = [[Geographic coordinate system|Coordinates]]
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_footnotes|}}}}}
|  data3 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_footnotes|}}}}}{{ifempty|{{{coordinates|}}}|{{#if:{{{item|}}}|{{WikidataCoord|{{{item}}}|display=}}|{{WikidataCoord|display=inline,title}}}} }}
 
| label4 = Designation
| label4 = Designation
|  data4 = {{{designation|}}}
|  data4 = {{{designation|}}}
Line 74: Line 73:


| label13 = Height
| label13 = Height
|  data13 = {{{height|{{#if:{{#property:P2048}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2048|FETCH_WIKIDATA}}|feet|{{convert|input=P2048|m|abbr=on}}|{{convert|input=P2048|ft|abbr=on}} }} }} }}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2048}} }}
|  data13 = {{#invoke:WikidataIB |getPreferredValue |P2048|name=height|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{height|}}}}}


| label14 = Focal height
| label14 = Focal height
|  data14 = {{#invoke:WikidataIB |getPreferredValue |P2923|name=focalheight|fetchwikidata=ALL|item={{{item|}}}|{{{elevation|}}}{{{focalheight|}}}}}
|  data14 = {{#invoke:WikidataIB |getPreferredValue |P2923|name=focalheight|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{elevation|}}}{{{focalheight|}}}}}


| label15 = Original lens
| label15 = Original lens
Line 92: Line 91:


| label19 = Range
| label19 = Range
|  data19 = {{#invoke:WikidataIB |getPreferredValue |P2929|name=range|fetchwikidata=ALL|item={{{item|}}}|{{{range|}}}}}
|  data19 = {{#invoke:WikidataIB |getPreferredValue |P2929|name=range|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{range|}}}}}


| label20 = [[Light characteristic|Characteristic]]
| label20 = [[Light characteristic|Characteristic]]
| class20 = note
| class20 = note
|  data20 = {{#invoke:WikidataIB |getPreferredValue |P1030|name=characteristic|fetchwikidata=ALL|item={{{item|}}}|{{{characteristic|}}}}}
|  data20 = {{#invoke:WikidataIB |getPreferredValue |P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{characteristic|}}}}}


| label21 = [[Foghorn#Marine fog signals|Fog signal]]
| label21 = [[Foghorn#Marine fog signals|Fog signal]]
Line 102: Line 101:


| label22 = [[Racon]]
| label22 = [[Racon]]
|  data22 = {{#invoke:WikidataIB |getPreferredValue |P3994|name=racon|fetchwikidata=ALL|item={{{item|}}}|{{{racon|}}}}}
|  data22 = {{#invoke:WikidataIB |getPreferredValue |P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{racon|}}}}}


| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
Line 123: Line 122:


| label29 = Managing agent
| label29 = Managing agent
|  data29 = {{#invoke:WikidataIB |getPreferredValue |P137|name=managingagent|fetchwikidata=ALL|item={{{item|}}}|{{{managingagent|}}}}}
|  data29 = {{#invoke:WikidataIB |getPreferredValue |P137|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{managingagent|}}}}}


| label30 = Heritage
| label30 = Heritage
|  data30 = {{#invoke:WikidataIB |getPreferredValue |P1435|name=heritage|fetchwikidata=ALL|item={{{item|}}}|{{{heritage|}}}}}
|  data30 = {{#invoke:WikidataIB |getPreferredValue |P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{heritage|}}}}}


| header31 = {{{module|}}}
| header31 = {{{module|}}}

Revision as of 17:38, 20 July 2017

Infobox lighthouse
CoordinatesTemplate:Ifempty