Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Zyxw
(alternative parameter name)
m (1 revision imported)
 
(77 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{{infobox
{{Infobox
| child = {{#ifeq:{{{embed}}}|yes|yes}}
| bodyclass = vcard
| bodyclass = vcard
| titleclass = fn
| titleclass = fn
| title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| autoheaders = y


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image_name|}}}|size={{{image_width|}}}|sizedefault=frameless}}
| {{#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|}}}}}}}
| caption = {{{caption|}}}
| subheaderstyle = background:#bfbfbf; font-weight:bold;


| image2 = {{#if:{{{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}}
{{Location map|{{{pushpin_map|}}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|id={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|none}}} }} | none | | {{{name<includeonly>|{{PAGENAME}}</includeonly>}}} }}
 
|alt = {{{pushpin_map_alt|}}}
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
|relief = {{{pushpin_relief|{{{relief|}}}}}}
|id={{{qid|}}}
|lat= {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|}}} }}
|zoom={{{mapframe-zoom|5}}}
|long = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|}}} }}
|frame-width={{{mapframe-width|}}}
|lat_deg={{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}| }}
|frame-height={{{mapframe-height|}}}
|lat_min={{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}| }}
|marker={{{mapframe-marker|lighthouse}}}
|lat_sec={{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}| }}
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|lat_dir={{#if:{{{latNS|}}}|{{{latNS|}}}| }}
|coord={{{coordinates|}}}
|lon_deg={{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}| }}
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
|lon_min={{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}| }}
  |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
|lon_sec={{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}| }}
  }}
|lon_dir={{#if:{{{longEW|}}}|{{{longEW|}}}| }}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
  |lighthouse = Lighthouse icon shifted.svg
|green = Green pog.svg
|red|#default = Red pog.svg
}}
|marksize = {{#switch:{{lc:{{{pushpin}}}}}
  |lighthouse = 28
|green
|red|#default = 8
}}
}}
|float = center
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
|caption =
|border = none
|position = {{#if:{{{pushpin_label_position|}}}| {{{pushpin_label_position|}}}| right }}
|width = {{{pushpin_mapsize|}}}
|default_width = 240
}}}}
| caption2 = {{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{{map_caption|}}}}}


| label1 = Location
| label1 = Location
| class1 = label
| class1 = label
|  data1 = {{{location|}}}
|  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]]
| label2 = [[British national grid reference system|OS grid]]
|  data2 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK}}}}}}}
|  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]]
| label3 = [[Geographic coordinate system|Coordinates]]
|  data3 = {{#if:{{{coordinates|}}}
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}
  |{{{coordinates}}}
  |{{#if:{{{latd|}}}
    |{{Geobox coor|wrap=y|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|{{{latNS|}}}|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|}}}|{{#if:{{{coordinates_type|}}}|{{{coordinates_type}}}|type:landmark}}|{{#ifeq:{{{coordinates_display|}}}|inline|μ|{{#if:{{{coordinates_display|}}}|title|μ}}}}={{{coordinates_display|}}} }}{{#if:{{{coordinates_footnotes|}}}|{{{coordinates_footnotes}}} }}
    }}
  }}


| label4 = Designation
| label5 = Constructed
data4 = {{{designation|}}}
data5 = {{#invoke:WikidataIB |getValue|rank=best|P571|name=constructed|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{yearbuilt|}}}}}


| label5 = Year first constructed
| label6 = Designed by
data5 = {{{yearbuilt|}}}
data6 = {{#invoke:WikidataIB|getValue|P287|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}


| label6 = Year first lit
| label7 = Built by
| class6 = note
| data7 = {{comma separated entries
data6 = {{{yearlit|}}}
|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|}}}}}
}}


| label7 = Automated
| label11 = Foundation
| class7 = note
data11 = {{{foundation|}}}
data7 = {{{automated|}}}


| label8 = Deactivated
| label12 = Construction
data8 = {{{yeardeactivated|}}}
data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{construction|}}}}}


| label9 = Foundation
| label13 = Tower height
data9 = {{{foundation|}}}
data13 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{height|}}}}}


| label10 = Construction
| label14 = Tower shape
data10 = {{{construction|}}}
data14 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{shape|}}}}}


| label11 = Tower shape
| label15 = Markings
data11 = {{{shape|}}}
| 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|}}}}}
}}
}}


| label12 = Markings / pattern
| label16 = Power source
| class12 = note
| data16 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}
| data12 = {{{marking|}}}


| label13 = Height
| label17 = Operator
data13 = {{{height|}}}
data17 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{managingagent|}}}}}


| label14 = Focal height
| label18 = Heritage
data14 = {{{elevation|}}}{{{focalheight|}}}
data18 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|linked=no|{{{heritage|}}}}}


| label15 = Original lens
| data20 = {{{light1|}}}
|  data15 = {{{lens|}}}


| label16 = Current lens
| data21 = {{{light2|}}}
|  data16 = {{{currentlens|}}}


| label17 = Light source
| data22 = {{Infobox lighthouse/light
data17 = {{{lightsource|}}}
| 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|}}}
}}


| label18 = Intensity
| header30= {{#if:{{{light1|}}}{{{light2|}}}|Other}}
| data18 = {{{intensity|}}}
| rowstyle30 = background:#b9deed;


| label19 = Range
| label31 = [[Foghorn#Marine fog signals|Fog signal]]
data19 = {{{range|}}}
data31 = {{{fogsignal|}}}


| label20 = [[Light characteristic|Characteristic]]
| label32 = [[Racon]]
| class20 = note
| data32 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{racon|}}}}}
| data20 = {{{characteristic|}}}


| label21 = [[Foghorn#Marine fog signals|Fog signal]]
| label34 = [[Canadian Coast Guard|CCG]] no.
data21 = {{{fogsignal|}}}
data34 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{canada|}}}}}


| label22 = [[Racon]]
| label36 = [[Amateur Radio Lighthouse Society|ARLHS]] no.
data22 = {{{racon|}}}
data36 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{ARLHS|}}}}}


| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
| label37 = [[United States Coast Guard|USCG]] no.
data23 = {{{admiralty|}}}
data37 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{USCG|}}}}}


| label24 = [[Canadian Hydrographic Service|CHS]] number
| header40= _BLANK_
data24 = {{{canada|}}}
| data41 = {{{module|}}}
 
| data42 = {{#if:{{{fetchwikidata|ALL}}}
| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
|{{#ifeq:{{{embed}}}|yes
data25 = {{{NGA|}}}
  |<!--Null-->
 
  |{{#ifexpr:{{#ifeq:{{#invoke:wd|property|raw|P31}}|Q39715
| label26 = [[Amateur Radio Lighthouse Society|ARLHS]] number
    |1<!--Instance of lighthouse-->
|  data26 = {{{ARLHS|}}}
    |{{#ifeq:{{#invoke:wd|property|raw|{{#invoke:wd|property|raw|P31}}|P279}}|Q39715
 
    |1<!--Subclass of lighthouse-->
| label27 = [[United States Coast Guard|USCG]] number
    |0<!--Not a lighthouse-->
| data27 = {{{USCG|}}}
    }}
 
  }}
| label28 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
  |{{EditOnWikidata|qid={{{qid|}}}}}
| data28 = {{{countrynumber|}}}
  |{{#if:{{{qid|}}}
 
    |{{EditOnWikidata|qid={{{qid|}}}}}
| label29 = Managing agent
    |<includeonly>[[Category:Pages using infobox Lighthouse needing Wikidata item]]</includeonly>
| data29 = {{{managingagent|}}}
  }}
 
  }}
| label30 = Heritage
}}
| data30 = {{{heritage|}}}
}}
 
}}{{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  
| header31 = {{{module|}}}
}}{{#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>
 
}}{{#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| name | image_name | image_width | caption | pushpin_map | pushpin_label_position | pushpin_map_alt | relief | latm | latNS | latd | longm | longEW | longd | lats | longs | pushpin | pushpin_mapsize | pushpin_map_caption | map_caption | location | grid_ref_UK | coordinates | coordinates_type | coordinates_display | coordinates_footnotes | designation | yearbuilt | yearlit | automated | yeardeactivated | foundation | construction | shape | marking | height | elevation | focalheight | lens | currentlens | lightsource | intensity | range | characteristic | fogsignal | racon | admiralty | canada | NGA | ARLHS | USCG | countrylink | country | countrynumber | managingagent | heritage | module }}<noinclude>
{{documentation}}<!-- place category on the /doc sub-page, not here -->
{{documentation}}<!-- place category on the /doc sub-page, not here -->
</noinclude>
</noinclude>

Latest revision as of 10:56, 6 September 2021

Infobox lighthouse