Difference between revisions of "Template:DbParser"
From StarMade Wiki
m |
|||
Line 1: | Line 1: | ||
− | {{#if:{{{2|}}}|<!-- | + | {{#if:{{{2|}}}|<!-- |
-->{{#switch:{{{2}}}<!-- | -->{{#switch:{{{2}}}<!-- | ||
− | -->|name={{Db | + | -->|name={{Db|{{{1}}}|link}}<!-- |
− | -->|image=[[File:{{Db | + | -->|image=[[File:{{Db|{{{1}}}|link}}.png|{{#if:{{{3|}}}|{{{3}}}|150}}px|link={{Db|{{{1}}}|link}}]]<!-- |
− | -->|Armor={{#ifeq:{{Db | + | -->|Armor={{#ifeq:{{Db|{{{1}}}|Armor}}|0.0|No|{{Db|{{{1}}}|{{{2}}}}}}}<!-- |
− | -->|Ahp={{#ifeq:{{Db | + | -->|Ahp={{#ifeq:{{Db|{{{1}}}|ArmorHPContribution}}|0| ---- |{{Db|{{{1}}}|ArmorHPContribution}}}}<!-- |
− | -->|Shp={{#ifeq:{{Db | + | -->|Shp={{#ifeq:{{Db|{{{1}}}|SHP}}|0|No|{{Db|{{{1}}}|SHP}}}}<!-- |
− | -->|ReactorHp={{#ifeq:{{Db | + | -->|ReactorHp={{#ifeq:{{Db|{{{1}}}|ReactorHp}}|0| ---- |{{Db|{{{1}}}|ReactorHp}}}}<!-- |
− | -->|Light={{#ifeq:{{Db | + | -->|Light={{#ifeq:{{Db|{{{1}}}|Light}}|true|Yes|No}}<!-- |
− | -->|Transparency={{#ifeq:{{Db | + | -->|Transparency={{#ifeq:{{Db|{{{1}}}|Transparency}}|true|Yes|No}}<!-- |
− | -->|Factory={{#Ifeq:{{Db | + | -->|Factory={{#Ifeq:{{Db|{{{1}}}|Factory}}|3|Basic Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|4|Standard Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|5|Advanced Factory|n/a}}}}}}<!-- |
− | -->|InShop={{#ifeq:{{Db | + | -->|InShop={{#ifeq:{{Db|{{{1}}}|InShop}}|true|Yes|No}}<!-- |
− | -->|{{Db | + | -->|{{Db|{{{1}}}|{{{2}}}}}<!-- |
-->}}<!-- | -->}}<!-- | ||
-->|}} | -->|}} |