Difference between revisions of "Template:Card table"
(Convert to div a la Template:Card table/sandbox.) |
(Changing the name card-div back to card-table) |
||
Line 2: | Line 2: | ||
#if: {{{header16|}}}{{{headerstyle16|}}}{{{label16|}}}{{{labelstyle16|}}}{{{data16|}}}{{{datastyle16|}}}{{{class16|}}}{{{rowclass16|}}} | #if: {{{header16|}}}{{{headerstyle16|}}}{{{label16|}}}{{{labelstyle16|}}}{{{data16|}}}{{{datastyle16|}}}{{{class16|}}}{{{rowclass16|}}} | ||
| <div class="error">Error: too many rows!</div>[[Category:Card table transclusions with too many rows]] | | <div class="error">Error: too many rows!</div>[[Category:Card table transclusions with too many rows]] | ||
− | }}<div class="card- | + | }}<div class="card-table {{ #if: {{{bodyclass|}}} | {{{bodyclass}}} | blank-card }}" style="{{{bodystyle|}}}"> |
{{ #if: {{{title<includeonly>|</includeonly>}}} | | {{ #if: {{{title<includeonly>|</includeonly>}}} | | ||
<div class="heading {{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</div> | <div class="heading {{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</div> |
Revision as of 01:19, 23 May 2013
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}}} }}