Difference between revisions of "Template:Infobox desalination plant/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Rehman
(Create)
 
imported>Rehman
(draft)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
|bodyclass = vcard
+
| bodyclass     = vcard
 +
| child        = {{{child|}}}
 +
| subbox        = {{{embed|}}}
 +
| above        = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|<includeonly>{{#invoke:Wikidata|ViewSomething|labels|en|value}}</includeonly>|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}
 +
| aboveclass    = fn org
  
|title  = {{{name|{{PAGENAMEBASE}}}}}
+
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB|getPreferredValue|P18|name=image|qid={{{qid|}}}|suppressfields={{{suppressfields|none}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=true|{{{image|}}}|maxvals=1}}|size={{#if:{{{image_size|}}}|{{{image_size|}}}|300px}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}|suppressplaceholder=yes}}
|titleclass = fn org
+
| caption      = {{#if:{{{image|}}}|{{{image_caption|}}}|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}
  
|headerstyle = background:lavender;
+
| 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|}}}}}}}
  
|image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
+
| label3        = Location
|caption = {{{caption|}}}
+
| data3        = {{If first display both|{{#invoke:WikidataIB|getValue|P276|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=location|onlysourced={{{onlysourced|no}}}|linked=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{location|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}}}}}}
  
|image2 = {{#if:{{both|{{{location_map|}}}|{{{coordinates|}}}{{#property:P625}}}}|{{Location map|{{{location_map}}}
+
| label4        = Coordinates
|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}}}}}}}}}}
|float=center
 
|border=infobox
 
|width={{#if:{{{location_map_width|}}}|{{{location_map_width}}}|235}}
 
|caption = {{if empty|{{{location_map_text|}}}|{{{location_map_caption|}}}|Location of {{{name|{{PAGENAMEBASE}}}}} }}
 
}} }}
 
  
|image3    = {{If declined|{{{mapframe|}}}||{{Infobox mapframe
+
| label5        = [[Project commissioning|Commission&nbsp;date]]
|zoom={{{mapframe-zoom|}}}
+
| data5        = {{If first display both|{{#invoke:WikidataIB|getValue|P729|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=commissioned|onlysourced={{{onlysourced|no}}}|linked=false|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{commissioned|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P729}}}}}}
|frame-width={{{mapframe-width|}}}
 
|frame-height={{{mapframe-height|}}}
 
|marker={{{mapframe-marker|}}}
 
|marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}}
 
|frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}}
 
|frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}}
 
|stroke-color={{{mapframe-stroke-color|{{{mapframe-stroke-colour|}}}}}}
 
}}
 
}}
 
|caption3 = {{If declined|{{{mapframe|}}}||{{{mapframe-caption|}}}}}
 
  
|header1 = <includeonly>[[Desalination|Desalination plant]]</includeonly>
+
| label6        = Technology
 +
| data6        = {{{technology|}}}
  
|label2  = Location
+
| label7        = Source
|data2  = {{{location|}}}
+
| data7        = {{{source|}}}
|class2  = label
 
  
|label3  = Coordinates
+
| label8        = Capacity
|data3  = {{#if:{{{coordinates|}}} | {{{coordinates}}}{{#if:{{{coordinates_ref|}}}|<small>{{{coordinates_ref|}}}</small>}} }}
+
| data8        = {{{capacity|}}}
  
|label4  = Estimated output
+
| label9        = Energy&nbsp;usage
|data4  = {{{estimated output|}}}
+
| data9        = {{{energy_usage|}}}
  
|label5  = Extended output
+
| label10      = Energy&nbsp;offset
|data5  = {{{extended output|}}}
+
| data10        = {{{energy_offset|}}}
  
|label6  = Daily capacity
+
| label11      = Website
|data6  = {{{daily capacity|}}}
+
| data11        = {{If first display both|{{#invoke:WikidataIB|getValue|P856|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|none}}}|name=website|onlysourced={{{onlysourced|no}}}|linked=true|maxvals=1|sorted=true|noicon=true|sep="<br />"|{{{website|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}}}}}}
  
|label7  = Annual capacity
+
| below        = <includeonly>{{#if:{{{child|}}}||{{EditOnWikidata|qid={{{qid|}}}}}}}{{#if:{{{extra|}}}|<br>{{{extra|}}}}}</includeonly>
|data7  = {{{annual capacity|}}}
 
 
 
|label8  = Cost
 
|data8  = {{{cost|}}}
 
 
 
|label9  = Energy usage
 
|data9  = {{{energy usage|}}}
 
 
 
|label10 = Energy generation offset
 
|data10  = {{{energy generation offset|}}}
 
 
 
|label11 = Cost offsets
 
|data11  = {{{cost offsets|}}}
 
 
 
|label12 = Technology
 
|data12  = {{{technology|}}}
 
|class12 = category
 
 
 
|label13 = Percent of water supply
 
|data13  = {{{percent of water supply|}}}
 
 
 
|label14 = Completion date
 
|data14  = {{{completion date|}}}
 
 
 
|label15 = Operation date
 
|data15  = {{{operation date|}}}
 
 
 
|label16 = Website
 
|data16  = {{{website|}}}
 
  
 
}}
 
}}

Revision as of 17:02, 8 June 2019

Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value).
CoordinatesLua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).