Template:PokémoncardInfobox: Difference between revisions

+imagesize parameter
No edit summary
(+imagesize parameter)
Line 11: Line 11:
{| style="margin:auto; background: #{{tcg {{{type2|{{{type|colorless}}}}}} color {{#if: {{{type2|}}}||{{#switch: {{{class|{{#ifeq: {{{level|0}}}|ex|ex|None}}}}}|Rocket|Rocketex|Aqua|Magma|AquaEX|MagmaEX|Galactic|Plasma|PlasmaEX|Dark=dark|Light=light}}}}}}; width: 100%; {{roundy|1em}}"
{| style="margin:auto; background: #{{tcg {{{type2|{{{type|colorless}}}}}} color {{#if: {{{type2|}}}||{{#switch: {{{class|{{#ifeq: {{{level|0}}}|ex|ex|None}}}}}|Rocket|Rocketex|Aqua|Magma|AquaEX|MagmaEX|Galactic|Plasma|PlasmaEX|Dark=dark|Light=light}}}}}}; width: 100%; {{roundy|1em}}"
|  
|  
| style="background: #FFFFFF; width: {{#switch:{{{class|}}}|BREAK=250|200}}px; {{roundy|1em}} {{#switch: {{{retro|no}}}|Yes|yes=border: 4px solid #FFD700;}}" | {{#if: {{{image |}}}| |Please upload an image of this card. <includeonly>[[Category:Pokémon cards in need of images]]</includeonly>}}<span style="{{#if: {{{image|}}}| |display: none}}">[[Image:{{#switch: {{#expr: {{#time: G}} mod {{{reprints|1}}}}}|0={{{image}}}|1={{{reprint1}}}|2={{{reprint2}}}|3={{{reprint3}}}|4={{{reprint4}}}|5={{{reprint5}}}|6={{{reprint6}}}|7={{{reprint7}}}|8={{{reprint8}}}|9={{{reprint9}}}|10={{{reprint10}}}|11={{{reprint11}}}|12={{{reprint12}}}|13={{{reprint13}}}|14={{{reprint14}}}|15={{{reprint15}}}}}|{{#switch:{{{class|}}}|BREAK=230|180}}px]]</span><br><small>''{{#switch: {{#expr: {{#time: G}} mod {{{reprints|1}}}}}|0={{{caption|This card has not been uploaded.}}}|1={{{recaption1}}}|2={{{recaption2}}}|3={{{recaption3}}}|4={{{recaption4}}}|5={{{recaption5}}}|6={{{recaption6}}}|7={{{recaption7}}}|8={{{recaption8}}}|9={{{recaption9}}}|10={{{recaption10}}}|11={{{recaption11}}}|12={{{recaption12}}}|13={{{recaption13}}}|14={{{recaption14}}}|15={{{recaption15}}}}}''</small>
| style="background: #FFFFFF; width: {{#switch:{{{class|}}}|BREAK=250|200}}px; {{roundy|1em}} {{#switch: {{{retro|no}}}|Yes|yes=border: 4px solid #FFD700;}}" | {{#if: {{{image |}}}| |Please upload an image of this card. <includeonly>[[Category:Pokémon cards in need of images]]</includeonly>}}<span style="{{#if: {{{image|}}}| |display: none}}">[[Image:{{#switch: {{#expr: {{#time: G}} mod {{{reprints|1}}}}}|0={{{image}}}|1={{{reprint1}}}|2={{{reprint2}}}|3={{{reprint3}}}|4={{{reprint4}}}|5={{{reprint5}}}|6={{{reprint6}}}|7={{{reprint7}}}|8={{{reprint8}}}|9={{{reprint9}}}|10={{{reprint10}}}|11={{{reprint11}}}|12={{{reprint12}}}|13={{{reprint13}}}|14={{{reprint14}}}|15={{{reprint15}}}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|{{#switch:{{{class|}}}|BREAK=230|180}}}}px]]</span><br><small>''{{#switch: {{#expr: {{#time: G}} mod {{{reprints|1}}}}}|0={{{caption|This card has not been uploaded.}}}|1={{{recaption1}}}|2={{{recaption2}}}|3={{{recaption3}}}|4={{{recaption4}}}|5={{{recaption5}}}|6={{{recaption6}}}|7={{{recaption7}}}|8={{{recaption8}}}|9={{{recaption9}}}|10={{{recaption10}}}|11={{{recaption11}}}|12={{{recaption12}}}|13={{{recaption13}}}|14={{{recaption14}}}|15={{{recaption15}}}}}''</small>
|  
|  
|-
|-