Template:Card text box: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(align text boxes right. Looks better on cards without much text.)
(Make info boxes at least 270px wide)
 
(9 intermediate revisions by the same user not shown)
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>{{
<noinclude>
  #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|}}}_outset}}; border-radius:8px; padding:3px;margin:0 0 15px auto">
  <tr>
    <td><div style="min-width:270px">{{{text|}}}</div></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
|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
Line 12: Line 26:
|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 35:
|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>

Latest revision as of 13:20, 22 April 2017

This is an Overlord example
This example also has some flavour text
This is a Healer example
This is a Mage example
This example also has some flavour text
This is a Warrior example
This is a Scout example
This example also has some flavour text
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template creates a box intended to show the text of cards and, if available, the flavour text of a card in cursive.
Syntax
{{Card text box |archetype=<type> |text=<text> |flavour=<flavour>}}
Allowed <type> entries
  • Healer
  • Mage
  • Warrior
  • Scout
  • Overlord