Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>RHaworth
m (1 revision imported)
 
(206 intermediate revisions by 69 users not shown)
Line 1: Line 1:
{| class="infobox bordered" style="width: 23em; font-size: 90%; background-color: #F6F9FF;"
{{Infobox
|+ style="font-size: larger;" | '''{{{name|{{PAGENAME}}}}}'''
| child = {{#ifeq:{{{embed}}}|yes|yes}}
|- class="hiddenStructure{{{image_name|}}}"
| bodyclass = vcard
| colspan="2" style="line-height: 1.2; border-bottom: 1px solid #CEDEFF;" | <div style="border: 1px solid #CEDEFF;">[[Image:{{{image_name}}}|258px|{{{caption}}}]]</div> <center>{{{caption}}}</center>
| titleclass = fn
|- class="hiddenStructure{{{location|}}}"
| autoheaders = y
! Location:
 
| {{{location}}}
| {{#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|}}}}}}}
|- class="hiddenStructure{{{latitude|}}}"
| subheaderstyle = background:#bfbfbf; font-weight:bold;
! Latitude:
 
| {{{latitude}}}
| 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}}
|- class="hiddenStructure{{{longitude|}}}"
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|id={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
! Longitude:
 
| {{{longitude}}}
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
|- class="hiddenStructure{{{foundation|}}}"
|id={{{qid|}}}
! Foundation:
|zoom={{{mapframe-zoom|5}}}
| {{{foundation}}}
|frame-width={{{mapframe-width|}}}
|- class="hiddenStructure{{{construction|}}}"
|frame-height={{{mapframe-height|}}}
! Construction:
|marker={{{mapframe-marker|lighthouse}}}
| {{{construction}}}
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|- class="hiddenStructure{{{yearlit|}}}"
|coord={{{coordinates|}}}
! Year first lit:
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
| {{{yearlit}}}
|frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
|- class="hiddenStructure{{{yeardeactivated|}}}"
}}
! Deactivated:
}}
| {{{yeardeactivated}}}
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
|- class="hiddenStructure{{{automated|}}}"
 
! Automated:
| label1 = Location
| {{{automated}}}
| class1 = label
|- class="hiddenStructure{{{shape|}}}"
|  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|}}}}}}}
! Tower Shape:
 
| {{{shape}}}
| label2 = [[British national grid reference system|OS grid]]
|- class="hiddenStructure{{{height|}}}"
| 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|}}}}}}}
! Height:
 
| {{{height}}}
| label3 = [[Geographic coordinate system|Coordinates]]
|- class="hiddenStructure{{{elevation|}}}"
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}
! Elevation
 
| {{{elevation}}}
| label5 = Constructed
|- class="hiddenStructure{{{lens|}}}"
|  data5 = {{#invoke:WikidataIB |getValue|rank=best|P571|name=constructed|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{yearbuilt|}}}}}
! Original Lens:
 
| {{{lens}}}
| label6 = Designed by
|- class="hiddenStructure{{{intensity|}}}"
|  data6 = {{#invoke:WikidataIB|getValue|P287|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
! Intensity
 
| {{{intensity}}}
| label7 = Built by
|- class="hiddenStructure{{{range|}}}"
|  data7 = {{comma separated entries
! Range
|2={{#invoke:WikidataIB |getValue|P193|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
| {{{range}}}
|3={{#invoke:WikidataIB |getValue|P631|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
|}
}}
 
| label11 = Foundation
|  data11 = {{{foundation|}}}
 
| label12 = Construction
|  data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{construction|}}}}}
 
| label13 = Tower height
| data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{height|}}}}}
 
| label14 = Tower shape
|  data14 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{shape|}}}}}
 
| label15 = Markings
| class15 = note
|  data15 = {{#if:{{{marking|}}}
|{{{marking|}}}
|{{comma separated entries
  |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
  |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
}}
}}
 
| label16 = Power source
|  data16 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
 
| 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|}}}
}}
 
| header30= {{#if:{{{light1|}}}{{{light2|}}}|Other}}
| rowstyle30 = background:#b9deed;
 
| label31 = [[Foghorn#Marine fog signals|Fog signal]]
|  data31 = {{{fogsignal|}}}
 
| 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>
  }}
  }}
}}
}}
}}{{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>
{{documentation}}<!-- place category on the /doc sub-page, not here -->
</noinclude>

Latest revision as of 11:56, 6 September 2021

Infobox lighthouse