Difference between revisions of "Template:DbParser"

From StarMade Wiki
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#if:{{{1|}}}|{{#switch:{{padleft:|1|{{{1}}}}} <!-- Verify if version is requested by ~, then shift all parameters numbers -->
 
{{#if:{{{1|}}}|{{#switch:{{padleft:|1|{{{1}}}}} <!-- Verify if version is requested by ~, then shift all parameters numbers -->
|~ ={{#if:{{{2|}}}|<!--  
+
|~ ={{#if:{{{3|}}}|<!--  
-->{{#switch:{{{2}}}<!--  
+
-->{{#switch:{{{3}}}<!--  
 
=========== Main Database =============
 
=========== Main Database =============
 
---------    Rename some database type name -->
 
---------    Rename some database type name -->
Line 10: Line 10:
 
---------    Preformat some answers (0, False, etc.. return value if true) -->
 
---------    Preformat some answers (0, False, etc.. return value if true) -->
 
|image=[[File:{{Db|{{{1}}}|{{{2}}}|link}}.png|{{#if:{{{4|}}}|{{{4}}}|150}}px|link={{Db|{{{1}}}|{{{2}}}|link}}]]
 
|image=[[File:{{Db|{{{1}}}|{{{2}}}|link}}.png|{{#if:{{{4|}}}|{{{4}}}|150}}px|link={{Db|{{{1}}}|{{{2}}}|link}}]]
|hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}}}
+
|Armor|Hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}}}
|Armor|hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}}}
 
 
|AHP|Ahp={{#ifeq:{{Db|{{{1}}}|{{{2}}}|AHP}}|0| ---- |{{Db|{{{1}}}|{{{2}}}|AHP}}}}
 
|AHP|Ahp={{#ifeq:{{Db|{{{1}}}|{{{2}}}|AHP}}|0| ---- |{{Db|{{{1}}}|{{{2}}}|AHP}}}}
 
|Animated|Light|Transparency|InShop|Placable={{#ifeq:{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}|true|Yes|No}}
 
|Animated|Light|Transparency|InShop|Placable={{#ifeq:{{Db|{{{1}}}|{{{2}}}|{{{3}}}}}|true|Yes|No}}
Line 26: Line 25:
 
---------    Default for other Main Db value -->
 
---------    Default for other Main Db value -->
 
|Item|CtrlBy|Ctrling|Price|Desc|BlockResourceType|Chamber|Volume|InRecipe = {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}
 
|Item|CtrlBy|Ctrling|Price|Desc|BlockResourceType|Chamber|Volume|InRecipe = {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}
|Unknow request : link, Id, Factory, Animated, Armor, Ahp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, Heat, Kinetic,EM, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor, Item(table), CtrlBy(table), Ctrling(table), Shop(InShop+Price), Price, Desc, BlockResourceType, FactoryBakeTime, Chamber(table), Volume, InRecipe, MainCtrl, SupportCtrl, EffectCtrl, ExpAbsorb
+
|Unknow {{{3}}} : link, Id, Factory, Animated, Armor, Ahp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, Heat, Kinetic,EM, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor, Item(table), CtrlBy(table), Ctrling(table), Shop(InShop+Price), Price, Desc, BlockResourceType, FactoryBakeTime, Chamber(table), Volume, InRecipe, MainCtrl, SupportCtrl, EffectCtrl, ExpAbsorb
}}<!--
+
}}}}<!--
 
-->|{{#if:{{{2|}}}|<!-- Request without "~"  ==> default version
 
-->|{{#if:{{{2|}}}|<!-- Request without "~"  ==> default version
 
-->{{#switch:{{{2}}}<!--  
 
-->{{#switch:{{{2}}}<!--  
Line 38: Line 37:
 
---------    Preformat some answers (0, False, etc.. return value if true) -->
 
---------    Preformat some answers (0, False, etc.. return value if true) -->
 
|image=[[File:{{Db|{{{1}}}|link}}.png|{{#if:{{{3|}}}|{{{3}}}|150}}px|link={{Db|{{{1}}}|link}}]]
 
|image=[[File:{{Db|{{{1}}}|link}}.png|{{#if:{{{3|}}}|{{{3}}}|150}}px|link={{Db|{{{1}}}|link}}]]
|hp={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|0|No|{{Db|{{{1}}}|{{{2}}}}}}}
+
|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}}}}
 
|Animated|Light|Transparency|InShop|Placable={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|true|Yes|No}}
 
|Animated|Light|Transparency|InShop|Placable={{#ifeq:{{Db|{{{1}}}|{{{2}}}}}|true|Yes|No}}
Line 54: Line 52:
 
---------    Default for other Main Db value -->
 
---------    Default for other Main Db value -->
 
|Item|CtrlBy|Ctrling|Price|Desc|BlockResourceType|Chamber|Volume|InRecipe = {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}
 
|Item|CtrlBy|Ctrling|Price|Desc|BlockResourceType|Chamber|Volume|InRecipe = {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}
|Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Ahp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, Heat, Kinetic,EM, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor, Item(table), CtrlBy(table), Ctrling(table), Shop(InShop+Price), Price, Desc, BlockResourceType, FactoryBakeTime, Chamber(table), Volume, InRecipe, MainCtrl, SupportCtrl, EffectCtrl, ExpAbsorb
+
|Unknow {{{2}}} : link, Id, Factory, Animated, Armor, Ahp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, Heat, Kinetic,EM, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor, Item(table), CtrlBy(table), Ctrling(table), Shop(InShop+Price), Price, Desc, BlockResourceType, FactoryBakeTime, Chamber(table), Volume, InRecipe, MainCtrl, SupportCtrl, EffectCtrl, ExpAbsorb
}}}}<!-- switch
+
}}<!-- switch
-->| No Request to DbParser}}}}<!--
+
-->| No Request to DbParser}}}}}}<!--
 
--><noinclude>{{Documentation}}</noinclude>
 
--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 22:05, 27 July 2018

[view] [edit] [history] [[[:Template:Purge]]] 50px Template documentation

see Template:Db/doc to more information