Template:Infobox lighthouse: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Frietjes
m (1 revision imported)
 
(28 intermediate revisions by 7 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 |getPreferredValue  |P18 |name=image_name|qid={{{item|}}} |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}}
| {{#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|}}}
|relief = {{{pushpin_relief|{{{relief|}}}}}}
|coordinates = {{{coordinates|}}}
|mark= {{#switch:{{lc:{{{pushpin}}}}}
|lighthouse = Lighthouse icon centered.svg
|green = Green pog.svg
|red|#default = Red pog.svg
}}
|marksize = {{#switch:{{lc:{{{pushpin}}}}}
|lighthouse = 28
|green
|red|#default = 8
}}
|float = center
|caption = {{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{{map_caption|}}}}}
|border = infobox
|outside = {{{pushpin_outside|}}}<!-- pin is outside the map -->
|position = {{#if:{{{pushpin_label_position|}}}| {{{pushpin_label_position|}}}| right }}
|width = {{{pushpin_mapsize|}}}
|default_width = 240
}}}}


| image3    = {{If declined|{{{mapframe|}}}||{{Infobox mapframe
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
  |zoom={{{mapframe-zoom|}}}
|id={{{qid|}}}
  |zoom={{{mapframe-zoom|5}}}
  |frame-width={{{mapframe-width|}}}
  |frame-width={{{mapframe-width|}}}
  |frame-height={{{mapframe-height|}}}
  |frame-height={{{mapframe-height|}}}
  |marker={{{mapframe-marker|}}}
  |marker={{{mapframe-marker|lighthouse}}}
  |marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
  |marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
|coord={{{coordinates|}}}
  |frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
  |frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
  |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
  |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
  }}
  }}
}}
}}
| caption3 = {{If declined|{{{mapframe|}}}||{{{mapframe-caption|}}}}}
| caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}}


| label1 = Location
| label1 = Location
| class1 = label
| class1 = label
|  data1 = {{Wikidata location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|refs={{{refs|no}}}|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
}}
| class7 = note
| data7 = {{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q24410992 |qual=P585 |name=automated |suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{automated|}}} }}
 
| label8 = Deactivated
| data8 = {{#invoke:WikidataIB |getPreferredValue |P730|name=yeardeactivated|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{yeardeactivated|}}} }}
 
| label9 = Foundation
|  data9 = {{{foundation|}}}
 
| label10 = Construction
|  data10 = {{{construction|}}}


| label11 = Tower shape
| label11 = Foundation
|  data11 = {{#invoke:WikidataIB |getPreferredValue |P1419|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{shape|}}} }}
|  data11 = {{{foundation|}}}


| label12 = Markings / pattern
| label12 = Construction
| class12 = note
| data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{construction|}}}}}
| data12 = {{{marking|}}}


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


| label14 = Focal height
| label14 = Tower shape
|  data14 = {{#invoke:WikidataIB |getPreferredValue |P2923|name=focalheight|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{focalheight|}}}}}
|  data14 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{shape|}}}}}


| label15 = Original lens
| label15 = Markings
|  data15 = {{{lens|}}}
| 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 = Current lens
| label16 = Power source
|  data16 = {{{currentlens|}}}
|  data16 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}}}


| label17 = Light source
| label17 = Operator
|  data17 = {{{lightsource|}}}
|  data17 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{managingagent|}}}}}


| label18 = Intensity
| label18 = Heritage
|  data18 = {{{intensity|}}}
|  data18 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|linked=no|{{{heritage|}}}}}


| label19 = Range
| data20 = {{{light1|}}}
|  data19 = {{#invoke:WikidataIB |getPreferredValue |P2929|name=range|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{range|}}}}}


| label20 = [[Light characteristic|Characteristic]]
| data21 = {{{light2|}}}
| class20 = note
|  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]]
| data22 = {{Infobox lighthouse/light
data21 = {{{fogsignal|}}}
| 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|}}}
}}


| label22 = [[Racon]]
| header30= {{#if:{{{light1|}}}{{{light2|}}}|Other}}
|  data22 = {{#invoke:WikidataIB |getPreferredValue |P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{racon|}}}}}
| rowstyle30 = background:#b9deed;


| label23 = [[United Kingdom Hydrographic Office|Admiralty]] number
| label31 = [[Foghorn#Marine fog signals|Fog signal]]
data23 = {{{admiralty|}}}
data31 = {{{fogsignal|}}}


| label24 = [[Canadian Hydrographic Service|CHS]] number
| label32 = [[Racon]]
data24 = {{{canada|}}}
data32 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{racon|}}}}}


| label25 = [[National Geospatial-Intelligence Agency|NGA]] number
| label34 = [[Canadian Coast Guard|CCG]] no.
data25 = {{{NGA|}}}
data34 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{canada|}}}}}


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


| label27 = [[United States Coast Guard|USCG]] number
| label37 = [[United States Coast Guard|USCG]] no.
data27 = {{{USCG|}}}
data37 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|}}}|{{{USCG|}}}}}


| label28 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number
| header40= _BLANK_
data28 = {{{countrynumber|}}}
| data41  = {{{module|}}}
 
| data42 = {{#if:{{{fetchwikidata|ALL}}}
| label29 = Managing agent
|{{#ifeq:{{{embed}}}|yes
|  data29 = {{#invoke:WikidataIB |getPreferredValue |P137|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|{{{managingagent|}}}}}
  |<!--Null-->
 
  |{{#ifexpr:{{#ifeq:{{#invoke:wd|property|raw|P31}}|Q39715
| label30 = Heritage
    |1<!--Instance of lighthouse-->
| data30 = {{#invoke:WikidataIB |getPreferredValue |P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|{{{heritage|}}}}}
    |{{#ifeq:{{#invoke:wd|property|raw|{{#invoke:wd|property|raw|P31}}|P279}}|Q39715
 
    |1<!--Subclass of lighthouse-->
| header31 = {{{module|}}}
    |0<!--Not a lighthouse-->
| data100 = {{#if:{{{fetchwikidata|ALL}}}|{{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 | focalheight | lens | currentlens | lightsource | intensity | range | characteristic | fogsignal |racon | admiralty | canada | NGA | ARLHS | USCG | countrylink | country | countrynumber | managingagent | heritage | module | item | mapframe | mapframe-zoom |mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-caption | mapframe-lat | mapframe-latitude |mapframe-long | mapframe-longitude
  |{{EditOnWikidata|qid={{{qid|}}}}}
}}{{#invoke:lighthouse tracking|tracking|heritage={{#invoke:WikidataIB|getPreferredValue |P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{item|}}}|linked=no|noicon=yes|{{{heritage|}}}}}
  |{{#if:{{{qid|}}}
}}{{#ifeq:{{{USCG|}}}|{{#invoke:string|replace|{{{USCG|}}}|
    |{{EditOnWikidata|qid={{{qid|}}}}}
|}}||[[Category:Pages using infobox lighthouse with spurious newlines]]}}<noinclude>
    |<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 -->
{{documentation}}<!-- place category on the /doc sub-page, not here -->
</noinclude>
</noinclude>

Latest revision as of 10:56, 6 September 2021

Infobox lighthouse