Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Francis Schonken
(For the same reasons as explained at Template talk:Infobox observatory#Locations and cites)
>KylieTastic
(use getPreferredValue for image to deal with multiple images)
Line 4: Line 4:
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{item|}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{item|}}}}}|{{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_name|qid={{{item|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image_name|}}}}}|size={{{image_width|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getPreferredValue  |P18 |name=image_name|qid={{{item|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image_name|}}}}}|size={{{image_width|{{{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}}}}}}}



Revision as of 15:26, 1 October 2017

Infobox lighthouse
CoordinatesTemplate:WikidataCoord