Difference between revisions of "Template:DbParser"

From StarMade Wiki
m
m
Line 1: Line 1:
 
{{#if:{{{2|}}}|<!--  
 
{{#if:{{{2|}}}|<!--  
 
-->{{#switch:{{{2}}}<!--  
 
-->{{#switch:{{{2}}}<!--  
 +
=========== Main Database =============
 
---------    Rename some database type name -->
 
---------    Rename some database type name -->
 
|Id={{Db|{{{1}}}|type}}
 
|Id={{Db|{{{1}}}|type}}
Line 10: Line 11:
 
|Armor|hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}}}}}
 
|Armor|hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}}}}}
 
|AHP|Ahp={{#ifeq:{{Db|{{{1}}}|AHP}}|0| ---- |{{Db|{{{1}}}|AHP}}}}
 
|AHP|Ahp={{#ifeq:{{Db|{{{1}}}|AHP}}|0| ---- |{{Db|{{{1}}}|AHP}}}}
|Light|Transparency|InShop|Placable|MainCtrl|EffectCtrl|SupportCtrl={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|true|Yes|No}}
+
|Animated|Light|Transparency|InShop|Placable={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|true|Yes|No}}
 
|Factory={{#Ifeq:{{Db|{{{1}}}|Factory}}|3|Basic Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|4|Standard Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|5|Advanced Factory|n/a}}}}}}
 
|Factory={{#Ifeq:{{Db|{{{1}}}|Factory}}|3|Basic Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|4|Standard Factory|{{#Ifeq:{{Db|{{{1}}}|Factory}}|5|Advanced Factory|n/a}}}}}}
|ExpAbsorb|ReactorHp={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|0||{{Db|{{{1}}}|{{{2}}}}}}}
+
|ReactorHp={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|0||{{Db|{{{1}}}|{{{2}}}}}}}<!--
|{{Db|{{{1}}}|{{{2}}}}}
+
---------    Default for other Main Db value -->
 +
|link|type|SHP|Mass|Hp|cat|cat2|cat3|cat4|BlockStyle|Light|Deprecated|LightColor= {{Db|{{{1}}}|{{{2}}}}}<!--
 +
=========== Sub Database =============
 +
---------    Return an other value if true -->
 +
|Shop={{#ifeq:{{Db|{{{1}}}|InShop}}|true|{{DbSub|{{{1}}}|{{{Price}}}}}|No}}<!--
 +
---------    Preformat some answers (0, False, etc.. ) -->
 +
|MainCtrl|EffectCtrl|SupportCtrl={{#ifeq:{{DbSub|{{{1}}}|{{{2}}}}}|true|Yes|No}}
 +
|ExpAbsorb={{#ifeq:{{DbSub|{{{1}}}|{{{2}}}}}|0||{{DbSub|{{{1}}}|{{{2}}}}}}}<!--
 +
---------    Default for other Main Db value -->
 +
|Item|CtrlBy|Ctrling|Price|Desc|BlockResourceType|FactoryBakeTime|Chamber|Volume|InRecipe = {{DbSub|{{{1}}}|{{{2}}}}}
 
}}<!-- switch
 
}}<!-- switch
 
-->|}}
 
-->|}}

Revision as of 20:35, 12 May 2018