Difference between revisions of "Template:IfParamDisplay"

From Shin Megami Tensei IMAGINE Wiki
Jump to: navigation, search
(Helper template)
 
m
Line 3: Line 3:
 
Output is:
 
Output is:
 
     <div class="label">Label: Value</div>
 
     <div class="label">Label: Value</div>
</noinclude>{{#if:{{{2|}}}|<div class="{{lowercase:{{{1}}}}}">{{{1}}}: {{{2}}}</div>|}}
+
</noinclude>{{#if:{{{2}}}|<div class="{{lc:{{{1}}}}}">{{{1}}}: {{{2}}}</div>|}}

Revision as of 10:18, 30 September 2012

Takes a two parameters, a label and value. If the value is non-empty then it displays as below, otherwise it does nothing. Output is:

   <div class="label">Label: Value</div>
{{{1}}}: {{{2}}}
Personal tools