Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>FrescoBot
m (Bot: misplaced invisible LTR marks and minor changes)
m (1 revision imported)
 
(102 intermediate revisions by 29 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width: 22em"
{{Infobox
|+ class="fn" | {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
| child = {{#ifeq:{{{embed}}}|yes|yes}}
|-
| bodyclass = vcard
{{#if:{{{image_name|}}}|
| titleclass = fn
{{!}} colspan=2 style="text-align: center" {{!}} [[File:{{{image_name}}}|{{px|{{{image_width|}}}|frameless}}]]
| autoheaders = y
{{!}}-
 
{{#if:{{{caption|}}}|
| {{#ifeq:{{{embed}}}|yes|subheader|title}} = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|}}}}}|{{PAGENAMEBASE}}}}}}}{{#ifeq:{{{embed}}}|yes|&#32;{{EditAtWikidata|qid={{{qid|}}}}}}}
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
| subheaderstyle = background:#bfbfbf; font-weight:bold;
{{!}}-
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|maxvals=1|P18|name=image_name|qid={{{qid|}}}|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|id={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
 
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
|id={{{qid|}}}
|zoom={{{mapframe-zoom|5}}}
|frame-width={{{mapframe-width|}}}
|frame-height={{{mapframe-height|}}}
|marker={{{mapframe-marker|lighthouse}}}
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|coord={{{coordinates|}}}
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
|frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
}}
}}
}}
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
| label1 = Location
| class1 = label
|  data1 = {{#ifeq:{{{embed}}}|yes||{{Wikidata location|suppressfields={{{suppressfields|{{#ifeq:{{{embed}}}|yes|location}}}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|refs={{{refs|no}}}|qid={{{qid|}}}}}}}
| label2 = [[British national grid reference system|OS grid]]
|  data2 = {{gbmappingsmall|{{#invoke:WikidataIB|getValue|P613|qid={{{qid|}}}|noicon=true|name=os_grid_reference|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|onlysourced={{{onlysourced|no}}}|{{{grid_ref_UK|}}}}}}}
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}
| label5 = Constructed
|  data5 = {{#invoke:WikidataIB |getValue|rank=best|P571|name=constructed|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{yearbuilt|}}}}}
| label6 = Designed by
|  data6 = {{#invoke:WikidataIB|getValue|P287|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
| label7 = Built by
|  data7 = {{comma separated entries
|2={{#invoke:WikidataIB |getValue|P193|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
|3={{#invoke:WikidataIB |getValue|P631|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
}}
}}
{{#if:{{{pushpin_map|}}}|
 
{{!}}-
| label11 = Foundation
{{!}} colspan=2 style="text-align:center" align="center" {{!}} <center>
| data11 = {{{foundation|}}}
{{Location map|{{{pushpin_map|}}}
 
|label = {{#ifeq: {{lc: {{{pushpin_label_position|none}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
| label12 = Construction
|alt = {{{pushpin_map_alt|}}}
| data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{construction|}}}}}
|lat= {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|}}} }}
 
|long = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|}}} }}
| label13 = Tower height
|lat_deg={{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}| }}
| data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{height|}}}}}
|lat_min={{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}| }}
 
|lat_sec={{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}| }}
| label14 = Tower shape
|lat_dir={{#if:{{{latNS|}}}|{{{latNS|}}}| }}
|  data14 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{shape|}}}}}
|lon_deg={{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}| }}
 
|lon_min={{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}| }}
| label15 = Markings
|lon_sec={{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}| }}
| class15 = note
|lon_dir={{#if:{{{longEW|}}}|{{{longEW|}}}| }}
| data15 = {{#if:{{{marking|}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
|{{{marking|}}}
  |lighthouse = Lighthouse icon shifted.svg
|{{comma separated entries
|green = Green pog.svg
  |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
|red|#default = Red pog.svg
  |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
  }}
}}
}}
|marksize = {{#switch:{{lc:{{{pushpin}}}}}
 
  |lighthouse = 28
| label16 = Power source
  |green = 8
|  data16 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
  |red|#default = 8
 
| label17 = Operator
|  data17 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{managingagent|}}}}}
 
| label18 = Heritage
| data18 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|linked=no|{{{heritage|}}}}}
 
| data20 = {{{light1|}}}
 
| data21 = {{{light2|}}}
 
| data22 = {{Infobox lighthouse/light
| qid = {{{qid|}}}
| name = <!--Blank-->
| suppressfields = {{{suppressfields|}}}
| fetchwikidata = {{{fetchwikidata|ALL}}}
| onlysourced = {{{onlysourced|no}}}
| yearlit = {{{yearlit|}}}
| automated = {{{automated|}}}
| yeardeactivated = {{{yeardeactivated|}}}
| focalheight = {{{focalheight|}}}
| lens = {{{lens|}}}
| lightsource = {{{lightsource|}}}
  | intensity = {{{intensity|}}}
  | range = {{{range|}}}
| characteristic = {{{characteristic|}}}
| admiralty = {{{admiralty|}}}
| country = {{{country|}}}
| countrylink = {{{countrylink|}}}
| countrynumber = {{{countrynumber|}}}
| NGA = {{{NGA|}}}
}}
}}
|float = none
 
|caption =
| header30= {{#if:{{{light1|}}}{{{light2|}}}|Other}}
|border = none
| rowstyle30 = background:#b9deed;
|position = {{#if:{{{pushpin_label_position|}}}| {{{pushpin_label_position|}}}| right }}
 
|width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}}| 240 }}
| label31 = [[Foghorn#Marine fog signals|Fog signal]]
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}
|  data31 = {{{fogsignal|}}}
</center>
 
{{!}}-
| label32 = [[Racon]]
| data32 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{racon|}}}}}
 
| label34 = [[Canadian Coast Guard|CCG]] no.
|  data34 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{canada|}}}}}
 
| label36 = [[Amateur Radio Lighthouse Society|ARLHS]] no.
| data36 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{ARLHS|}}}}}
 
| label37 = [[United States Coast Guard|USCG]] no.
|  data37 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{USCG|}}}}}
 
| header40= _BLANK_
| data41  = {{{module|}}}
| data42  = {{#if:{{{fetchwikidata|ALL}}}
|{{#ifeq:{{{embed}}}|yes
  |<!--Null-->
  |{{#ifexpr:{{#ifeq:{{#invoke:wd|property|raw|P31}}|Q39715
    |1<!--Instance of lighthouse-->
    |{{#ifeq:{{#invoke:wd|property|raw|{{#invoke:wd|property|raw|P31}}|P279}}|Q39715
    |1<!--Subclass of lighthouse-->
    |0<!--Not a lighthouse-->
    }}
  }}
  |{{EditOnWikidata|qid={{{qid|}}}}}
  |{{#if:{{{qid|}}}
    |{{EditOnWikidata|qid={{{qid|}}}}}
    |<includeonly>[[Category:Pages using infobox Lighthouse needing Wikidata item]]</includeonly>
  }}
  }}
}}
}}
}}
{{#if:{{{location|}}}|
}}{{WikidataCheck|property=P3562|value={{{admiralty|}}}|qid={{{qid|}}}|category=Admiralty number}}{{#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 | lens | light1 | light2 | 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 | qid | racon | range | refs | relief | shape | suppressfields | USCG | yearbuilt | yeardeactivated | yearlit
! Location
}}{{#if:{{{pushpin|}}}{{{pushpin_label_position|}}}{{{pushpin_map|}}}{{{pushpin_map_alt|}}}{{{pushpin_map_caption|}}}{{{pushpin_mapsize|}}}{{{pushpin_outside|}}}{{{pushpin_relief|}}}|[[Category:Lighthouses using pushpin parameters]]}}{{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|}}}|linked=no|noicon=yes|{{{heritage|}}}}}}}}}<noinclude>
{{!}} class="label" {{!}} {{{location}}}
{{documentation}}<!-- place category on the /doc sub-page, not here -->
{{!}}-
</noinclude>
}}
{{#if:{{{coordinates|}}}{{{latitude|}}}{{{longitude|}}}{{{latd|}}}|
! [[Geographic coordinate system|Coordinates]]
{{!}} {{#if:{{{coordinates|}}}|{{{coordinates}}}|{{#if:{{{latd|}}}|
{{Geobox coor|wrap=y|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|type:landmark|{{#ifeq:{{{coordinates_display|}}}|inline|μ|{{#if:{{{coordinates_display|}}}|title|μ}}}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}|
{{{latitude|}}}<br>{{{longitude|}}} }} }}
{{!}}-
}}
{{#if:{{{designation|}}}|
! Designation
{{!}} {{{designation}}}
{{!}}-
}}
{{#if:{{{yearbuilt|}}}|
! Year first constructed
{{!}} {{{yearbuilt}}}
{{!}}-
}}
{{#if:{{{yearlit|}}}|
! Year first lit
{{!}} class="note" {{!}} {{{yearlit}}}
{{!}}-
}}
{{#if:{{{automated|}}}|
! Automated
{{!}} class="note" {{!}} {{{automated}}}
{{!}}-
}}
{{#if:{{{yeardeactivated|}}}|
! Deactivated
{{!}} {{{yeardeactivated}}}
{{!}}-
}}
{{#if:{{{foundation|}}}|
! Foundation
{{!}} {{{foundation}}}
{{!}}-
}}
{{#if:{{{construction|}}}|
! Construction
{{!}} {{{construction}}}
{{!}}-
}}
{{#if:{{{shape|}}}|
! Tower shape
{{!}} {{{shape}}}
{{!}}-
}}
{{#if:{{{marking|}}}|
! Markings / pattern
{{!}} class="note" {{!}} {{{marking}}}
{{!}}-
}}
{{#if:{{{height|}}}|
! Height
{{!}} {{{height}}}
{{!}}-
}}
{{#if:{{{elevation|}}}{{{focalheight|}}}|
! Focal height
{{!}} {{{elevation|{{{focalheight}}}}}}
{{!}}-
}}
{{#if:{{{lens|}}}|
! Original lens
{{!}} {{{lens}}}
{{!}}-
}}
{{#if:{{{currentlens|}}}|
! Current lens
{{!}} {{{currentlens}}}
{{!}}-
}}
{{#if:{{{intensity|}}}|
! Intensity
{{!}} {{{intensity}}}
{{!}}-
}}
{{#if:{{{range|}}}|
! Range
{{!}} {{{range}}}
{{!}}-
}}
{{#if:{{{characteristic|}}}|
! [[Light characteristic|Characteristic]]
{{!}} class="note" {{!}} {{{characteristic}}}
{{!}}-
}}
{{#if:{{{fogsignal|}}}|
! [[Foghorn#Marine fog signals|Fog signal]]
{{!}} {{{fogsignal}}}
{{!}}-
}}
{{#if:{{{racon|}}}|
! [[Racon]]
{{!}} {{{racon}}}
{{!}}-
}}
{{#if:{{{admiralty|}}}|
! [[United Kingdom Hydrographic Office|Admiralty]] number
{{!}} {{{admiralty}}}
{{!}}-
}}
{{#if:{{{canada|}}}|
! [[Canadian Hydrographic Service|CHS]] number
{{!}} {{{canada}}}
{{!}}-
}}
{{#if:{{{NGA|}}}|
! [[National Geospatial-Intelligence Agency|NGA]] number
{{!}} {{{NGA}}}
{{!}}-
}}
{{#if:{{{ARLHS|}}}|
! [[Amateur Radio Lighthouse Society|ARLHS]] number
{{!}} {{{ARLHS}}}
{{!}}-
}}
{{#if:{{{USCG|}}}|
! [[United States Coast Guard|USCG]] number
{{!}} {{{USCG}}}
{{!}}-
}}
{{#if:{{{country|}}}|
! {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
{{!}} {{{countrynumber}}}
{{!}}-
}}
|}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>

Latest revision as of 11:56, 6 September 2021

Infobox lighthouse