Template:IfParamDisplay: Difference between revisions
From Shin Megami Tensei IMAGINE Wiki
Jump to navigationJump to search
imported>AnnanFay mNo edit summary |
imported>AnnanFay mNo edit summary |
||
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="{{lc:{{{1}}}}}">{{{1}}}: {{{2}}}</div>|}} | </noinclude>{{#if:{{{2|}}}|<div class="{{lc:{{{1}}}}}">{{{1}}}: {{{2}}}</div>|}} |
Latest revision as of 15: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>