Template:Infobox lighthouse: Difference between revisions

>MSGJ
m (avoid duplicated field)
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
| autoheaders = y
| autoheaders = y


| {{#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|}}}}}}}
| {{#ifeq:{{{embed}}}|yes|subheader|title}} = {{PAGENAMEBASE}}
| subheaderstyle = background:#bfbfbf; font-weight:bold;
| subheaderstyle = background:#bfbfbf; font-weight:bold;


| 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}}
| 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}}
| caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|id={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
| caption   = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}


| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe
| image3    = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe

Latest revision as of 21:21, 23 July 2023

Infobox lighthouse
Lua error in Module:Mapframe at line 764: attempt to index field 'wikibase' (a nil value).
LocationTemplate:Wikidata location
OS gridTemplate:Gbmappingsmall
Template:Infobox lighthouse/light