Difference between revisions of "Template:Db"
From StarMade Wiki
m |
m |
||
Line 1: | Line 1: | ||
− | {{#if:{{{2|}}}|<!-- 2 templates to request in each databases to not make loop by requesting in Main info of value of Sub table. | + | {{#if:{{{2|}}}|{{#switch:{{padleft:|1|{{{2}}}}} <!-- Verify if version is requested by ~, then shift all parameters numbers --> |
− | -->{{#switch:{{{ | + | |~ ={{#if:{{{3|}}}|<!-- 2 templates to request in each databases to not make loop by requesting in Main info of value of Sub table. |
− | |link|type|icon|Factory|Animated|Armor|AHP|SHP|Transparency|InShop|ReactorHp|Mass|Hp|cat|cat2|cat3|cat4|Placable|BlockStyle|Light|Deprecated|LightColor={{Db/{{Db/Version | + | -->{{#switch:{{{3|}}} |
− | |Unknow "{{{ | + | |link|type|icon|Factory|Animated|Armor|AHP|SHP|Transparency|InShop|ReactorHp|Mass|Hp|cat|cat2|cat3|cat4|Placable|BlockStyle|Light|Deprecated|LightColor={{Db/{{Db/Version|{{{2}}}}}Main|{{{1}}}|{{{3}}}}}<!-- if requested a version transmit it to : Db/Version--> |
− | -->| No request to | + | |Unknow "{{{3}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor}}<!-- |
+ | -->| DbSub must get a type with version}} | ||
+ | |{{#switch:{{{2|}}} | ||
+ | |link|type|icon|Factory|Animated|Armor|AHP|SHP|Transparency|InShop|ReactorHp|Mass|Hp|cat|cat2|cat3|cat4|Placable|BlockStyle|Light|Deprecated|LightColor={{Db/{{Db/Version}}Main|{{{1}}}|{{{2}}}}} | ||
+ | |Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor}}<!-- }}| No request to DbSub}} |
Revision as of 21:43, 12 May 2018
{{#if:|{{#switch:{ |~ =DbSub must get a type with version |Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle, Light, Depreciated, LightColor