Difference between revisions of "Template:Template sandbox"

From Unofficial Fantasica Wiki
Jump to: navigation, search
(Still in progress)
Line 1: Line 1:
{{Infobox
+
<noinclude>
|title = {{{fullname|{{{name|Paris}}}}}}
+
DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D
|data1 =
+
 
{{{!}} style="width:100%;"
+
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
{{!}} {{Icon|{{{name|Paris}}}}}<br/>{{{{{rarity|6}}}*}}
+
 
{{!!}} {{#ifexist: Image:{{{name|Paris}}}.gif | [[Image:{{{name|Paris}}}.gif]] }}
+
 
{{!!}} {{Album|{{{name|Paris}}}|{{{rarity|6}}}}}
+
<pre>
{{!}}}
+
 
|data2 =
+
 
{{{!}} style="width:100%;"
+
{{#ifeq: {{#external_value:rarity}}| 12 | [[Image:{{{1}}}_card.jpg|375px|link={{{1}}}]] |  
{{!}}-
+
{{#ifeq: {{#external_value:rarity}}| 11 | [[Image:{{{1}}}_card.jpg|350px|link={{{1}}}]] |  
{{!}} [[Image:{{{type|Melee}}}_icon.png|16px]] {{{type|Melee}}} {{!!}} {{{range|?}}} Range {{!!}} {{{speed|?}}} Speed
+
{{#ifeq: {{#external_value:rarity}}| 10 | [[Image:{{{1}}}_card.jpg|325px|link={{{1}}}]] |  
{{!}}-
+
{{#ifeq: {{#external_value:rarity}}| 9 | [[Image:{{{1}}}_card.jpg|300px|link={{{1}}}]] |  
{{!}} {{{cost|?}}} Cost
+
{{#ifeq: {{#external_value:rarity}}| 8 | [[Image:{{{1}}}_card.jpg|275px|link={{{1}}}]] |  
{{!}} colspan="2" {{!}} {{{skill|''no skill''}}}
+
{{#ifeq: {{#external_value:rarity}}| 7 | [[Image:{{{1}}}_card.jpg|250px|link={{{1}}}]] |  
{{!}}-
+
{{#ifeq: {{#external_value:rarity}}| 6 | [[Image:{{{1}}}_card.jpg|225px|link={{{1}}}]] |  
{{!}}}
+
{{#ifeq: {{#external_value:rarity}}| 5 | [[Image:{{{1}}}_card.jpg|200px|link={{{1}}}]] |  
|data3 =
+
{{#ifeq: {{#external_value:rarity}}| 4 | [[Image:{{{1}}}_card.jpg|175px|link={{{1}}}]] |  
{{{!}} style="width:100%;"
+
{{#ifeq: {{#external_value:rarity}}| 3 | [[Image:{{{1}}}_card.jpg|150px|link={{{1}}}]] |  
{{!}}-
+
{{#ifeq: {{#external_value:rarity}}| 2 | [[Image:{{{1}}}_card.jpg|125px|link={{{1}}}]] |  
! Lvl !! [[Image:Ground_icon.png|16px]] !! [[Image:Air_icon.png|16px]] !! [[Image:Sea_icon.png|16px]] !! Total !! Arena !! Battle
+
{{#ifeq: {{#external_value:rarity}}| 1 | [[Image:{{{1}}}_card.jpg|100px|link={{{1}}}]] | }} }} }} }} }} }} }} }} }} }} }} }} {{#clear_external_data:}}</includeonly>
{{!}}-
+
 
{{!}} {{#expr: {{{rarity|6}}}*20 }} {{!!}} {{{ground|???}}} {{!!}} {{{air|???}}} {{!!}} {{{sea|???}}} {{!!}} {{{total|???}}} {{!!}} {{#iferror: {{#expr:trunc((1-({{{rarity|1}}})^2/100)*floor(1.2*({{{total|1}}} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{sea|1}}}>{{{air|1}}} | {{{air|1}}} | {{{sea|1}}} }} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{sea|1}}} | {{{ground|1}}} }} }}+0.5)))}}|0}} {{!!}} {{#iferror: {{#expr:trunc((1-1.5*({{{rarity|1}}})^2/100)*floor(1.0*({{{total|1}}} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{sea|1}}}>{{{air|1}}} | {{{air|1}}} | {{{sea|1}}} }} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{sea|1}}} | {{{ground|1}}} }} }}+0.5)))}}|0}}
+
 
{{!}}-
+
 
{{!}} {{#expr: {{{rarity|6}}}*20 + 20 }} {{!!}} {{{ground2|???}}} {{!!}} {{{air2|???}}} {{!!}} {{{sea2|???}}} {{!!}} {{{total2|???}}} {{!!}} {{#iferror:{{#expr:trunc((1-({{{rarity|1}}})^2/100)*floor(1.2*({{{total2|1}}} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{sea2|1}}}>{{{air2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} | {{#if: {{{ground2|1}}} > {{{sea2|1}}} | {{{sea2|1}}} | {{{ground2|1}}} }} }}+0.5)))}}|0}} {{!!}} {{#iferror: {{#expr:trunc((1-1.5*({{{rarity|1}}})^2/100)*floor(1.2*({{{total2|1}}} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{sea2|1}}}>{{{air2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} | {{#if: {{{ground2|1}}} > {{{sea2|1}}} | {{{sea2|1}}} | {{{ground2|1}}} }} }}+0.5)))}}|0}}
+
</pre>
{{!}}}
+
 
|data4 = <div style="width:270px; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div>
+
<pre>
 +
Usage: <nowiki>{{Sales_4|CardName|Level|Ascension|Price|Notes}}</nowiki></noinclude><includeonly>
 +
{{#get_db_data:
 +
db=fantawiki
 +
|from=units
 +
|where=name='{{{1}}}'
 +
|limit=1
 +
|data=name=`name`,rarity=`rarity`
 
}}
 
}}
 +
{{#ifexpr: {{{5}}}=RESERVED or {{{5}}}=SOLD | {| style="border:2px solid red; background: #f9bbbb"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=10 and {{2}}=240 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=9 and {{2}}=200 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=8 and {{2}}=180 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=7 and {{2}}=160 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=6 and {{2}}=140 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=5 and {{2}}=120 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=4 and {{2}}=100 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=3 and {{2}}=80 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=2 and {{2}}=60 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=1 and {{2}}=40 | {| style="border:2px solid green; background: #e3efe3"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=10 and {{2}}=200 | {| style="border:2px solid blue; background: #e3e5ef"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=9 and {{2}}=180 | {| style="border:2px solid blue; background: #e3e5ef"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=8 and {{2}}=160 | {| style="border:2px solid blue; background: #e3e5ef"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=7 and {{2}}=140 | {| style="border:2px solid blue; background: #e3e5ef"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
{{#ifexpr: {{#external_value:rarity}}=6 and {{2}}=120 | {| style="border:2px solid blue; background: #e3e5ef"
 +
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
 +
|-
 +
| Lv{{{2}}} || {{{3}}} || {{{4}}}
 +
|-
 +
| colspan="3" | {{{5}}}
 +
|} |
 +
 +
 +
 +
 +
 +
{{#ifeq: {{#external_value:rarity}}| 11 | [[Image:{{{1}}}_card.jpg|350px|link={{{1}}}]] |
 +
{{#ifeq: {{#external_value:rarity}}| 10 | [[Image:{{{1}}}_card.jpg|325px|link={{{1}}}]] |
 +
{{#ifeq: {{#external_value:rarity}}| 9 | [[Image:{{{1}}}_card.jpg|300px|link={{{1}}}]] |
 +
 +
}} }} }} }} {{#clear_external_data:}}</includeonly>

Revision as of 01:22, 9 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




{{#ifeq: {{#external_value:rarity}}| 12 | [[Image:{{{1}}}_card.jpg|375px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 11 | [[Image:{{{1}}}_card.jpg|350px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 10 | [[Image:{{{1}}}_card.jpg|325px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 9 | [[Image:{{{1}}}_card.jpg|300px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 8 | [[Image:{{{1}}}_card.jpg|275px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 7 | [[Image:{{{1}}}_card.jpg|250px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 6 | [[Image:{{{1}}}_card.jpg|225px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 5 | [[Image:{{{1}}}_card.jpg|200px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 4 | [[Image:{{{1}}}_card.jpg|175px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 3 | [[Image:{{{1}}}_card.jpg|150px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 2 | [[Image:{{{1}}}_card.jpg|125px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 1 | [[Image:{{{1}}}_card.jpg|100px|link={{{1}}}]] | }} }} }} }} }} }} }} }} }} }} }} }} {{#clear_external_data:}}</includeonly>



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: {{{5}}}=RESERVED or {{{5}}}=SOLD | {| style="border:2px solid red; background: #f9bbbb"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=10 and {{2}}=240 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=9 and {{2}}=200 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=8 and {{2}}=180 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=7 and {{2}}=160 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=6 and {{2}}=140 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=5 and {{2}}=120 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=4 and {{2}}=100 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=3 and {{2}}=80 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=2 and {{2}}=60 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=1 and {{2}}=40 | {| style="border:2px solid green; background: #e3efe3"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=10 and {{2}}=200 | {| style="border:2px solid blue; background: #e3e5ef"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=9 and {{2}}=180 | {| style="border:2px solid blue; background: #e3e5ef"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=8 and {{2}}=160 | {| style="border:2px solid blue; background: #e3e5ef"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=7 and {{2}}=140 | {| style="border:2px solid blue; background: #e3e5ef"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |
{{#ifexpr: {{#external_value:rarity}}=6 and {{2}}=120 | {| style="border:2px solid blue; background: #e3e5ef"
| colspan="3" | [[File:{{{1}}}_mlb_card.jpg|link={{{1}}}|220px]]
|-
| Lv{{{2}}} || {{{3}}} || {{{4}}}
|-
| colspan="3" | {{{5}}}
|} |





{{#ifeq: {{#external_value:rarity}}| 11 | [[Image:{{{1}}}_card.jpg|350px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 10 | [[Image:{{{1}}}_card.jpg|325px|link={{{1}}}]] | 
{{#ifeq: {{#external_value:rarity}}| 9 | [[Image:{{{1}}}_card.jpg|300px|link={{{1}}}]] | 

}} }} }} }} {{#clear_external_data:}}</includeonly>
Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox