Difference between revisions of "Template:Card table"
Dinoguy1000 (talk | contribs) (add an image_raw override for image (right now, it overrides both image and image_right, though maybe we also want an image_right_raw override? meh, we'll cross that bridge when (if) we come to it)) |
(<includeonly>|</includeonly> on label1 and data1) |
||
Line 35: | Line 35: | ||
{{Infobox/row | {{Infobox/row | ||
|header={{{header1|}}} |headerstyle={{{headerstyle|}}}{{{headerstyle1|}}} | |header={{{header1|}}} |headerstyle={{{headerstyle|}}}{{{headerstyle1|}}} | ||
− | |label={{{label1|}}} |labelstyle={{{labelstyle|}}} {{{labelstyle1|}}} | + | |label={{{label1<includeonly>|</includeonly>}}} |labelstyle={{{labelstyle|}}} {{{labelstyle1|}}} |
− | |data={{{data1|}}} |datastyle={{{datastyle|}}} {{{datastyle1|}}} | + | |data={{{data1<includeonly>|</includeonly>}}} |datastyle={{{datastyle|}}} {{{datastyle1|}}} |
|class={{{class1|}}} |rowclass={{{rowclass1|}}} | |class={{{class1|}}} |rowclass={{{rowclass1|}}} | ||
}}{{Infobox/row | }}{{Infobox/row |
Revision as of 21:56, 22 March 2013
{{{title}}} | |
---|---|
{{{below_image}}} |
|
This template uses Lua: |
{{Card table}} is a metatemplate used to create card table templates.
Usage
Example
{{Card table | title = {{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} | image = {{ #if: {{{image|}}} | {{{image}}} | Back-EN.png }} | label1 = [[Attribute]] | data1 = [[{{uc:{{{attribute}}}}}]] [[File:{{uc:{{{attribute}}}}}.svg|25px|alt=]] | label2 = [[Level]] | data2 = {{{level}}} {{Repeat|[[File:CG Star.svg|18px|alt=]]|{{{level}}}}} | label3 = [[Type|Type(s)]] | data3 = {{Card table/types|{{{types}}}|{{{effect_types|}}}|linked}} | label4 = [[ATK]]/[[DEF]] | data4 = {{{atk}}}/{{{def}}} | data5 = <div class="lore">{{{lore}}}</div> | label6 = Effect types | data6 = {{{effect types|}}} | label7 = Status | data7 = {{{status}}} }}