Difference between revisions of "Template:Template sandbox"

From Unofficial Fantasica Wiki
Jump to: navigation, search
Line 2: Line 2:
 
DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D
 
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:
+
If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php
www.fantasicawiki.com/wiki/Sales_Template_5
+
  
  
Usage: <nowiki>{{Sales_5|CardName|Level|Artist|Notes|Price}}</nowiki></noinclude><includeonly>{{#get_db_data:
+
 
 +
Usage: <nowiki>{{Team|CardName|Ascension}}</nowiki></noinclude><includeonly>{{#get_db_data:
 
db=fantawiki
 
db=fantawiki
 
|from=units
 
|from=units
 
|where=name='{{{1}}}'
 
|where=name='{{{1}}}'
 
|limit=1
 
|limit=1
|data=name=`name`,rarity=`rarity`
+
|data=name=u1.`name`,fullname=u1.`fullname`,gender=u1.`gender`,rarity=u1.`rarity`,type=u1.`type`,cost=u1.`cost`,speed=u1.`speed`,speednum=u1.`speednum`,range=u1.`range`,land=u1.`land`,air=u1.`air`,sea=u1.`sea`,arena=u1.`arena`,land2=u1.`landlb`,air2=u1.`airlb`,sea2=u1.`sealb`,arenalb=u1.`arenalb`,skill1=u1.`skill1`,skill2=u1.`skill2`,arenaskill=u1.`arenaskill`,source=u1.`source`,evo=u1.`evo`,maxhp=u1.`maxhp`,mlbhp=u1.`mlbhp`,aschp=u1.`aschp`,ascland=u1.`ascland`,ascair=u1.`ascair`,ascsea=u1.`ascsea`,ascrng=u1.`ascrng`,asccost=u1.`asccost`,ascspd=u1.`ascspd`,namemlb=u2.`name`,fullnamemlb=u2.`fullname`,gendermlb=u2.`gender`,raritymlb=u2.`rarity`,typemlb=u2.`type`,costmlb=u2.`cost`,speedmlb=u2.`speed`,speednummlb=u2.`speednum`,rangemlb=u2.`range`,landmlb=u2.`land`,airmlb=u2.`air`,seamlb=u2.`sea`,arenamlb=u2.`arena`,land2mlb=u2.`landlb`,air2mlb=u2.`airlb`,sea2mlb=u2.`sealb`,arenalbmlb=u2.`arenalb`,skill1mlb=u2.`skill1`,skill2mlb=u2.`skill2`,arenaskillmlb=u2.`arenaskill`,sourcemlb=u2.`source`,evomlb=u2.`evo`,maxhpmlb=u2.`maxhp`,mlbhpmlb=u2.`mlbhp`,aschpmlb=u2.`aschp`,asclandmlb=u2.`ascland`,ascairmlb=u2.`ascair`,ascseamlb=u2.`ascsea`,ascrngmlb=u2.`ascrng`,asccostmlb=u2.`asccost`,ascspdmlb=u1.`ascspd`
}}{{#ifexpr: {{#ifexist: File:{{{1}}}_card.jpg|1|0}}=0 | {{!}}
+
}} {{#ifexpr: {{#external_value:rarity}}=10 or {{#external_value:rarity}}=11 |
{{{!}} style="border:2px solid black; background: #e0e0e0"
+
{{!}} colspan="3" {{!}} [[File:unknown_card.jpg{{!}}link={{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!}}} | {{#ifexpr: {{#ifeq:{{{5}}}|RESERVED|1|0}}=1 or {{#ifeq:{{{4}}}|RESERVED|1|0}}=1 or {{#ifeq:{{{5}}}|Reserved|1|0}}=1 or {{#ifeq:{{{4}}}|Reserved|1|0}}=1 or {{#ifeq:{{{5}}}|reserved|1|0}}=1 or {{#ifeq:{{{4}}}|reserved|1|0}}=1 or {{#ifeq:{{{5}}}|SOLD|1|0}}=1 or {{#ifeq:{{{4}}}|SOLD|1|0}}=1 or {{#ifeq:{{{5}}}|Sold|1|0}}=1 or {{#ifeq:{{{4}}}|Sold|1|0}}=1 or {{#ifeq:{{{5}}}|sold|1|0}}=1 or {{#ifeq:{{{4}}}|sold|1|0}}=1| {{!}}
+
{{{!}} style="border:2px solid red; background: #f9bbbb"
+
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!}}} | {{#ifexpr: {{#external_value:rarity}}>9 and {{{2}}}={{#external_value:rarity}}*20+40| {{!}}
+
{{{!}} style="border:2px solid limegreen; background: #e3efe3"
+
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!}}} | {{#ifexpr: {{#external_value:rarity}}<10 and {{{2}}}={{#external_value:rarity}}*20+20| {{!}}
+
{{{!}} style="border:2px solid limegreen; background: #e3efe3"
+
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!}}} | {{#ifexpr: {{{2}}}={{#external_value:rarity}}*20| {{!}}
+
{{{!}} style="border:2px solid blue; background: #e3e5ef"
+
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{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]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
{{!}}-
+
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!}}} | {{#ifexpr: {{{2}}}=1| {{!}}
+
{{{!}} style="border:2px solid black; background: #e0e0e0"
+
{{!}} colspan="3" {{!}} [[File:{{{1}}}_card.jpg{{!}}link={{{1}}}{{!}}220px]]
+
{{!}}-
+
{{!}} style="width:40px"{{!}} Lv{{{2}}} {{!!}} style="width:10px" colspan="2"{{!}} [[:Category:Artist:{{{3}}}{{!}}{{{3}}}]]
+
 
{{!}}-
 
{{!}}-
{{!}} style="width:10px" colspan="2"{{!}} {{{4}}} {{!!}} style="width:40px"{{!}} '''{{{5}}}'''
+
{{!!}} {{Icon|{{{1}}}_mlb}}}}<br/>[[{{#external_value:name}}]]
{{!}}} | }} }} }} }} }} }} }}{{#clear_external_data:}}</includeonly>
+
{{!!}} {{#external_value:rarity}}
 +
{{!!}} {{#external_value:type}}
 +
{{!!}} {{{2}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#ifexpr: {{#external_value:costmlb}}=30 or {{#external_value:costmlb}}=40 | {{#expr:{{#external_value:costmlb}}-({{{2}}}*2)}} | {{#expr:{{#external_value:costmlb}}-({{{2}}}*1)}}}} </span> | {{#external_value:costmlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#external_value:speedmlb}}+ </span>| {{#external_value:speedmlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#expr:{{#external_value:rangemlb}}+({{{2}}}*5)}} </span> | {{#external_value:rangemlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:land2mlb}}+({{{2}}}/20*{{#external_value:land2mlb}})}}}} </span> | {{formatnum:{{#external_value:land2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:air2mlb}}+({{{2}}}/20*{{#external_value:air2mlb}})}}}} </span> | {{formatnum:{{#external_value:air2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:sea2mlb}}+({{{2}}}/20*{{#external_value:sea2mlb}})}}}} </span> | {{formatnum:{{#external_value:sea2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}}
 +
{{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}} | {{!}}-
 +
{{!!}} {{Icon|{{{1}}}_mlb}}}}<br/>[[{{#external_value:name}}]]
 +
{{!!}} {{#external_value:rarity}}
 +
{{!!}} {{#external_value:type}}
 +
{{!!}} {{{2}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#ifexpr: {{#external_value:costmlb}}=30 or {{#external_value:costmlb}}=40 | {{#expr:{{#external_value:costmlb}}-({{{2}}}*2)}} | {{#expr:{{#external_value:costmlb}}-({{{2}}}*1)}}}} </span> | {{#external_value:costmlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#external_value:speedmlb}}+ </span>| {{#external_value:speedmlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#expr:{{#external_value:rangemlb}}+({{{2}}}*5)}} </span> | {{#external_value:rangemlb}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:land2mlb}}+({{{2}}}/20*{{#external_value:land2mlb}})}}}} </span> | {{formatnum:{{#external_value:land2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:air2mlb}}+({{{2}}}/20*{{#external_value:air2mlb}})}}}} </span> | {{formatnum:{{#external_value:air2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:sea2mlb}}+({{{2}}}/20*{{#external_value:sea2mlb}})}}}} </span> | {{formatnum:{{#external_value:sea2mlb}}}}}}
 +
{{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}}
 +
{{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}}{{#clear_external_data:}}</includeonly>

Revision as of 01:37, 14 November 2018

DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D

If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php


Usage: {{Team|CardName|Ascension}}

Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox