Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Jura1
(fix and expand)
m (1 revision imported)
 
(51 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{infobox
{{Infobox
| child = {{#ifeq:{{{embed}}}|yes|yes}}
| bodyclass = vcard
| bodyclass = vcard
| titleclass = fn
| titleclass = fn
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{item|}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{item|}}}}}|{{PAGENAMEBASE}}}}}}}
| autoheaders = y


| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue |P18 |name=image_name|qid={{{item|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image_name|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}
| {{#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| {{EditAtWikidata|qid={{{qid|}}}}}}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}
| 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|}}}
|coordinates = {{{coordinates|}}}
  |zoom={{{mapframe-zoom|5}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
  |frame-width={{{mapframe-width|}}}
  |lighthouse = Lighthouse icon centered.svg
|frame-height={{{mapframe-height|}}}
  |green = Green pog.svg
|marker={{{mapframe-marker|lighthouse}}}
  |red|#default = Red pog.svg
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
}}
  |coord={{{coordinates|}}}
|marksize = {{#switch:{{lc:{{{pushpin}}}}}
  |frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
  |lighthouse = 28
  |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
  |green
}}
  |red|#default = 8
}}
}}
|float = center
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}
|caption =
|border = none
|outside = {{{pushpin_outside|}}}<!-- pin is outside the map -->
|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 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|qid={{{item|}}} }}
|  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|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}}{{{coordinates_footnotes|}}}|{{#if:{{{item|}}}|{{WikidataCoord|{{{item}}}|display=}}|{{WikidataCoord|display=inline,title}}}} }}
|  data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}}


| 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 = {{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q24410992 |qual=P575 |name=automated |suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{automated|}}} }}


| label8 = Deactivated
| label12 = Construction
data8 = {{#invoke:WikidataIB |getPreferredValue |P730|name=yeardeactivated|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P1419|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P2048|name=height|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P2923|name=focalheight|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P2929|name=range|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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 = {{#invoke:WikidataIB |getPreferredValue |P137|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{managingagent|}}}}}
  }}
 
  }}
| label30 = Heritage
}}
| data30 = {{#invoke:WikidataIB |getPreferredValue |P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{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>
| data100 = {{main other |{{#ifeq:{{#invoke:String|match|s={{#property:P31}}test|pattern=lighthouse}}|lighthouse|{{EditOnWikidata}}|[[Category:General articles using infobox Lighthouse]] {{#ifeq:{{{item|}}}||[[Category:Pages using infobox Lighthouse needing Wikidata item]]| {{EditOnWikidata|qid={{{item|}}}}} }}}}}}
 
}}{{#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_alt | image_width | caption | alt | pushpin_map | pushpin_label_position | pushpin_map_alt | pushpin_relief | relief | pushpin | pushpin_outside | pushpin_mapsize | pushpin_map_caption | map_caption | location | grid_ref_UK | coordinates | 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 |item}}<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