Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Uzume
(Module:WikidataIB remove usage of deprecated "getPreferredValue")
>MSGJ
(remove pushpin map in favour of mapframe map)
Line 6: Line 6:
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|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 |getValue|rank=best|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}}}}}}}
| image2 = {{#if:{{{pushpin_map|}}}|
{{Location map|{{{pushpin_map|}}}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|none}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
|alt = {{{pushpin_map_alt|}}}
|relief = {{{pushpin_relief|{{{relief|}}}}}}
|coordinates = {{{coordinates|}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
|lighthouse = Lighthouse icon centered.svg
|green = Green pog.svg
|red|#default = Red pog.svg
}}
|marksize = {{#switch:{{lc:{{{pushpin}}}}}
|lighthouse = 28
|green
|red|#default = 8
}}
|float = center
|caption = {{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{{map_caption|}}}}}
|border = infobox
|outside = {{{pushpin_outside|}}}<!-- pin is outside the map -->
|position = {{#if:{{{pushpin_label_position|}}}| {{{pushpin_label_position|}}}| right }}
|width = {{{pushpin_mapsize|}}}
|default_width = 240
}}}}


| image3    = {{yesno|{{{mapframe|yes}}}|no=|yes={{Infobox mapframe
| image3    = {{yesno|{{{mapframe|yes}}}|no=|yes={{Infobox mapframe
Line 143: Line 118:
| data100 = {{#if:{{{fetchwikidata|ALL}}}|{{main other |{{#ifeq:{{#invoke:String|match|s={{#property:P31}}test|pattern=lighthouse}}|lighthouse|{{EditOnWikidata}}|[[Category:General articles using infobox Lighthouse]] {{#ifeq:{{{item|}}}||[[Category:Pages using infobox Lighthouse needing Wikidata item]]| {{EditOnWikidata|qid={{{item|}}}}} }}}}}}}}
| data100 = {{#if:{{{fetchwikidata|ALL}}}|{{main other |{{#ifeq:{{#invoke:String|match|s={{#property:P31}}test|pattern=lighthouse}}|lighthouse|{{EditOnWikidata}}|[[Category:General articles using infobox Lighthouse]] {{#ifeq:{{{item|}}}||[[Category:Pages using infobox Lighthouse needing Wikidata item]]| {{EditOnWikidata|qid={{{item|}}}}} }}}}}}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox lighthouse with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox lighthouse]] with unknown parameter "_VALUE_"|ignoreblank=y| admiralty | alt | ARLHS | automated | canada | caption | characteristic | construction | coordinates | coordinates_footnotes | country | countrylink | countrynumber | currentlens | designation | fetchwikidata | focalheight | fogsignal | foundation | grid_ref_UK | height | heritage | image | image size | image_name | image_size | image_upright | image_width | imagesize | intensity | item | lens | lightsource | location | managingagent | map_caption | mapframe | mapframe-caption | mapframe-height | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-width | mapframe-zoom | marking | module | name | NGA | onlysourced | pushpin | pushpin_label_position | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | pushpin_outside | pushpin_relief | racon | range | refs | relief | shape | suppressfields | USCG | yearbuilt | yeardeactivated | yearlit  
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox lighthouse with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox lighthouse]] with unknown parameter "_VALUE_"|ignoreblank=y| admiralty | alt | ARLHS | automated | canada | caption | characteristic | construction | coordinates | coordinates_footnotes | country | countrylink | countrynumber | currentlens | designation | fetchwikidata | focalheight | fogsignal | foundation | grid_ref_UK | height | heritage | image | image size | image_name | image_size | image_upright | image_width | imagesize | intensity | item | lens | lightsource | location | managingagent | map_caption | mapframe | mapframe-caption | mapframe-height | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-width | mapframe-zoom | marking | module | name | NGA | onlysourced | racon | range | refs | relief | shape | suppressfields | USCG | yearbuilt | yeardeactivated | yearlit  
}}{{main other|{{#invoke:lighthouse tracking|tracking|heritage={{#invoke:WikidataIB|getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|noicon=yes|{{{heritage|}}}}}
}}{{main other|{{#invoke:lighthouse tracking|tracking|heritage={{#invoke:WikidataIB|getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|noicon=yes|{{{heritage|}}}}}
}}{{#ifeq:{{{admiralty|}}}{{{canada|}}}{{{NGA|}}}{{{ARLHS|}}}{{{USCG|}}}{{{countrynumber|}}}|{{#invoke:string|replace|{{{admiralty|}}}{{{canada|}}}{{{NGA|}}}{{{ARLHS|}}}{{{USCG|}}}{{{countrynumber|}}}|
}}{{#ifeq:{{{admiralty|}}}{{{canada|}}}{{{NGA|}}}{{{ARLHS|}}}{{{USCG|}}}{{{countrynumber|}}}|{{#invoke:string|replace|{{{admiralty|}}}{{{canada|}}}{{{NGA|}}}{{{ARLHS|}}}{{{USCG|}}}{{{countrynumber|}}}|

Revision as of 13:31, 2 March 2021

Infobox lighthouse
CoordinatesTemplate:WikidataCoord