Difference between revisions of "Template:Card table"
(Adding a classed span around the main image) |
(Distinguish from the image itself) |
||
Line 27: | Line 27: | ||
| {{{image_raw}}} | | {{{image_raw}}} | ||
| {{ #if: {{{above_image<includeonly>|</includeonly>}}} | <div class="aboveimage"> | | {{ #if: {{{above_image<includeonly>|</includeonly>}}} | <div class="aboveimage"> | ||
− | {{{above_image}}}</div> }}<span class="cardtable-main_image">[[File:{{ #var: $ct_img }}|link=File:{{ #var: $ct_img }}|{{ #var: $ct_width }}px]]</span>{{ #if: {{{image_right|}}} | + | {{{above_image}}}</div> }}<span class="cardtable-main_image-wrapper">[[File:{{ #var: $ct_img }}|link=File:{{ #var: $ct_img }}|{{ #var: $ct_width }}px]]</span>{{ #if: {{{image_right|}}} |
| [[File:{{ #var: $ct_img_right }}|link=File:{{ #var: $ct_img_right }}|{{ #var: $ct_width_right }}px]] | | [[File:{{ #var: $ct_img_right }}|link=File:{{ #var: $ct_img_right }}|{{ #var: $ct_width_right }}px]] | ||
}} | }} |
Revision as of 15:35, 24 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}}} }}