Difference between revisions of "Template:Template sandbox"
From Unofficial Fantasica Wiki
Line 3: | Line 3: | ||
If you're trying to customize this template for yourself, please copy the text from the box here and make changes to your page manually: | If you're trying to customize this template for yourself, please copy the text from the box here and make changes to your page manually: | ||
− | www.fantasicawiki.com/wiki/ | + | www.fantasicawiki.com/wiki/Sales_Template_4 |
− | Usage: <nowiki>{{ | + | Usage: <nowiki>{{Sales_4|CardName|Level|Ascension|Price|Notes}}</nowiki></noinclude><includeonly> |
+ | {{#get_db_data: | ||
db=fantawiki | db=fantawiki | ||
|from=units | |from=units | ||
Line 13: | Line 14: | ||
|data=name=`name`,rarity=`rarity` | |data=name=`name`,rarity=`rarity` | ||
}}{{#ifexpr: {{#ifexist: File:{{{1}}}_card.jpg|1|0}}=0 | {{!}} | }}{{#ifexpr: {{#ifexist: File:{{{1}}}_card.jpg|1|0}}=0 | {{!}} | ||
− | {{{!}} style="border:2px solid black; background: #e0e0e0 | + | {{{!}} style="border:2px solid black; background: #e0e0e0" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:unknown_card.jpg{{!}}link={{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr: {{#ifeq:{{{ | + | {{!}}} | {{#ifexpr: {{#ifeq:{{{5}}} or {{{4}}}|RESERVED or Reserved or reserved or SOLD or Sold or sold|1|0}}=1| {{!}} |
− | {{{!}} style="border:2px solid red; background: #f9bbbb | + | {{{!}} style="border:2px solid red; background: #f9bbbb" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr: {{# | + | {{!}}} | {{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40| {{!}} |
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid limegreen; background: #e3efe3" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr: {{# | + | {{!}}} | {{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20| {{!}} |
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid limegreen; background: #e3efe3" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr | + | {{!}}} | {{#ifexpr: {{{2}}}={{#external_value:rarity}}*20| {{!}} |
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid blue; background: #e3e5ef" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr | + | {{!}}} | {{#ifexpr: {{{2}}}>1 and {{{2|}}}<{{#external_value:rarity}}*20| {{!}} |
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid purple; background: #ede3ef" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | {{#ifexpr: {{ | + | {{!}}} | {{#ifexpr: {{{2}}}=1| {{!}} |
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid black; background: #e0e0e0" |
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}} | |
{{!}}- | {{!}}- | ||
− | {{!}} colspan=" | + | {{!}} colspan="3" {{!}} {{{5}}} |
− | {{!}}} | | + | {{!}}} | }} }} }} }} }} }} }} }} }} }} }} }}{{#clear_external_data:}}</includeonly> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 23:25, 11 November 2018
DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D
If you're trying to customize this template for yourself, please copy the text from the box here and make changes to your page manually: www.fantasicawiki.com/wiki/Sales_Template_4
Usage: {{Sales_4|CardName|Level|Ascension|Price|Notes}}