Difference between revisions of "Template:Infobox Card"
From Unofficial Fantasica Wiki
(Test : Recruitable using Monster Db) |
m |
||
(36 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | This is a template that is applied to ALL cards - please don't touch! To edit an individual unit's stats, go to their page, click edit, and look for the link in the information. Thanks! :) | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | --> | ||
{{Infobox | {{Infobox | ||
− | |title = {{{fullname|{{{name| | + | |title = {{{fullname|{{{name|Snelsa}}}}}} |
|data1 = | |data1 = | ||
− | {{{!}} style="width:100%;" | + | {{{!}} style="width:100%;border-left:solid 24px #f9f9f9;border-right:solid 24px #f9f9f9" |
{{!}}- | {{!}}- | ||
− | {{!}} {{Icon|{{{name| | + | {{!}} <div style="float:left"> {{Icon|{{{name|Snelsa}}}}}<br/>{{{rarity|10}}}{{*}} </div> |
− | {{!!}} {{#ifexist: Image:{{{name| | + | {{!!}} {{#ifexist: Image:{{{name|Snelsa}}}.gif | [[Image:{{{name|Snelsa}}}.gif]] }} |
− | {{!!}} {{Album|{{{name| | + | {{!!}} <div style="float:right"> {{Album|{{{name|Snelsa}}}|{{{rarity|10}}}}} </div> |
{{!}}} | {{!}}} | ||
|data2 = | |data2 = | ||
{{{!}} style="width:100%;" | {{{!}} style="width:100%;" | ||
{{!}}- | {{!}}- | ||
− | {{!}} [[Image:{{{type|Melee}}}_icon.png|16px]] {{{type|Melee}}} {{!!}} {{{range|?}}} Range {{!!}} {{{speed|?}}} Speed | + | {{!}} style="width:33%;" {{!}} [[Image:{{{type|Melee}}}_icon.png|16px]] {{{type|Melee}}} {{!!}} {{{range|?}}} Range {{!!}} style="width:33%;" {{!}} {{{speed|?}}} Speed |
{{!}}- | {{!}}- | ||
{{!}} {{{cost|?}}} Cost | {{!}} {{{cost|?}}} Cost | ||
Line 28: | Line 46: | ||
{{!}}} | {{!}}} | ||
|data3 = | |data3 = | ||
− | {{{!}} style="width: | + | {{{!}} style="width:330px;" |
{{!}}- | {{!}}- | ||
− | ! Lvl !! [[Image:Ground_icon.png|16px]] !! [[Image:Air_icon.png|16px]] !! [[Image:Sea_icon.png|16px]] !! Total !! Arena | + | ! 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|???}}} | + | {{!}} {{#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:100%; white-space:normal; border-top:solid 1px #999;">Increase per [[Ascension]] Step:</div> | ||
+ | {{!}}- | ||
+ | ! {{#ifeq: {{{ascspd|0}}} | 1 | Spd | <span style="color:darkgray">Spd</span> }} !! {{#ifeq: {{{ascland|0}}} | 0 | [[Image:Ground_grey_icon.png|16px]] | [[Image:Ground_icon.png|16px]] }} !! {{#ifeq: {{{ascland|0}}} | 0 | [[Image:Air_grey_icon.png|16px]] | [[Image:Air_icon.png|16px]] }} !! {{#ifeq: {{{ascland|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 }} | ||
+ | {{!}}- | ||
+ | {{!}} {{#ifeq: {{{ascspd|0}}} | 1 | 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: | + | |data4 = <div style="width:100%; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div> |
<!-- Old Monster Detection | <!-- Old Monster Detection | ||
− | {{#ifexist: {{{name}}}_m | <div style="width: | + | {{#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 |
− | <div style="width: | + | |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:53, 25 January 2019
| |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||
Source Unknown |