Template:Card text box: Difference between revisions

Jump to navigation Jump to search
make code more readable, add divider line between text and flavour
(add support for flavour text)
(make code more readable, add divider line between text and flavour)
Line 1: Line 1:
<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>
  #vardefine: bordercolor | {{Type Color|type= {{{archetype|}}}_border}}
<noinclude>
}}<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">
  <tr>
    <td>{{{text|}}}</td>
  </tr>
  {{#if:{{{flavour|}}}|
    <tr>
      <td><div style="margin: 10px 0px 10px 0px; padding:0px 0px 0px 0px; width:100%; border:1px solid {{#var: bordercolor}}" ></div></td>
    </tr>
    <tr>
      <td style="font-style:oblique">{{{flavour|}}}</td>
    </tr>
  |}}
</table></includeonly><noinclude>
{{Card text box
{{Card text box
|archetype=Overlord
|archetype=Overlord

Navigation menu