Difference between revisions of "Template:Ib"

From StarMade Wiki
m
m
Line 4: Line 4:
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|0}}
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|{{{3}}}|0}}
 
-->|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
 
-->|{{DbParser|{{{1}}}|{{{2}}}|{{{3}}}}}
}}|[[File:{{Db|{{{1}}}|{{{2}}}|link}}.png|20px|link={{Db|{{{1}}}|{{{2}}}|link}}]][[{{Db|{{{1}}}|{{{2}}}|link}}|{{Db|{{{1}}}|{{{2}}}|link}}]]}}}}
+
}}|[[File:{{Db|{{{1}}}|{{{2}}}|link}}.png|20px|link={{Db|{{{1}}}|{{{2}}}|link}}]][[{{Db|{{{1}}}|{{{2}}}|link}}|{{Db|{{{1}}}|{{{2}}}|link}}]]}}
 
|{{#if:{{{2|}}}|{{#switch: {{{2}}} <!-- no "~" it is a default version request -->
 
|{{#if:{{{2|}}}|{{#switch: {{{2}}} <!-- no "~" it is a default version request -->
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}
 
|Ctrling|CtrlBy|Item= {{DbSub|{{{1}}}|{{{2}}}|0}}

Revision as of 20:51, 27 July 2018

{{#if:|{{#switch:{ |~ =[[File:Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, FactoryBakeTime, Heat, Kinetic, EM, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle,HasActivationTexture, IndivSides, Light, Depreciated, LightColor.png|20px|link=Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, FactoryBakeTime, Heat, Kinetic, EM, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle,HasActivationTexture, IndivSides, Light, Depreciated, LightColor]][[Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, FactoryBakeTime, Heat, Kinetic, EM, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle,HasActivationTexture, IndivSides, Light, Depreciated, LightColor|Unknow "{{{2}}}" : link, Id, Factory, Animated, Armor, Shp, Shp, Transparency, FactoryBakeTime, Heat, Kinetic, EM, InShop, ReactorHp, Mass, Hp, cat, cat2, cat3, cat4, Placable, BlockStyle,HasActivationTexture, IndivSides, Light, Depreciated, LightColor]]

|20px[[|]]

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

ib allow to get specific information of a block in database.

Usage

{{ib|Name}} 
or {{ib|Name|type}} 
or {{ib|Name|image|size(optional)}}

display an older version :
{{ib|~version|Name|type)}} (don't forget the "~" before the verrsion number)
ie : {{ib|~0.200.335|Teal Crystal Armor|Armor}}


'''Version :''' (optional) use "~" and the number of version (stored in database) ie : ~0.200.335
'''Name :''' In game block name
'''type :''' the value you query (Hp, armor, name, etc...)

No type return a link + icon of the block name

ie : for the block Ship Core if i use ib that display Ship Core.pngShip Core if i dont put any type


type return the value of block name

Ship core have 100hp, value of armor is Noand light color : 1.0,1.0,1.0,1.0

image size(optional) : number in pixel

...|image|40}}   = Ship Core.png               and without number, original       ....|image}}   = {{{3}}}px

badtype return a list of all type available

i. e : Unknow Badtype : 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