Template:Card text box: Difference between revisions

Jump to navigation Jump to search
add support for flavour text
(align text boxes right. Looks better on cards without much text.)
(add support for flavour text)
Line 1: Line 1:
<includeonly><table style="text-align:center;border:2px solid {{Type Color|type={{{archetype|}}}_border}}; background-color:{{Type Color|type={{{archetype|}}}_background}}; border:2px outset {{Type Color|type={{{archetype|}}}_outset}}; border-radius:8px; padding:3px;margin:0 0 15px auto"><tr><td>{{{text|}}}<td/><tr/></table></includeonly>
<includeonly>
<table style="text-align:center;border:2px solid {{Type Color|type={{{archetype|}}}_border}}; background-color:{{Type Color|type={{{archetype|}}}_background}}; border:2px outset {{Type Color|type={{{archetype|}}}_outset}}; border-radius:8px; padding:3px;margin:0 0 15px auto"><tr><td>{{{text|}}}</td></tr>{{#if:{{{flavour|}}}|<tr><td style="font-style:oblique">{{{flavour|}}}</td></tr>|}}</table></includeonly>
<noinclude>
<noinclude>
{{Card text box
{{Card text box
Line 12: Line 13:
|archetype=Mage
|archetype=Mage
|text=This is a Mage example
|text=This is a Mage example
|flavour=This example also has some flavour text
}}
}}
{{Card text box
{{Card text box
Line 20: Line 22:
|archetype=Scout
|archetype=Scout
|text=This is a Scout example
|text=This is a Scout example
|flavour=This example also has some flavour text
}}
}}
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Navigation menu