Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>MSGJ
(remove pushpin map in favour of mapframe map)
>MSGJ
(shorten some labels, use wikidata for osgrid, first lit, intensity, admiralty, nga, and add conversion of some units)
Line 25: Line 25:


| label2 = [[British national grid reference system|OS grid]]
| label2 = [[British national grid reference system|OS grid]]
|  data2 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK}}}}}}}
|  data2 = {{gbmappingsmall|{{#invoke:WikidataIB|getValue|P613|qid={{{item|}}}|noicon=true|name=os_grid_reference|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{grid_ref_UK|}}}}}}}


| label3 = [[Geographic coordinate system|Coordinates]]
| label3 = [[Geographic coordinate system|Coordinates]]
Line 33: Line 33:
|  data4 = {{{designation|}}}
|  data4 = {{{designation|}}}


| label5 = Year first constructed
| label5 = Constructed
|  data5 = {{{yearbuilt|}}}
|  data5 = {{{yearbuilt|}}}


| label6 = Year first lit
| label6 = First lit
| class6 = note
| class6 = note
|  data6 = {{{yearlit|}}}
|  data6 = {{#invoke:WikidataIB |getValue|rank=best|P729|name=first lit|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{yearlit|}}}}}


| label7 = Automated
| label7 = Automated
Line 61: Line 61:


| label13 = Tower height
| label13 = Tower height
|  data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{height|}}}}}
|  data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{height|}}}}}


| label14 = Focal height
| label14 = Focal height
|  data14 = {{#invoke:WikidataIB |getValue|rank=best|P2923|name=focalheight|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{focalheight|}}}}}
|  data14 = {{#invoke:WikidataIB |getValue|rank=best|P2923|name=focalheight|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{focalheight|}}}}}


| label15 = Original lens
| label15 = Original lens
Line 76: Line 76:


| label18 = Intensity
| label18 = Intensity
|  data18 = {{{intensity|}}}
|  data18 = {{#invoke:WikidataIB |getValue|rank=best|P3041|name=intensity|convert=|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{intensity|}}}}}


| label19 = Range
| label19 = Range
|  data19 = {{#invoke:WikidataIB |getValue|rank=best|P2929|name=range|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{range|}}}}}
|  data19 = {{#invoke:WikidataIB |getValue|rank=best|P2929|name=range|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{range|}}}}}


| label20 = [[Light characteristic|Characteristic]]
| label20 = [[Light characteristic|Characteristic]]
Line 92: Line 92:


| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
|  data23 = {{{admiralty|}}}
|  data23 = {{#invoke:WikidataIB|getValue|rank=best|P3562|name=admiralty|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{admiralty|}}}}}


| label24 = [[Canadian Hydrographic Service|CHS]] number
| label24 = [[Canadian Hydrographic Service|CHS]] number
Line 98: Line 98:


| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
|  data25 = {{{NGA|}}}
|  data25 = {{Formatter link
|url={{wdib|P1630|qid=P3563|fwd=ALL|osd=n|noicon=y}}
|code={{#invoke:WikidataIB |getValue|rank=best|noicon=yes|P3563|name=NGA|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{NGA|}}}}}
}}


| label26 = [[Amateur Radio Lighthouse Society|ARLHS]] number
| label26 = [[Amateur Radio Lighthouse Society|ARLHS]] number
Line 109: Line 112:
|  data28 = {{{countrynumber|}}}
|  data28 = {{{countrynumber|}}}


| label29 = Managing agent
| label29 = Operator
|  data29 = {{#invoke:WikidataIB |getValue|rank=best|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|}}}}}



Revision as of 07:34, 4 March 2021

Infobox lighthouse
CoordinatesTemplate:WikidataCoord
NGA numberTemplate:Formatter link