Difference between revisions of "Template:Card table"
(above_image) |
(wrapper for the two main columns) |
||
Line 23: | Line 23: | ||
}} | }} | ||
{{ #if: {{{above<includeonly>|</includeonly>}}} | <div class="above">{{{above}}}</div> }} | {{ #if: {{{above<includeonly>|</includeonly>}}} | <div class="above">{{{above}}}</div> }} | ||
− | <div class="imagecolumn" data-max_width="{{ #var: $ct_max_width }}">{{ #if: {{{image_raw|}}} | + | <div class="card-table-columns"> |
+ | <div class="imagecolumn" data-max_width="{{ #var: $ct_max_width }}">{{ #if: {{{image_raw|}}} | ||
| {{{image_raw}}} | | {{{image_raw}}} | ||
| {{ #if: {{{above_image<includeonly>|</includeonly>}}} | <div class="aboveimage"> | | {{ #if: {{{above_image<includeonly>|</includeonly>}}} | <div class="aboveimage"> | ||
Line 31: | Line 32: | ||
}}{{ #if: {{{below_image<includeonly>|</includeonly>}}} | <div class="belowimage hlist"> | }}{{ #if: {{{below_image<includeonly>|</includeonly>}}} | <div class="belowimage hlist"> | ||
{{{below_image}}}</div> }} | {{{below_image}}}</div> }} | ||
− | + | </div> | |
− | + | <div class="infocolumn"> | |
− | + | <table class="innertable"> | |
{{Infobox/row | {{Infobox/row | ||
|header={{{header1|}}} |headerstyle={{{headerstyle|}}}{{{headerstyle1|}}} | |header={{{header1|}}} |headerstyle={{{headerstyle|}}}{{{headerstyle1|}}} | ||
Line 112: | Line 113: | ||
</table> | </table> | ||
</div> | </div> | ||
+ | </div> | ||
{{ #if: {{{below<includeonly>|</includeonly>}}} | <div class="below {{{belowclass|}}}">{{{below}}}</div> }} | {{ #if: {{{below<includeonly>|</includeonly>}}} | <div class="below {{{belowclass|}}}">{{{below}}}</div> }} | ||
</div>{{<!-- sortkey when desired --> | </div>{{<!-- sortkey when desired --> |
Revision as of 22:55, 20 September 2016
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}}} }}