Template:Infobox power station: Difference between revisions

Jump to navigation Jump to search
m (Trying removing Wikidata references that make the template not work properly.)
m (Well, this didn't work like I wanted.)
Tag: Undo
Line 11: Line 11:
| caption      = {{#if:{{{image|}}}|{{{image_caption|}}}|{{{image_caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}
| caption      = {{#if:{{{image|}}}|{{{image_caption|}}}|{{{image_caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}}}


| image2        = {{#ifeq:{{{location_map|}}}|no|<!-- -->|}}
| image2        = {{#ifeq:{{{location_map|}}}|no|<!-- -->|{{Infobox mapframe
                  |id                    = {{{qid|}}}
                  |coord                = {{{coordinates|}}}
                  |frame-width          = {{Digits|1={{#if:{{{image_size|}}}|{{{image_size|}}}|300px}}}}
                  |marker                = industrial
                  |zoom                  = {{#if:{{{location_map_geomask|}}}|{{{location_map_zoom|}}}|{{{location_map_zoom|5}}}}}
                  |geomask              = {{#ifeq:{{{location_map_geomask|}}}|Yes|P17|<!-- -->}}
                  |geomask-stroke-width  = {{#ifeq:{{{location_map_geomask|}}}|Yes|0.5|<!-- -->}}
                  |geomask-stroke-colour = {{#ifeq:{{{location_map_geomask|}}}|Yes|#000000|<!-- -->}}
                  |geomask-fill          = {{#ifeq:{{{location_map_geomask|}}}|Yes|#BABABA|<!-- -->}}
                  }}}}
| caption2      = {{#ifeq:{{{location_map|}}}|no|<!-- -->|{{#if:{{{coordinates|}}}{{#property:P625}}|{{{location_map_caption|}}}}}}}
| caption2      = {{#ifeq:{{{location_map|}}}|no|<!-- -->|{{#if:{{{coordinates|}}}{{#property:P625}}|{{{location_map_caption|}}}}}}}


Line 24: Line 34:


| label4        = Coordinates
| label4        = Coordinates
| data4        = {{#if:{{{coordinates|}}}|{{{coordinates|}}}}}
| data4        = {{#if:{{{coordinates|}}}|{{{coordinates|}}}|{{#if:{{#Property:P625}}|{{If first display both|{{Coord|display=inline|format=dms}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|P625}}}}}}}}}}


| label5        = Status
| label5        = Status
Line 363: Line 373:
| label91      = Website
| label91      = Website
| data91        = {{If first display both|{{#invoke:WikidataIB|getValue|P856|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=ps_website|onlysourced={{{onlysourced|no}}}|linked=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{website|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}}}}}}
| data91        = {{If first display both|{{#invoke:WikidataIB|getValue|P856|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=ps_website|onlysourced={{{onlysourced|no}}}|linked=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{website|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}}}}}}
| label92      = Commons
| data92        = {{#if:{{#invoke:Wikidata|getValue|P373|qid={{{qid|}}}|FETCH_WIKIDATA}}|[[Commons:Category:{{#invoke:Wikidata|getValue|P373|qid={{{qid|}}}|FETCH_WIKIDATA}}|Related&nbsp;media&nbsp;on&nbsp;Commons]]}}


| below        = <includeonly>{{#if:{{{child|}}}||{{EditOnWikidata|qid={{{qid|}}}}}}}{{#if:{{{extra|}}}|<br>{{{extra|}}}}}</includeonly>
| below        = <includeonly>{{#if:{{{child|}}}||{{EditOnWikidata|qid={{{qid|}}}}}}}{{#if:{{{extra|}}}|<br>{{{extra|}}}}}</includeonly>

Revision as of 09:19, 5 July 2020

CoordinatesLua error in Module:Coordinates at line 614: attempt to index field 'wikibase' (a nil value).
Power generation
External links
Commons[[Commons:Category:Lua error in Module:Wikidata at line 448: attempt to index field 'wikibase' (a nil value).|Related media on Commons]]