Template:Card text box: Difference between revisions

Jump to navigation Jump to search
Make info boxes at least 270px wide
(make code more readable, add divider line between text and flavour)
(Make info boxes at least 270px wide)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{
   #vardefine: bordercolor | {{Type Color|type= {{{archetype|}}}_border}}
   #vardefine: bordercolor | {{Type Color|type= {{{archetype|}}}_border}}
}}<table style="text-align:center;border:2px solid {{#var: bordercolor}}; background-color:{{Type Color|type= {{{archetype|}}}_background}}; border:2px outset {{Type Color|type= {{{archetype|}}}_background}}; border-radius:8px; padding:3px;margin:0 0 15px auto">
}}<table style="text-align:center;border:2px solid {{#var: bordercolor}}; 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>
   <tr>
     <td>{{{text|}}}</td>
     <td><div style="min-width:270px">{{{text|}}}</div></td>
   </tr>
   </tr>
   {{#if:{{{flavour|}}}|
   {{#if:{{{flavour|}}}|
Line 17: Line 17:
|archetype=Overlord
|archetype=Overlord
|text=This is an Overlord example
|text=This is an Overlord example
|flavour=This example also has some flavour text
}}
}}
{{Card text box
{{Card text box

Navigation menu