Template:BadgeBox: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
(-Category:Unsorted Templates, +Category:Templates (anything in the general Templates cat is probably unsorted anyway...))
imported>Sekoia (historical)
(adding DPL code to automatically grab the badge's description if the third parameter is omitted)
Line 2: Line 2:
{|  style="background-color: #F4F4FF; border: 1px solid #AAAAFF;"
{|  style="background-color: #F4F4FF; border: 1px solid #AAAAFF;"
| style="vertical-align: top; padding: 0.25em;" | [[Image:{{{1}}}]]
| style="vertical-align: top; padding: 0.25em;" | [[Image:{{{1}}}]]
| style="width:100%; padding: 0.25em;" | '''[[{{{2}}} Badge|{{{2}}}]]'''<br>{{{3}}}
| style="width:100%; padding: 0.25em;" | '''[[{{{2}}} Badge|{{{2}}}]]'''<br>
{{if|test={{{3|}}}|then={{{3}}}|else={{#dpl: title={{{2}}} Badge | includepage=#Description}}}}
|}</div><noinclude>[[Category:Templates]]</noinclude>
|}</div><noinclude>[[Category:Templates]]</noinclude>

Revision as of 09:03, 10 May 2007

[[Image:{{{1}}}]] [[{{{2}}} Badge|{{{2}}}]]

Template:If: "#if{{{1}}}:{{{2}}}" should give {{#if{{{1}}}:{{{2}}}|true|false}} but may not be evaluated due to the expansion depth limit.