Difference between revisions of "Template:Card"
(User page links on card attributions.) |
MagiMaster (talk | contribs) (Adding flavortext field.) |
||
Line 21: | Line 21: | ||
}} | }} | ||
{{ #if: {{{longtext|}}} | font-size:0.8em; }} | {{ #if: {{{longtext|}}} | font-size:0.8em; }} | ||
padding:4px 8px 0px 8px">{{ #if: {{{text|}}} | {{{text}}} }}</div> | padding:4px 8px 0px 8px">{{ #if: {{{text|}}} | {{{text}}} }} {{ #if: {{{flavortext|}}} | <hr/><i>{{{flavortext}}}</i> }}</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 {{ #ifexist: User:{{{creator}}}|[[User:{{{creator}}}|{{{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 {{ #ifexist: User:{{{creator}}}|[[User:{{{creator}}}|{{{creator}}}]]|{{{creator}}}}}</div> }} | ||
</div><noinclude> | </div><noinclude> | ||
Line 36: | Line 36: | ||
| image = | | image = | ||
| imgback = | | imgback = | ||
| flavortext = | |||
| creator = | | creator = | ||
| minicard = | | minicard = | ||
Line 57: | Line 58: | ||
'''imgback''' is the colour to be shown behind the card image, as a hex value. If omitted, it defaults to white. | '''imgback''' is the colour to be shown behind the card image, as a hex value. If omitted, it defaults to white. | ||
'''flavortext''' is the flavor text of the card, if any. It appears below the body text in italics, seperated by a horizontal rule. | |||
'''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. | '''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. |
Revision as of 03:11, 11 March 2007
Usage
{{Card | title = | longtitle = | text = | longtext = | type = | bgcolor = | cornervalue = | image = | imgback = | flavortext = | creator = | minicard = }} title is the title of the card. longtitle can be set to 'true' if the card title takes up more than a line, 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. text is the body text of the card, if any. longtext can be set to 'true' if the card text is too long to fit on a normal card, and can be omitted otherwise. 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. image is the filename of an image for the card, which should be uploaded to the wiki. imgback is the colour to be shown behind the card image, as a hex value. If omitted, it defaults to white. flavortext is the flavor text of the card, if any. It appears below the body text in italics, seperated by a horizontal rule. 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. minicard can be set to 'true' if you want a half-size card for use in example texts. |