Difference between revisions of "Template:Infobox Card test2"
From Unofficial Fantasica Wiki
(10 intermediate revisions by one user not shown) | |||
Line 11: | Line 11: | ||
{{{!}} style="width:100%;" | {{{!}} style="width:100%;" | ||
{{!}}- | {{!}}- | ||
− | {{!}} [[Image:{{{type|Melee}}}_icon.png|16px]] {{{type|Melee}}} {{!!}} {{{range|?} | + | {{!}} [[Image:{{{type|Melee}}}_icon.png|16px]] {{{type|Melee}}} {{!!}} {{{range|?}}} Range {{!!}} {{{speed|?}}} Speed |
{{!}}- | {{!}}- | ||
{{!}} {{{cost|?}}} Cost | {{!}} {{{cost|?}}} Cost | ||
Line 18: | Line 18: | ||
{{!}}} | {{!}}} | ||
|data3 = | |data3 = | ||
− | + | {{{!}} style="width:100%;" | |
+ | {{!}}- | ||
+ | ! Lvl !! [[Image:Ground_icon.png|16px]] !! [[Image:Air_icon.png|16px]] !! [[Image:Sea_icon.png|16px]] !! Total !! Arena !! HP | ||
+ | {{!}}- | ||
+ | {{!}} {{#expr: {{{rarity|6}}}*20 }} {{!!}} {{{ground|???}}} {{!!}} {{{air|???}}} {{!!}} {{{sea|???}}} {{!!}} {{{total|???}}} {{!!}} {{{arena|???}}} {{!!}} {{{maxhp|???}}} | ||
+ | {{!}}- | ||
+ | {{!}} {{#ifexpr: {{{rarity|6}}}>9 | {{#expr: {{{rarity|6}}}*20 + 40 }} | {{#expr: {{{rarity|6}}}*20 + 20 }} }} {{!!}} {{{ground2|???}}} {{!!}} {{{air2|???}}} {{!!}} {{{sea2|???}}} {{!!}} {{{total2|???}}} {{!!}} {{{arenalb|???}}} {{!!}} {{{mlbhp|???}}} | ||
+ | {{!}}- | ||
+ | {{!}} colspan="7" {{!}} <div style="width:330px; white-space:normal; border-top:solid 1px #999;">Increase per [[Ascension]] Step:</div> | ||
+ | {{!}}- | ||
+ | ! {{#if: {{{ascspd|}}} | Spd | <span style="color:darkgray">Spd</span> }} !! {{#ifeq: {{{ascland|0}}} | 0 | [[Image:Ground_grey_icon.png|16px]] | [[Image:Ground_icon.png|16px]] }} !! {{#ifeq: {{{ascair|0}}} | 0 | [[Image:Air_grey_icon.png|16px]] | [[Image:Air_icon.png|16px]] }} !! {{#ifeq: {{{ascsea|0}}} | 0 | [[Image:Sea_grey_icon.png|16px]] | [[Image:Sea_icon.png|16px]] }} !! {{#ifeq: {{{asccost}}} | 0 | <span style="color:darkgray">Cost</span> | Cost }} !! {{#ifeq: {{{ascrng}}} | 0 | <span style="color:darkgray">Range</span> | Range }} !! {{#ifeq: {{{aschp}}} | 0 | <span style="color:darkgray">HP</span> | HP }} | ||
+ | {{!}}- | ||
+ | {{!}} {{#if: {{{ascspd|}}} | Y | <span style="color:darkgray">−</span> }} {{!!}} {{#ifeq: {{{ascland|0}}} | 0 | <span style="color:darkgray">−</span> | {{{ascland}}} }} {{!!}} {{#ifeq: {{{ascair|0}}} | 0 | <span style="color:darkgray">−</span> | {{{ascair}}} }} {{!!}} {{#ifeq: {{{ascsea|0}}} | 0 | <span style="color:darkgray">−</span> | {{{ascsea}}} }} {{!!}} {{#ifeq: {{{asccost|0}}} | 0 | <span style="color:darkgray">−</span> | {{{asccost}}} }} {{!!}} {{#ifeq: {{{ascrng|0}}} | 0 | <span style="color:darkgray">−</span> | {{{ascrng}}} }} {{!!}} {{#ifeq: {{{aschp|0}}} | 0 | <span style="color:darkgray">−</span> | {{{aschp}}} }} | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
|data4 = <div style="width:330px; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div> | |data4 = <div style="width:330px; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div> | ||
+ | <!-- Old Monster Detection | ||
+ | {{#ifexist: {{{name}}}_m | <div style="width:330px; white-space:normal; border-top:solid 1px #999">[[Recruitment|Recruited]] from:<br>[[Image:Soul_stone_s_icon.png|64px]] {{Icon|{{{name}}}_m}} [[Image:Soul_stone_s_icon.png|64px]]</div>| }} | ||
+ | -->{{#get_db_data: | ||
+ | db=fantawiki | ||
+ | |from=monsters | ||
+ | |where=recruitable='{{{name}}}' | ||
+ | |limit=1 | ||
+ | |data=mname=`name`,recruitable=`recruitable` | ||
+ | }}{{#ifeq: {{#external_value:recruitable}} | {{{name}}} | | ||
+ | <div style="width:330px; white-space:normal; border-top:solid 1px #999">[[Recruitment|Recruited]] from:<br>[[Image:Soul_stone_s_icon.png|64px]] {{Icon|{{#external_value:mname}} }} [[Image:Soul_stone_s_icon.png|64px]]</div>| }} | ||
}} | }} |
Latest revision as of 05:09, 28 January 2016
| |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
Source Unknown |