Template:Card: Difference between revisions
More actions
No edit summary |
No edit summary |
||
| Line 98: | Line 98: | ||
{{!}} align="center" colspan="4" {{!}} | {{!}} align="center" colspan="4" {{!}} | ||
{{{!}} align="left" width="100%" style="{{round}}; background: #{{{{{cardtype|Mastermind}}} colour|e1e1e1}}; border: 1px solid #{{{{{cardtype|Mastermind}}} border colour|d2d2d2}};" | {{{!}} align="left" width="100%" style="{{round}}; background: #{{{{{cardtype|Mastermind}}} colour|e1e1e1}}; border: 1px solid #{{{{{cardtype|Mastermind}}} border colour|d2d2d2}};" | ||
{{!}}{{ | {{!}}<div style="clear:both; margin: 0.3em auto; text-align:center; {{#if:{{{width|}}}|width:{{{width}}};}} {{#if:{{{header|}}}| border: 1px solid #000;}}"><!-- | ||
|tabwidth = | |||
|tab1 | -->{{#if:{{{header|}}}| | ||
| | <div style="background-color:#FFF; border:1px solid #000; margin:2px; white-space: nowrap;"> | ||
| | {{{header}}} | ||
| | </div> | ||
}}<!-- | |||
-->{{#vardefine:width|{{#if:{{{tabwidth|}}}|style="width: {{{tabwidth}}}" }}}}<!-- | |||
--><div class="tabcontainer" style="margin:0 3px; padding:0;"><!-- | |||
--><span class="tab {{#ifeq:{{{default|1}}}|1|active}}" {{#var:width}}>{{{tab1|JP Text}}}</span><!-- | |||
--><span class="tab {{#ifeq:{{{default}}}|2|active}}" {{#var:width}}>{{{tab2|EN Text}}}</span><!-- | |||
--></div><!-- | |||
--><div class="tabcontents" style="{{round}} background: #{{{{{cardtype|Mastermind}}} background colour|fff}}; border: 1px solid #{{{{{cardtype|Mastermind}}} border colour|d2d2d2}}; clear:both; margin: 2px; padding:10px; {{#if:{{{height|}}}|min-height:{{{height}}}; height:auto !important; height:{{{height}}};}}"><!-- | |||
-->{{Tab/Content|1|{{{default|1}}}|{{{fallback}}}|{{{jptext|''はカードテキストなし''}}}}}<!-- | |||
-->{{Tab/Content|2|{{{default}}}|{{{fallback}}}|{{{entext|''No card text''}}}}}<!-- | |||
--><div style="clear:both;"></div></div> | |||
</div> | |||
{{#tag:css| | |||
.tab { | |||
background-color: #{{ZWheader}}; | |||
background-image:-webkit-linear-gradient(top, #1D679B, #1A4E7D); | |||
background-image: -moz-linear-gradient(top, #1D679B, #1A4E7D); | |||
background-image: -ms-linear-gradient(top, #1D679B, #1A4E7D); | |||
background-image: -o-linear-gradient(top, #1D679B, #1A4E7D); | |||
background-image: linear-gradient(top, #1D679B, #1A4E7D); | |||
border:2px solid #426787; | |||
cursor:pointer; | |||
float:center; | |||
margin:0 1px -2px; | |||
padding:3px; | |||
text-align:center; | |||
white-space:nowrap; | |||
} | |||
.tab:hover { | |||
background-color:#24527c; | |||
background-image:-webkit-linear-gradient(top, #305f89, #17456E); | |||
background-image: -moz-linear-gradient(top, #305f89, #17456E); | |||
background-image: -ms-linear-gradient(top, #305f89, #17456E); | |||
background-image: -o-linear-gradient(top, #305f89, #17456E); | |||
background-image: linear-gradient(top, #305f89, #17456E); | |||
color:#F4F26B; | |||
} | |||
.tab.active { | |||
background-color:#{{ZWbgcolor}} !important; | |||
background-image:-webkit-linear-gradient(top, #1D578B, #17456E); | |||
background-image: -moz-linear-gradient(top, #1D578B, #17456E); | |||
background-image: -ms-linear-gradient(top, #1D578B, #17456E); | |||
background-image: -o-linear-gradient(top, #1D578B, #17456E); | |||
background-image: linear-gradient(top, #1D578B, #17456E); | |||
border-bottom: 2px solid #17456E; | |||
color:#F4F26B; | |||
} | |||
}} | }} | ||
{{!}}} | {{!}}} | ||
Revision as of 15:16, 11 May 2013
| ||||||||
| ||||||||
| ||||||||
| ||||||||
}} | ||||||||
}} | ||||||||
}} | ||||||||
}} | ||||||||
}} | ||||||||
}} | ||||||||
}} | ||||||||
| ||||||||
This template is used to add a character infobox to a page. To add this template to an article copy and paste the code below and then fill in the information for each section.
{{Card
|name = Localised card name in English.
|japanese_name= The card name in Japanese. This is usually written in Katakana.
|romaji_name = The card Japanese name once converted to Romaji
|tmname = The name of the image file
|artist = The name of the artist of the card
|expansion= The expansion in which this card was introduced to the series
|number= The card number, usually found in the bottom left corner of the card
|type= The type of card (Mastermind, Leader, Commoner, Free, Craftman, Mission, Facilities, Other). Make sure you type this correctly as it affects the colouring and formatting of the infobox
|rune= The rune assigned to this card, if applicable
|gender = The gender assigned to this card, if applicable
|camp = The team alignment of this card, if applicable (Third Force 第三勢力)
|links = The links of this card, if applicable
|attack= The attack power (攻撃) of this card, if applicable
|soldiers= The number of soldiers (兵力) assigned to this card, if applicable
|construction= The construction points (建設) of this card, if applicable
|clearpts= The number of points needed to clear this card, applicable to Mission and Facilities cards only
|cleartype= The type of points needed to clear this card (Attack, Soldiers or Construction)
|victorypts= The number of Victory Points this card awards when cleared, applicable to Mission cards only
|facilitypts= The number of points needed to block (阻止) this card, applicable to Facilities cards only
|jptext= Blurb and rule text as printed on the card in Japanese
|entext= Blurb and rule text translated into English as best as possible
}}