Difference between revisions of "Template:Incentive Contact"

From Open Energy Information

(Add category check for header)
(Add check of Division,email, phone,website to display)
Line 56: Line 56:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude>
 
</noinclude>
<includeonly>{{#if:{{{Incentive/ContName|}}}|{{#vardefine:displayit|yes}}|}}{{#if:{{{Incentive/ContDept|}}}|{{#vardefine:displayit|yes}}|}}  
+
<includeonly>{{#if:{{{Incentive/ContName|}}}|{{#vardefine:displayit|yes}}|}}{{#if:{{{Incentive/ContDept|}}}|{{#vardefine:displayit|yes}}|}} {{#if:{{{Incentive/ContDiv|}}}|{{#vardefine:displayit|yes}}|}} {{#if:{{{Incentive/ContEmail|}}}|{{#vardefine:displayit|yes}}|}} {{#if:{{{Incentive/ContWebsite|}}}|{{#vardefine:displayit|yes}}|}} {{#if:{{{Incentive/ContPhone|}}}|{{#vardefine:displayit|yes}}|}}
 
{{#ifeq: {{#var:displayit}}|yes|{{#!:[[Category:Incentive with Contacts]]{{#ifcategory:EZFeed Policies|'''Policy Contact'''|'''Incentive Contact'''|}}
 
{{#ifeq: {{#var:displayit}}|yes|{{#!:[[Category:Incentive with Contacts]]{{#ifcategory:EZFeed Policies|'''Policy Contact'''|'''Incentive Contact'''|}}
 
{| class="wikitable"
 
{| class="wikitable"
Line 119: Line 119:
 
   | [[Incentive/ContWebsite::{{{Incentive/ContWebsite|}}}]]
 
   | [[Incentive/ContWebsite::{{{Incentive/ContWebsite|}}}]]
 
}}|{{blank}}}}
 
}}|{{blank}}}}
|} }}|{{blank}}}}  {{#if:{{{Incentive/Cont2Name|}}}|{{#vardefine:displayit2|yes}}|}}{{#if:{{{Incentive/Cont2Dept|}}}|{{#vardefine:displayit2|yes}}|}}
+
|} }}|{{blank}}}}  {{#if:{{{Incentive/Cont2Name|}}}|{{#vardefine:displayit2|yes}}|}}{{#if:{{{Incentive/Cont2Dept|}}}|{{#vardefine:displayit2|yes}}|}} {{#if:{{{Incentive/Cont2Div|}}}|{{#vardefine:displayit2|yes}}|}} {{#if:{{{Incentive/Cont2Email|}}}|{{#vardefine:displayit2|yes}}|}} {{#if:{{{Incentive/Cont2Website|}}}|{{#vardefine:displayit2|yes}}|}} {{#if:{{{Incentive/Cont2Phone|}}}|{{#vardefine:displayit2|yes}}|}}
 
{{#ifeq:{{#var:displayit2}}|yes|{{#!:
 
{{#ifeq:{{#var:displayit2}}|yes|{{#!:
 
{| class="wikitable"
 
{| class="wikitable"
Line 182: Line 182:
 
   | [[Incentive/Cont2Website::{{{Incentive/Cont2Website|}}}]]
 
   | [[Incentive/Cont2Website::{{{Incentive/Cont2Website|}}}]]
 
}}|{{blank}}}}
 
}}|{{blank}}}}
|} }}|{{blank}}}} {{#if:{{{Incentive/Cont3Name|}}}|{{#vardefine:displayit3|yes}}|}}{{#if:{{{Incentive/Cont3Dept|}}}|{{#vardefine:displayit3|yes}}|}}
+
|} }}|{{blank}}}} {{#if:{{{Incentive/Cont3Name|}}}|{{#vardefine:displayit3|yes}}|}}{{#if:{{{Incentive/Cont3Dept|}}}|{{#vardefine:displayit3|yes}}|}} {{#if:{{{Incentive/Cont3Div|}}}|{{#vardefine:displayit3|yes}}|}} {{#if:{{{Incentive/Cont3Email|}}}|{{#vardefine:displayit3|yes}}|}} {{#if:{{{Incentive/Cont3Website|}}}|{{#vardefine:displayit3|yes}}|}} {{#if:{{{Incentive/Cont3Phone|}}}|{{#vardefine:displayit3|yes}}|}}
 
{{#ifeq:{{#var:displayit3}}|yes|{{#!:
 
{{#ifeq:{{#var:displayit3}}|yes|{{#!:
 
{| class="wikitable"
 
{| class="wikitable"
Line 245: Line 245:
 
   | [[Incentive/Cont3Website::{{{Incentive/Cont3Website|}}}]]
 
   | [[Incentive/Cont3Website::{{{Incentive/Cont3Website|}}}]]
 
}}|{{blank}}}}
 
}}|{{blank}}}}
|} }}|{{blank}}}} {{#if:{{{Incentive/Cont4Name|}}}|{{#vardefine:displayit4|yes}}|}}{{#if:{{{Incentive/Cont4Dept|}}}|{{#vardefine:displayit4|yes}}|}}
+
|} }}|{{blank}}}} {{#if:{{{Incentive/Cont4Name|}}}|{{#vardefine:displayit4|yes}}|}}{{#if:{{{Incentive/Cont4Dept|}}}|{{#vardefine:displayit4|yes}}|}} {{#if:{{{Incentive/Cont4Div|}}}|{{#vardefine:displayit4|yes}}|}} {{#if:{{{Incentive/Cont4Email|}}}|{{#vardefine:displayit4|yes}}|}} {{#if:{{{Incentive/Cont4Website|}}}|{{#vardefine:displayit4|yes}}|}} {{#if:{{{Incentive/Cont4Phone|}}}|{{#vardefine:displayit4|yes}}|}}
 
{{#ifeq:{{#var:displayit4}}|yes|{{#!:
 
{{#ifeq:{{#var:displayit4}}|yes|{{#!:
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 07:26, 21 November 2012

This is the Incentive Contact template. It should be called in the following format:

{{Incentive Contact
|Incentive/ContName=
|Incentive/ContDept=
|Incentive/ContDiv=
|Incentive/ContAddr=
|Incentive/ContAddr2=
|Incentive/ContPlace=
|Incentive/ContZip=
|Incentive/ContPhone=
|Incentive/ContPhone2=
|Incentive/ContFax=
|Incentive/ContEmail=
|Incentive/ContWebsite=
|Incentive/Cont2Name=
|Incentive/Cont2Dept=
|Incentive/Cont2Div=
|Incentive/Cont2Addr=
|Incentive/Cont2Addr2=
|Incentive/Cont2Place=
|Incentive/Cont2Zip=
|Incentive/Cont2Phone=
|Incentive/Cont2Phone2=
|Incentive/Cont2Fax=
|Incentive/Cont2Email=
|Incentive/Cont2Website=
|Incentive/Cont3Name=
|Incentive/Cont3Dept=
|Incentive/Cont3Div=
|Incentive/Cont3Addr=
|Incentive/Cont3Addr2=
|Incentive/Cont3Place=
|Incentive/Cont3Zip=
|Incentive/Cont3Phone=
|Incentive/Cont3Phone2=
|Incentive/Cont3Fax=
|Incentive/Cont3Email=
|Incentive/Cont3Website=
|Incentive/Cont4Name=
|Incentive/Cont4Dept=
|Incentive/Cont4Div=
|Incentive/Cont4Addr=
|Incentive/Cont4Addr2=
|Incentive/Cont4Place=
|Incentive/Cont4Zip=
|Incentive/Cont4Phone=
|Incentive/Cont4Phone2=
|Incentive/Cont4Fax=
|Incentive/Cont4Email=
|Incentive/Cont4Website=
}}

Edit the page to see the template text.