Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>MSGJ
(change label to CCG number, populate from P3920, and remove an unneeded tracking category)
>MSGJ
(fetch P9597 for type of lens, adjustments to tracking categories)
Line 83: Line 83:


| label17 = Lens
| label17 = Lens
|  data17 = {{{lens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(original),<br>}}{{{currentlens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(current)}}
|  data17 = {{#invoke:WikidataIB |getValue|P9597|qual=DATES|linked=yes|name=lens|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{lens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(original),<br>}}{{{currentlens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(current)}}}}{{#if:{{{currentlens|}}}|[[Category:Lighthouses using current lens parameter]]}}


| label18 = Power source
| label18 = Power source
Line 89: Line 89:


| label19 = Light source
| label19 = Light source
|  data19 = {{{lightsource|}}}
|  data19 = {{{lightsource|}}}{{#if:{{{lightsource|}}}|{{#ifeq:{{Str find|{{lc:{{{lightsource}}}}}|solar}}|-1||[[Category:Solar powered lighthouses using wrong field]]}}}}


| label20 = Intensity
| label20 = Intensity
Line 119: Line 119:


| label26 = [[Canadian Coast Guard|CCG]] number
| label26 = [[Canadian Coast Guard|CCG]] number
|  data26 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{canada|}}}}}
|  data26 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{canada|}}}}}{{#if:{{{canada|}}}|{{#ifeq:{{Str find|{{uc:{{{canada}}}}}|CCG}}|-1||[[Category:Lighthouses with CCG prefix]]}}}}


| label27 = [[National Geospatial-Intelligence Agency|NGA]] number
| label27 = [[National Geospatial-Intelligence Agency|NGA]] number
Line 153: Line 153:
   |{{#if:{{{qid|{{{item|}}}}}}
   |{{#if:{{{qid|{{{item|}}}}}}
     |{{EditOnWikidata|qid={{{qid|{{{item|}}}}}}}}
     |{{EditOnWikidata|qid={{{qid|{{{item|}}}}}}}}
     |[[Category:Pages using infobox Lighthouse needing Wikidata item]]
     |<includeonly>[[Category:Pages using infobox Lighthouse needing Wikidata item]]</includeonly>
   }}
   }}
   }}
   }}
Line 159: Line 159:
}}
}}
}}{{#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 | embed | 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 | qid | 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 | embed | 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 | qid | 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={{{qid|{{{qid|{{{item|}}}}}}}}}|linked=no|noicon=yes|{{{heritage|}}}}}
}}{{#if:{{{item|}}}|[[Category:Lighthouses using item parameter]]}}{{#if:{{{pushpin|}}}{{{pushpin_label_position|}}}{{{pushpin_map|}}}{{{pushpin_map_alt|}}}{{{pushpin_map_caption|}}}{{{pushpin_mapsize|}}}{{{pushpin_outside|}}}{{{pushpin_relief|}}}|[[Category:Lighthouses using pushpin parameters]]}}<noinclude>
}}}}<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 07:44, 21 May 2021

Infobox lighthouse
LensTemplate:If bothTemplate:If both