Difference between revisions of "Template:Incentive Contact"

From Open Energy Information

(Fix display issue when no contact name in contacts 2,3,4)
(Add category check for header)
Line 57: Line 57:
 
</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}}|}}  
{{#ifeq: {{#var:displayit}}|yes|{{#!:[[Category:Incentive with Contacts]]'''Incentive Contact'''
+
{{#ifeq: {{#var:displayit}}|yes|{{#!:[[Category:Incentive with Contacts]]{{#ifcategory:EZFeed Policies|'''Policy Contact'''|'''Incentive Contact'''|}}
 
{| class="wikitable"
 
{| class="wikitable"
 
{{#if:{{{Incentive/ContName|}}}|{{#!:
 
{{#if:{{{Incentive/ContName|}}}|{{#!:

Revision as of 16:51, 18 October 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.