Template:EfWTemplate: Difference between revisions

From Wikiwaste
Arctellion (talk | contribs)
No edit summary
Arctellion (talk | contribs)
No edit summary
Line 1: Line 1:
{{#clear_external_data:}}
{{#clear_external_data:}}
{{#get_db_data: db=engy |from=efwdb |where=epr='{{{EPR}}}' |data=site=site}}
{{#get_db_data: db=engy |from=efwdb |where=epr='{{{EPR}}}' |data=site=site,epr=epr,operator=operator,cap=cap,tin17=tin17,tin18=tin18,cappct17=cappct17,cappc18=cappc18,r1=r1,r1_date=r1_date,r1_value=r1_value,mwe=mwe}}


{|class="wikitable"
{|class="wikitable"
Line 7: Line 7:
|Site Name
|Site Name
|{{#external_value:site}}
|{{#external_value:site}}
|-
|Waste Licence
|{{#external_value:epr}}
|-
|Operator
|[[{{#external_value:operator}}]]
|-
|Operational Capacity
|{{#external_value:cap}}tpa
|-
|colspan="2"|
{|class="wikitable"
| ||2017 || 2018
|-
|Tonnage In||{{#external_value:tin17}}||{{#external_value:tin18}}
|-
|Percent of Capacity||{{#external_value:cappct17}}||{{#external_value:cappc18}}
|}
|-
|Is site [[R1]]?
|{{#external_value:r1}}
|-
|When was R1 Granted?
|{{#external_value:r1_date}}
|-
|Electrical Capacity
|{{#external_value:mwe}}
|}
|}

Revision as of 11:08, 27 January 2020

The query SELECT site,epr,operator,cap,tin17,tin18,cappct17,cappc18,r1,r1_date,r1_value,mwe FROM `efwdb` WHERE epr='{{{EPR}}}' is invalid (Error 1054: Unknown column 'tin17' in 'field list' Function: EDConnectorRdbms::fetch Query: SELECT site,epr,operator,cap,tin17,tin18,cappct17,cappc18,r1,r1_date,r1_value,mwe FROM `efwdb` WHERE epr='{{{EPR}}}' ).

[[File:output_{{{id}}}.png|400px|center|Site Location]]
Site Name Error: no local variable "site" has been set.
Waste Licence Error: no local variable "epr" has been set.
Operator [[Error: no local variable "operator" has been set.]]
Operational Capacity Error: no local variable "cap" has been set.tpa
2017 2018
Tonnage In Error: no local variable "tin17" has been set. Error: no local variable "tin18" has been set.
Percent of Capacity Error: no local variable "cappct17" has been set. Error: no local variable "cappc18" has been set.
Is site R1? Error: no local variable "r1" has been set.
When was R1 Granted? Error: no local variable "r1_date" has been set.
Electrical Capacity Error: no local variable "mwe" has been set.