Difference between revisions of "Template:Template sandbox"

From Unofficial Fantasica Wiki
Jump to: navigation, search
Line 5: Line 5:
 
www.fantasicawiki.com/wiki/Sales_Template_4
 
www.fantasicawiki.com/wiki/Sales_Template_4
  
 
+
<pre>
 
Usage: <nowiki>{{Sales_4|CardName|Level|Ascension|Price|Notes}}</nowiki></noinclude><includeonly>
 
Usage: <nowiki>{{Sales_4|CardName|Level|Ascension|Price|Notes}}</nowiki></noinclude><includeonly>
 
{{#get_db_data:
 
{{#get_db_data:
Line 14: Line 14:
 
|data=name=`name`,rarity=`rarity`
 
|data=name=`name`,rarity=`rarity`
 
}}
 
}}
{{#ifexpr: {{#ifeq: {{{5}}}|RESERVED|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{#ifexpr: {{#ifeq: {{{5}}}|RESERVED|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 20: Line 22:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#ifeq: {{{5}}}|Reserved|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}}}
 +
|{{#ifexpr: {{#ifeq: {{{5}}}|Reserved|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 26: Line 31:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#ifeq: {{{5}}}|reserved|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}}}
 +
|{{#ifexpr: {{#ifeq: {{{5}}}|reserved|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 32: Line 40:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#ifeq: {{{5}}}|SOLD|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}}}
 +
|{{#ifexpr: {{#ifeq: {{{5}}}|SOLD|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 38: Line 49:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#ifeq: {{{5}}}|Sold|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}}}
 +
|{{#ifexpr: {{#ifeq: {{{5}}}|Sold|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 44: Line 58:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#ifeq: {{{5}}}|sold|1|0}}=1 | {{!}} {{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}}}
 +
|{{#ifexpr: {{#ifeq: {{{5}}}|sold|1|0}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid red; background: #f9bbbb"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 50: Line 67:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}  
 
{{!}} colspan="3" {{!}} {{{5}}}  
{{!}}} | {{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40 | {{!}} {{{!}} style="border:2px solid green; background: #e3efe3"
+
{{!}}}
 +
|{{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40|
 +
{{!}}
 +
{{{!}} style="border:2px solid green; background: #e3efe3"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 56: Line 76:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}
 
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}} | {{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20 | {{!}} {{{!}} style="border:2px solid green; background: #e3efe3"
+
{{!}}}
 +
|{{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20|
 +
{{!}}
 +
{{{!}} style="border:2px solid green; background: #e3efe3"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 62: Line 85:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}
 
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}} | {{#ifexpr: {{{2}}}={{#external_value:rarity}}*20 | {{!}} {{{!}} style="border:2px solid blue; background: #e3e5ef"
+
{{!}}}
 +
|{{#ifexpr: {{{2}}}={{#external_value:rarity}}*20|
 +
{{!}}
 +
{{{!}} style="border:2px solid blue; background: #e3e5ef"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 68: Line 94:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}
 
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}} | {{#ifexpr: {{{2}}}>1 and {{{2}}}<{{#external_value:rarity}}*20 | {{!}} {{{!}} style="border:2px solid purple; background: #ede3ef"
+
{{!}}}
 +
|{{#ifexpr: {{{2}}}>1 and {{{2}}}<{{#external_value:rarity}}*20|
 +
{{!}}
 +
{{{!}} style="border:2px solid purple; background: #ede3ef"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 74: Line 103:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}
 
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}} | {{#ifexpr: {{{2}}}=1 | {{!}} {{{!}} style="border:2px solid black; background: #e0e0e0"
+
{{!}}}
 +
|{{#ifexpr: {{{2}}}=1|
 +
{{!}}
 +
{{{!}} style="border:2px solid black; background: #e0e0e0"
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
 
{{!}}-
 
{{!}}-
Line 80: Line 112:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="3" {{!}} {{{5}}}
 
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}} | }} }} }} }} }} }} }} }} }} }} }} {{#clear_external_data:}}</includeonly>
+
{{!}}}
 +
| }} }} }} }} }} }} }} }} }} }} }} {{#clear_external_data:}}</includeonly>

Revision as of 22:46, 10 October 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}}</noinclude><includeonly>
{{#get_db_data:
db=fantawiki
|from=units
|where=name='{{{1}}}'
|limit=1
|data=name=`name`,rarity=`rarity`
}}
{{#ifexpr: {{#ifeq: {{{5}}}|RESERVED|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#ifeq: {{{5}}}|Reserved|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#ifeq: {{{5}}}|reserved|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#ifeq: {{{5}}}|SOLD|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#ifeq: {{{5}}}|Sold|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#ifeq: {{{5}}}|sold|1|0}}=1|
{{!}}
{{{!}} style="border:2px solid red; background: #f9bbbb"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}} 
{{!}}}
|{{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40|
{{!}}
{{{!}} style="border:2px solid green; background: #e3efe3"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}}
|{{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20|
{{!}}
{{{!}} style="border:2px solid green; background: #e3efe3"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}}
|{{#ifexpr: {{{2}}}={{#external_value:rarity}}*20|
{{!}}
{{{!}} style="border:2px solid blue; background: #e3e5ef"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}}
|{{#ifexpr: {{{2}}}>1 and {{{2}}}<{{#external_value:rarity}}*20|
{{!}}
{{{!}} style="border:2px solid purple; background: #ede3ef"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}}
|{{#ifexpr: {{{2}}}=1|
{{!}}
{{{!}} style="border:2px solid black; background: #e0e0e0"
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
{{!}}-
{{!}} Lv{{{2}}} {{!!}} {{{3}}} {{!!}} {{{4}}}
{{!}}-
{{!}} colspan="3" {{!}} {{{5}}}
{{!}}}
| }} }} }} }} }} }} }} }} }} }} }} {{#clear_external_data:}}</includeonly>
Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox