Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>MSGJ
(explanatory tooltip for light characteristic, improved logic for tracking categories)
>MSGJ
(remove unused field "designation", remove additional capitalisation, add new field for "power source", add some date qualifers)
Line 33: Line 33:
| label3 = [[Geographic coordinate system|Coordinates]]
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|{{{item|}}}}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|{{{item|}}}}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}
| label4 = Designation
|  data4 = {{{designation|}}}


| label5 = Constructed
| label5 = Constructed
Line 62: Line 59:


| label11 = Construction
| label11 = Construction
|  data11 = {{#invoke:String2 | ucfirst | {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{construction|}}}}}}}
|  data11 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{construction|}}}}}


| label12 = Tower shape
| label12 = Tower shape
|  data12 = {{#invoke:String2 | ucfirst | {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{shape|}}}}}}}
|  data12 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{shape|}}}}}


| label13 = Markings
| label13 = Markings
Line 71: Line 68:
|  data13 = {{#if:{{{marking|}}}
|  data13 = {{#if:{{{marking|}}}
  |{{{marking|}}}
  |{{{marking|}}}
  |{{#invoke:String2 | ucfirst |{{comma separated entries
  |{{comma separated entries
   |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
   |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
   |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
   |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
  }}
  }}
}}}}
}}


| label14 = Tower height
| label14 = Tower height
Line 86: Line 83:
|  data16 = {{{lens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(original),<br>}}{{{currentlens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(current)}}
|  data16 = {{{lens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(original),<br>}}{{{currentlens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(current)}}


| label17 = Light source
| label17 = Power source
data17 = {{{lightsource|}}}
|  data17 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
 
| label18 = Light source
data18 = {{{lightsource|}}}


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


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


| label20 = [[Light characteristic|Characteristic]]
| label21 = [[Light characteristic|Characteristic]]
| class20 = note
| class21 = note
data20 = {{#if:{{{characteristic|}}}
data21 = {{#if:{{{characteristic|}}}
  |{{{characteristic}}}
  |{{{characteristic}}}
  |{{#if:{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}}
  |{{#if:{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}}
   |{{#if:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}}
   |{{#if:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}}
   |[[File:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}}|20px]]&#32;
   |[[File:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}}|20px]]&#32;
   }}{{Tooltip|{{#invoke:WikidataIB|getValue|rank=best|P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}}}}
   }}{{Tooltip|{{#invoke:WikidataIB|getValue|rank=best|P1030|qual=DATES|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}}}}
   |{{#invoke:WikidataIB |getValue|rank=best|P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
   |{{#invoke:WikidataIB |getValue|rank=best|P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}
  }}
  }}
}}
}}


| label21 = [[Foghorn#Marine fog signals|Fog signal]]
| label22 = [[Foghorn#Marine fog signals|Fog signal]]
data21 = {{{fogsignal|}}}
data22 = {{{fogsignal|}}}


| label22 = [[Racon]]
| label23 = [[Racon]]
data22 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{racon|}}}}}
data23 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{racon|}}}}}


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


| label24 = [[Canadian Hydrographic Service|CHS]] number
| label25 = [[Canadian Hydrographic Service|CHS]] number
data24 = {{{canada|}}}
data25 = {{{canada|}}}


| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
| label26 = [[National Geospatial-Intelligence Agency|NGA]] number
data25 = {{Infobox lighthouse/NGA|NGA={{#invoke:WikidataIB|getValue|rank=best|P3563|name=NGA|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|noicon=true|{{{NGA|}}}}}}}
data26 = {{Infobox lighthouse/NGA|NGA={{#invoke:WikidataIB|getValue|rank=best|P3563|name=NGA|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|noicon=true|{{{NGA|}}}}}}}


| label26 = [[Amateur Radio Lighthouse Society|ARLHS]] number
| label27 = [[Amateur Radio Lighthouse Society|ARLHS]] number
data26 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{ARLHS|}}}}}
data27 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{ARLHS|}}}}}


| label27 = [[United States Coast Guard|USCG]] number
| label28 = [[United States Coast Guard|USCG]] number
data27 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{USCG|}}}}}
data28 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{USCG|}}}}}


| label28 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
| label29 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
data28 = {{{countrynumber|}}}
data29 = {{{countrynumber|}}}


| label29 = Operator
| label30 = Operator
data29 = {{#invoke:WikidataIB |getValue|rank=best|P137|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{managingagent|}}}}}
data30 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{managingagent|}}}}}


| label30 = Heritage
| label31 = Heritage
data30 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|linked=no|{{{heritage|}}}}}
data31 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|linked=no|{{{heritage|}}}}}


| data31 = {{{module|}}}
| data32 = {{{module|}}}
| data100 = {{#if:{{{fetchwikidata|ALL}}}
| data100 = {{#if:{{{fetchwikidata|ALL}}}
  |{{#ifeq:{{{embed}}}|yes
  |{{#ifeq:{{{embed}}}|yes

Revision as of 15:20, 2 April 2021

Infobox lighthouse
LensTemplate:If bothTemplate:If both