Difference between revisions of "Template:Template sandbox"
From Unofficial Fantasica Wiki
(Testing sales temp 6) |
|||
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_6 |
− | Usage: <nowiki>{{ | + | Usage: <nowiki>{{Sales_6|CardName|Level1|Price1|Level2|Price2|Notes}}</nowiki></noinclude><includeonly>{{#get_db_data: |
db=fantawiki | db=fantawiki | ||
− | |from= | + | |from=units |
|where=name='{{{1}}}' | |where=name='{{{1}}}' | ||
|limit=1 | |limit=1 | ||
|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; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:unknown_card.jpg{{!}}link={{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|RESERVED|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|RESERVED|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|Reserved|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|Reserved|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|reserved|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|reserved|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|SOLD|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|SOLD|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|Sold|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|Sold|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|sold|1|0}}=1| {{!}} | {{!}}} | {{#ifexpr: {{#ifeq:{{{4}}}|sold|1|0}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid red; background: #f9bbbb" | + | {{{!}} style="border:2px solid red; background: #f9bbbb; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40| {{!}} | {{!}}} | {{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40| {{!}} | ||
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid limegreen; background: #e3efe3; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20| {{!}} | {{!}}} | {{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20| {{!}} | ||
− | {{{!}} style="border:2px solid | + | {{{!}} style="border:2px solid limegreen; background: #e3efe3; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{{2}}}={{#external_value:rarity}}*20| {{!}} | {{!}}} | {{#ifexpr: {{{2}}}={{#external_value:rarity}}*20| {{!}} | ||
− | {{{!}} style="border:2px solid blue; background: #e3e5ef" | + | {{{!}} style="border:2px solid blue; background: #e3e5ef; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{{2}}}>1 and {{{2|}}}<{{#external_value:rarity}}*20| {{!}} | {{!}}} | {{#ifexpr: {{{2}}}>1 and {{{2|}}}<{{#external_value:rarity}}*20| {{!}} | ||
− | {{{!}} style="border:2px solid purple; background: #ede3ef" | + | {{{!}} style="border:2px solid purple; background: #ede3ef; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | {{#ifexpr: {{{2}}}=1| {{!}} | {{!}}} | {{#ifexpr: {{{2}}}=1| {{!}} | ||
− | {{{!}} style="border:2px solid black; background: #e0e0e0" | + | {{{!}} style="border:2px solid black; background: #e0e0e0; width:316px" |
− | {{!}} colspan=" | + | {{!}} colspan="4" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}150px]] |
{{!}}- | {{!}}- | ||
− | + | {{!}} Lv{{{2}}} {{!!}} '''Price:{{{3}}}''' {{!!}} Lv{{{4}}} {{!!}} '''Price:{{{5}}}''' | |
{{!}}- | {{!}}- | ||
− | {{!}} | + | {{!}} colspan="4"{{!}} {{{6}}} |
{{!}}} | }} }} }} }} }} }} }} }} }} }} }} }}{{#clear_external_data:}}</includeonly> | {{!}}} | }} }} }} }} }} }} }} }} }} }} }} }}{{#clear_external_data:}}</includeonly> |
Revision as of 21:46, 9 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_6
Usage: {{Sales_6|CardName|Level1|Price1|Level2|Price2|Notes}}