Difference between revisions of "Template:Card"

From Dvorak - A Blank-Card Game
Jump to navigationJump to search
Line 10: Line 10:
<div style="{{ #if:  {{{longtitle|}}} | height:170px; | height:200px; }}
<div style="{{ #if:  {{{longtitle|}}} | height:170px; | height:200px; }}
  border-width:1px 0px 0px 0px; border-style:solid; border-color:#000; padding:8px">{{{text|Card text.}}}</div>
  border-width:1px 0px 0px 0px; border-style:solid; border-color:#000; padding:8px">{{{text|Card text.}}}</div>
<div style="background:#eee; border-width:1px 0px 0px 0px; border-style:solid; border-color:#000; text-align:right; font-size:0.7em;">Card by {{{creator|creator}}}</div>
{{ #if:  {{{creator|}}} | <div style="background:#eee; border-width:1px 0px 0px 0px; border-style:solid; border-color:#000; text-align:right; font-size:0.7em;">Card by {{{creator|creator}}}</div> }}
</div>
</div>
<noinclude>
==Usage==
{| style="background: transparent;"
|<pre>{{Card
| title =
| longtitle =
| type =
| bgcolor =
| cornervalue =
| creator =
}}</pre>
'''title''' is the title of the card.
'''longtitle''' can be set to 1 if the card title takes up more than two lines, and can be omitted otherwise.
'''type''' is the card type - usually just "Action" or "Thing", but if you've got a more complex deck you can use "Thing - Crew", "Interrupt" or whatever you're using.
'''bgcolor''' is the colour of the card header background, as a hex value (eg. "f00" for red.) If omitted, it defaults to grey.
'''cornervalue''' is the value that will be printed in a box in the top right of the card, if one is required. If omitted, no box is printed on the card.
'''creator''' is the player who created the card, which is given in a box at the bottom of the card. If omitted, no box is printed.
</noinclude>

Revision as of 16:20, 30 January 2007

Card Title
Type
Card text.


Usage

{{Card
| title =
| longtitle =
| type =
| bgcolor =
| cornervalue =
| creator =
}}

title is the title of the card.

longtitle can be set to 1 if the card title takes up more than two lines, and can be omitted otherwise.

type is the card type - usually just "Action" or "Thing", but if you've got a more complex deck you can use "Thing - Crew", "Interrupt" or whatever you're using.

bgcolor is the colour of the card header background, as a hex value (eg. "f00" for red.) If omitted, it defaults to grey.

cornervalue is the value that will be printed in a box in the top right of the card, if one is required. If omitted, no box is printed on the card.

creator is the player who created the card, which is given in a box at the bottom of the card. If omitted, no box is printed.