Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Jura1
m (test)
>Jura1
Line 2: Line 2:
| bodyclass = vcard
| bodyclass = vcard
| titleclass = fn
| titleclass = fn
| title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_name|}}}|size={{{image_width|}}}|sizedefault=frameless|alt={{{image_alt|{{{alt|}}}}}} }}
| 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}}
| caption = {{{caption|}}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}


| image2 = {{#if:{{{pushpin_map|}}}|
| image2 = {{#if:{{{pushpin_map|}}}|
Line 35: Line 35:
| label1 = Location
| label1 = Location
| class1 = label
| class1 = label
|  data1 = {{{location|}}}
|  data1 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}}}


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


| label13 = Height
| label13 = Height
|  data13 = {{#invoke:WikidataIB |getPreferredValue |P2048|name=height|fetchwikidata=ALL|item={{{item|}}}|{{{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}} }}


| label14 = Focal height
| label14 = Focal height

Revision as of 16:51, 20 July 2017

Infobox lighthouse