Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Jura1
m (coor)
>Jura1
(fix and expand)
Line 2: Line 2:
| bodyclass = vcard
| bodyclass = vcard
| titleclass = fn
| titleclass = fn
| 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|id={{{item|}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{item|}}}}}|{{PAGENAMEBASE}}}}}}}


| 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}}
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image_name|qid={{{item|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image_name|}}}}}|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 42: Line 42:
| label3 = [[Geographic coordinate system|Coordinates]]
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_footnotes|}}}|{{#if:{{{item|}}}|{{WikidataCoord|{{{item}}}|display=}}|{{WikidataCoord|display=inline,title}}}} }}
|  data3 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_footnotes|}}}|{{#if:{{{item|}}}|{{WikidataCoord|{{{item}}}|display=}}|{{WikidataCoord|display=inline,title}}}} }}
| label4 = Designation
| label4 = Designation
|  data4 = {{{designation|}}}
|  data4 = {{{designation|}}}
Line 54: Line 55:
| label7 = Automated
| label7 = Automated
| class7 = note
| class7 = note
|  data7 = {{{automated|}}}
|  data7 = {{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q24410992 |qual=P575 |name=automated |suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{automated|}}} }}


| label8 = Deactivated
| label8 = Deactivated
|  data8 = {{{yeardeactivated|}}}
|  data8 = {{#invoke:WikidataIB |getPreferredValue |P730|name=yeardeactivated|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{yeardeactivated|}}} }}


| label9 = Foundation
| label9 = Foundation
Line 66: Line 67:


| label11 = Tower shape
| label11 = Tower shape
|  data11 = {{{shape|}}}
|  data11 = {{#invoke:WikidataIB |getPreferredValue |P1419|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{shape|}}} }}


| label12 = Markings / pattern
| label12 = Markings / pattern

Revision as of 22:02, 20 July 2017

Infobox lighthouse
CoordinatesTemplate:WikidataCoord