Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Evad37
(pass coordinates through to {{Infobox mapframe}})
>Uzume
(Module:WikidataIB remove usage of deprecated "getPreferredValue")
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 |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}}
| 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}}}}}}}


Line 70: Line 70:


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


| label9 = Foundation
| label9 = Foundation
Line 79: Line 79:


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


| label12 = Markings / pattern
| label12 = Markings / pattern
Line 86: Line 86:


| label13 = Tower height
| label13 = Tower height
|  data13 = {{#invoke:WikidataIB |getPreferredValue |P2048|name=height|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{height|}}}}}
|  data13 = {{#invoke:WikidataIB |getValue|rank=best|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|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{focalheight|}}}}}
|  data14 = {{#invoke:WikidataIB |getValue|rank=best|P2923|name=focalheight|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{focalheight|}}}}}


| label15 = Original lens
| label15 = Original lens
Line 104: Line 104:


| label19 = Range
| label19 = Range
|  data19 = {{#invoke:WikidataIB |getPreferredValue |P2929|name=range|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{range|}}}}}
|  data19 = {{#invoke:WikidataIB |getValue|rank=best|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|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{characteristic|}}}}}
|  data20 = {{#invoke:WikidataIB |getValue|rank=best|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 114: Line 114:


| label22 = [[Racon]]
| label22 = [[Racon]]
|  data22 = {{#invoke:WikidataIB |getPreferredValue |P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{racon|}}}}}
|  data22 = {{#invoke:WikidataIB |getValue|rank=best|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 135: Line 135:


| label29 = Managing agent
| label29 = Managing agent
|  data29 = {{#invoke:WikidataIB |getPreferredValue |P137|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{managingagent|}}}}}
|  data29 = {{#invoke:WikidataIB |getValue|rank=best|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|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|{{{heritage|}}}}}
|  data30 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|{{{heritage|}}}}}


| header31 = {{{module|}}}
| header31 = {{{module|}}}
Line 144: Line 144:


}}{{#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 | 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  
}}{{main other|{{#invoke:lighthouse tracking|tracking|heritage={{#invoke:WikidataIB|getPreferredValue |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|}}}|
|}}||[[Category:Pages using infobox lighthouse with spurious newlines]]}}}}<noinclude>
|}}||[[Category:Pages using infobox lighthouse with spurious newlines]]}}}}<noinclude>
{{documentation}}<!-- place category on the /doc sub-page, not here -->
{{documentation}}<!-- place category on the /doc sub-page, not here -->
</noinclude>
</noinclude>

Revision as of 11:34, 13 September 2020

Infobox lighthouse
CoordinatesTemplate:WikidataCoord