Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Plastikspork
(test)
m (1 revision imported)
 
(130 intermediate revisions by 42 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width:23em; font-size: 90%; text-align:left; background-color: #F6F9FF;"
{{Infobox
|-
| child = {{#ifeq:{{{embed}}}|yes|yes}}
!class="fn" colspan="2" style="font-size: large; text-align:center" | '''{{{name<includeonly>|{{PAGENAME}}</includeonly>}}}'''
| bodyclass = vcard
|-
| titleclass = fn
{{#if: {{{image_name<includeonly>|</includeonly>}}} |
| autoheaders = y
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image_name}}}|{{{image_width|250x300px}}}|{{{name|{{PAGENAME}}}}} - {{{caption|}}}]]<br>{{{caption<includeonly>|</includeonly>}}} }}
 
{{#if:{{{pushpin_map|}}}|
| {{#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|}}}}}}}
{{!}}-
| subheaderstyle = background:#bfbfbf; font-weight:bold;
{{!}} colspan="2" style="text-align:center" align="center" {{!}} <center>
 
{{Location map|{{{pushpin_map|}}}
| 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}}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|id={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
|alt = {{{pushpin_map_alt|}}}
 
|lat = {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|}}} }}
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
|long = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|}}} }}
|id={{{qid|}}}
|lat_deg={{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}| }}
|zoom={{{mapframe-zoom|5}}}
|lat_min={{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}| }}
|frame-width={{{mapframe-width|}}}
|lat_sec={{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}| }}
|frame-height={{{mapframe-height|}}}
|lat_dir={{#if:{{{latNS|}}}|{{{latNS|}}}| }}
|marker={{{mapframe-marker|lighthouse}}}
|lon_deg={{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}| }}
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|lon_min={{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}| }}
|coord={{{coordinates|}}}
|lon_sec={{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}| }}
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
|lon_dir={{#if:{{{longEW|}}}|{{{longEW|}}}| }}
  |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
  }}
  |lighthouse = Legenda_latarnia.svg‎ {{!}} marksize {{=}} 15
|green = Green pog.svg‎ {{!}} marksize {{=}} 8
  |red|#default = Red pog.svg‎ {{!}} marksize {{=}} 8 <!-- Default -->
}}
}}
|float = none
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
|caption =
 
|border = none
| label1 = Location
|position = {{#if:{{{pushpin_label_position|}}} | {{{pushpin_label_position|}}} | right }}
| class1 = label
|width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}} | 240 }}
|  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|}}}}}}}
}}{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}
 
</center>
| 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|}}}}}
}}
}}
|-
 
! Location:
| label11 = Foundation
| <span class="label">{{{location}}}</span>
| data11 = {{{foundation|}}}
|- style="vertical-align: middle;"
 
{{#if: {{{coordinates<includeonly>|</includeonly>}}}{{{latitude|}}}{{{longitude|}}}{{{latd|}}}|
| label12 = Construction
! [[Geographic coordinate system|Coordinates]]
|  data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{construction|}}}}}
{{!}} {{#if:{{{coordinates<includeonly>|</includeonly>}}}|{{{coordinates}}}|{{#if:{{{latd|}}}|
 
{{Geobox coor|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|type:landmark|{{#if:{{{coordinates_display|}}}|title|μ}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}|
| label13 = Tower height
{{{latitude|}}}<br>{{{longitude|}}} }} }} }}
|  data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{height|}}}}}
|-
 
{{#if: {{{designation<includeonly>|</includeonly>}}}|
| label14 = Tower shape
! Designation:
| data14 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{shape|}}}}}
{{!}} {{{designation}}} }}
 
|-
| label15 = Markings
{{#if: {{{yearbuilt<includeonly>|</includeonly>}}}|
| class15 = note
! Year first constructed:
|  data15 = {{#if:{{{marking|}}}
{{!}} {{{yearbuilt}}} }}
|{{{marking|}}}
|- class="note"
|{{comma separated entries
{{#if: {{{yearlit<includeonly>|</includeonly>}}} |
  |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
! Year first lit:
  |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
{{!}} {{{yearlit}}} }}
}}
|- class="note"
}}
{{#if: {{{automated<includeonly>|</includeonly>}}} |
 
! Automated:
| label16 = Power source
{{!}} {{{automated}}} }}
|  data16 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
|-
 
{{#if: {{{yeardeactivated<includeonly>|</includeonly>}}}|
| label17 = Operator
! Deactivated:
|  data17 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{managingagent|}}}}}
{{!}} {{{yeardeactivated}}} }}
 
|-
| label18 = Heritage
{{#if: {{{foundation<includeonly>|</includeonly>}}}|
|  data18 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|linked=no|{{{heritage|}}}}}
! Foundation:
 
{{!}} {{{foundation}}} }}
| data20 = {{{light1|}}}
|-
 
{{#if: {{{construction<includeonly>|</includeonly>}}}|
| data21 = {{{light2|}}}
! Construction:
 
{{!}} {{{construction}}} }}
| data22 = {{Infobox lighthouse/light
|-
| qid = {{{qid|}}}
{{#if: {{{shape<includeonly>|</includeonly>}}} |
| name = <!--Blank-->
! Tower&nbsp;shape:
| suppressfields = {{{suppressfields|}}}
{{!}} {{{shape}}} }}
| fetchwikidata = {{{fetchwikidata|ALL}}}
|- class="note"
| onlysourced = {{{onlysourced|no}}}
{{#if: {{{marking<includeonly>|</includeonly>}}} |
| yearlit = {{{yearlit|}}}
! Markings/Pattern:
| automated = {{{automated|}}}
{{!}} {{{marking}}} }}
| yeardeactivated = {{{yeardeactivated|}}}
|-
| focalheight = {{{focalheight|}}}
{{#if: {{{height<includeonly>|</includeonly>}}} |
| lens = {{{lens|}}}
! Height:
| lightsource = {{{lightsource|}}}
{{!}} {{{height}}} }}
| intensity = {{{intensity|}}}
|-
| range = {{{range|}}}
{{#if: {{{elevation|}}} |
| characteristic = {{{characteristic|}}}
! Focal Height:
| admiralty = {{{admiralty|}}}
{{!}} {{{elevation}}} }}
| country = {{{country|}}}
|-
| countrylink = {{{countrylink|}}}
{{#if: {{{focalheight<includeonly>|</includeonly>}}} |
| countrynumber = {{{countrynumber|}}}
! Focal Height:
| NGA = {{{NGA|}}}
{{!}} {{{focalheight}}} }}
}}
|-
 
{{#if: {{{lens<includeonly>|</includeonly>}}} |
| header30= {{#if:{{{light1|}}}{{{light2|}}}|Other}}
! Original&nbsp;lens:
| rowstyle30 = background:#b9deed;
{{!}} {{{lens}}} }}
 
|-
| label31 = [[Foghorn#Marine fog signals|Fog signal]]
{{#if: {{{currentlens<includeonly>|</includeonly>}}} |
|  data31 = {{{fogsignal|}}}
! Current&nbsp;lens:
 
{{!}} {{{currentlens}}} }}
| label32 = [[Racon]]
|-
|  data32 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{racon|}}}}}
{{#if: {{{intensity<includeonly>|</includeonly>}}} |
 
! Intensity:
| label34 = [[Canadian Coast Guard|CCG]] no.
{{!}} {{{intensity}}} }}
|  data34 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{canada|}}}}}
|-
 
{{#if: {{{range<includeonly>|</includeonly>}}}|
| label36 = [[Amateur Radio Lighthouse Society|ARLHS]] no.
! Range:
|  data36 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{ARLHS|}}}}}
{{!}} {{{range}}} }}
 
|- class="note"
| label37 = [[United States Coast Guard|USCG]] no.
{{#if: {{{characteristic<includeonly>|</includeonly>}}} |
|  data37 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{USCG|}}}}}
! [[Light characteristic|Characteristic:]]
 
{{!}} {{{characteristic}}} }}
| header40= _BLANK_
|-
| data41  = {{{module|}}}
{{#if: {{{fogsignal<includeonly>|</includeonly>}}} |
| data42  = {{#if:{{{fetchwikidata|ALL}}}
! [[Foghorn#Marine fog signals|Fog signal:]]
|{{#ifeq:{{{embed}}}|yes
{{!}} {{{fogsignal}}} }}
  |<!--Null-->
|-
  |{{#ifexpr:{{#ifeq:{{#invoke:wd|property|raw|P31}}|Q39715
{{#if: {{{admiralty <includeonly>|</includeonly>}}}|
    |1<!--Instance of lighthouse-->
! [[United Kingdom Hydrographic Office|Admiralty]] number:
    |{{#ifeq:{{#invoke:wd|property|raw|{{#invoke:wd|property|raw|P31}}|P279}}|Q39715
{{!}} {{{admiralty}}} }}
    |1<!--Subclass of lighthouse-->
|-
    |0<!--Not a lighthouse-->
{{#if: {{{canada <includeonly>|</includeonly>}}}|
    }}
! [[Canadian Hydrographic Service|CHS]] number:
  }}
{{!}} {{{canada}}} }}
  |{{EditOnWikidata|qid={{{qid|}}}}}
|-
  |{{#if:{{{qid|}}}
{{#if: {{{NGA <includeonly>|</includeonly>}}}|
    |{{EditOnWikidata|qid={{{qid|}}}}}
! [[National Geospatial-Intelligence Agency|NGA]] number:
    |<includeonly>[[Category:Pages using infobox Lighthouse needing Wikidata item]]</includeonly>
{{!}} {{{NGA}}} }}
  }}
|-
  }}
{{#if: {{{ARLHS <includeonly>|</includeonly>}}}|
}}
! [[Amateur Radio Lighthouse Society|ARLHS]] number:
}}
{{!}} {{{ARLHS}}} }}
}}{{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
|-
}}{{#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>
{{#if: {{{USCG<includeonly>|</includeonly>}}} |
{{documentation}}<!-- place category on the /doc sub-page, not here -->
! [[United States Coast Guard|USCG]] number:
{{!}} {{{USCG}}} }}
|}<noinclude>{{pp-template}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 11:56, 6 September 2021

Infobox lighthouse