Difference between revisions of "Template:Blockbox"
From StarMade Wiki
m |
m |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch:{{{1}}}<!-- | + | {{#switch:{{padleft:|1|{{{2}}}}} |
+ | |~={{#switch:{{{1}}}<!-- | ||
+ | ============ 0 : Tiny box =========== | ||
+ | -->|0={{blockboxlayout <!-- | ||
+ | -->|bodystyle = width: 11em; text-align: left; font-size: 88%; line-height: 0em; float: {{#if:{{{3|}}}|{{{3}}}|right}}; <!-- | ||
+ | -->|titlestyle = text-align: center; font-size: 100%; font-weight: bold;line-height: 0.9em; height: 2em; padding: 1px; <!-- | ||
+ | -->|headerstyle = text-align: right; padding: 0em; height: 0.5em; <!-- | ||
+ | -->|unikstyle = Background-color:#191f29; color:#0088CC;border:1px; border-style: outset; border-color:DimGrey; display:inline; height: 0.1em; margin : 1px 3px 1px 3px, <!-- | ||
+ | -->|datastyle = text-align: right; padding: 0em 0.4em;<!-- | ||
+ | -->|imagestyle = text-align: center; padding: 0em; height: 0em;<!-- | ||
+ | -->|imageoption=<!-- | ||
+ | -->|title = {{DbParser|{{{2}}}|{{{3}}}|name}} <!-- | ||
+ | -->|titlelink = {{DbParser|{{{2}}}|{{{3}}}|link}} <!-- | ||
+ | -->|overimage = {{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6|bottom: -100px; right: -25px;}}|bottom: 10px; right: 5px;}}"><b> Id : </b>{{DbParser|{{{2}}}|{{{3}}}|Id}} <!-- ======== text over image : "end of style tag" "> "TEXT" | ||
+ | -->|imagelink =<div style="{{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|{{{3}}}|image|140}}</div><!-- | ||
+ | -->|3dimage = {{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6| top: 30px; left: 30px;">{{DbSub|{{{2}}}|{{{3}}}|textureId|0}}}}}}<!-- | ||
+ | |data0 = <b> ID : </b>{{DbParser|{{{2}}}|{{{3}}}|Id}} -->}}<!-- | ||
+ | ======= 1 legacy (old) box ========== | ||
+ | -->|1={{blockboxlayout <!-- | ||
+ | -->|bodystyle = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: {{#if:{{{4|}}}|{{{4}}}|right}};<!-- | ||
+ | -->|titlestyle = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;<!-- | ||
+ | -->|headerstyle = text-align: center; padding: 0em; height: 1.8em;<!-- | ||
+ | -->|labelstyle = text-align: right; font-weight: bold; vertical-align: top; padding: 0.1em 0.5em; <!-- | ||
+ | -->|datastyle = text-align: left; padding: 0em 2em; <!-- | ||
+ | -->|chessstyle = background-color:#18181F; <!-- | ||
+ | -->|imagestyle = text-align: center; padding: 0em; height: 1.8em;<!-- | ||
+ | -->|title = {{DbParser|{{{2}}}|{{{3}}}|name}}<!-- | ||
+ | -->|titlelink = {{DbParser|{{{2}}}|{{{3}}}|link}}<!-- | ||
+ | -->|imagelink =<div style="{{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|{{{3}}}|image}}</div><!-- | ||
+ | -->|3dimage ={{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|{{{3}}}|textureId|0}}}}}}<!-- | ||
+ | -->|overimage ={{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; {{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6=top:30px;left:-30px;}}|top: 60px; left: 50px;}} font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;">====OBSOLETE====}}<!-- | ||
+ | -->|imageoption= 150px<!-- | ||
+ | -->|caption = <!-- | ||
+ | -->|captionstyle= <!-- :::old deprecated display, see above overimage:::: | ||
+ | -->|label1 = <font style="color:DarkRed;">Version</font> <!--{{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|false|<font style="color:DarkGreen;">Block </font>|<font style="color:DarkRed;">Block</font>}} | ||
+ | -->|data1 = <font style="color:DarkRed;">{{{2}}}</font><!-- {{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|false|<font style="color:DarkGreen;"> In game </font>|<font style="color:DarkRed;">obsolete !</font>}} | ||
+ | -->|label2 = Hit Points<!-- | ||
+ | -->|data2 ={{DbParser|{{{2}}}|{{{3}}}|Hp}}<!-- | ||
+ | -->|label3 = Armor<!-- | ||
+ | -->|data3 = {{DbParser|{{{2}}}|{{{3}}}|Armor}}<!-- | ||
+ | -->|label4 = Ahp<!-- | ||
+ | -->|data4 = {{DbParser|{{{2}}}|{{{3}}}|Ahp}}<!-- | ||
+ | -->|label5 = Shp<!-- | ||
+ | -->|data5 = {{DbParser|{{{2}}}|{{{3}}}|Shp}}<!-- | ||
+ | -->|label6 = Mass<!-- | ||
+ | -->|data6 = {{DbParser|{{{2}}}|{{{3}}}|Mass}}<!-- | ||
+ | -->|label7 = Heat Armor<!-- | ||
+ | -->|data7 = {{DbParser|{{{2}}}|{{{3}}}|Heat}}<!-- | ||
+ | -->|label8 = Kinetic Armor<!-- | ||
+ | -->|data8 = {{DbParser|{{{2}}}|{{{3}}}|Kinetic}}<!-- | ||
+ | -->|label9 = EM Armor<!-- | ||
+ | -->|data9 = {{DbParser|{{{2}}}|{{{3}}}|EM}}<!-- | ||
+ | -->|label10 = Luminosity<!-- | ||
+ | -->|data10 = {{DbParser|{{{2}}}|{{{3}}}|Light}}<!-- | ||
+ | -->|label11 = Id<!-- | ||
+ | -->|data11 = {{DbParser|{{{2}}}|{{{3}}}|Id}}}}<!-- | ||
+ | ======= 2 : full box ================= | ||
+ | -->|2={{blockboxlayout <!-- | ||
+ | -->|bodystyle = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: {{#if:{{{4|}}}|{{{4}}}|right}};<!-- | ||
+ | -->|titlestyle = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;<!-- | ||
+ | -->|headerstyle = text-align: center; padding: 0em; height: 1.8em;<!-- | ||
+ | -->|labelstyle = text-align: right; font-weight: bold; vertical-align: top; padding: 0.1em 0.5em; <!-- | ||
+ | -->|datastyle = text-align: left; padding: 0.1em 0.5em; <!-- | ||
+ | -->|chessstyle = background-color:#18181F; <!-- | ||
+ | -->|imagestyle = text-align: center; padding: 0em; height: 1.8em;<!-- | ||
+ | -->|title = {{DbParser|{{{2}}}|{{{3}}}|name}}<!-- | ||
+ | -->|titlelink = {{DbParser|{{{2}}}|{{{3}}}|link}}<!-- | ||
+ | -->|imagelink =<div style="{{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|{{{3}}}|image}}</div><!-- | ||
+ | -->|3dimage ={{#ifeq:{{{5|}}}|3d|{{#switch:{{Db|{{{2|}}}|{{{3}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|{{{3}}}|textureId|0}}}}}}<!-- | ||
+ | -->|overimage ={{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; top: 60px; left: 50px; font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;">BLOCK OBSOLETE !}}<!-- | ||
+ | -->|imageoption= 150px<!-- | ||
+ | -->|caption = <!-- | ||
+ | -->|captionstyle= <!-- :::old deprecated display, see above overimage:::: | ||
+ | -->|label1 =<!-- {{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|false|<font style="color:DarkGreen;">Block </font>|<font style="color:DarkRed;">Block</font>}} | ||
+ | -->|data1 = <!-- {{#ifeq:{{DbParser|{{{2}}}|{{{3}}}|Deprecated}}|false|<font style="color:DarkGreen;"> In game </font>|<font style="color:DarkRed;">obsolete ! </font>}} | ||
+ | -->|label2 = Hp<!-- | ||
+ | -->|data2 ={{DbParser|{{{2}}}|{{{3}}}|Hp}}<!-- | ||
+ | -->|label3 = Ahp<!-- | ||
+ | -->|data3 ={{DbParser|{{{2}}}|{{{3}}}|Ahp}}<!-- | ||
+ | -->|label4 = Shp<!-- | ||
+ | -->|data4 ={{DbParser|{{{2}}}|{{{3}}}|Shp}}<!-- | ||
+ | -->|label5 = ReactorHp<!-- | ||
+ | -->|data5 ={{DbParser|{{{2}}}|{{{3}}}|ReactorHp}}<!-- | ||
+ | -->|label6 = Armor<!-- | ||
+ | -->|data6 ={{DbParser|{{{2}}}|{{{3}}}|Armor}}<!-- | ||
+ | -->|label7 = Mass<!-- | ||
+ | -->|data7 ={{DbParser|{{{2}}}|{{{3}}}|Mass}}<!-- | ||
+ | -->|label8 = Volume<!-- | ||
+ | -->|data8 ={{DbParser|{{{2}}}|{{{3}}}|Volume}}<!-- | ||
+ | -->|label9 = Light<!-- | ||
+ | -->|data9 ={{DbParser|{{{2}}}|{{{3}}}|Light}}<!-- | ||
+ | -->|label10 = LightColor<!-- | ||
+ | -->|data10 ={{DbParser|{{{2}}}|{{{3}}}|LightColor}}<!-- | ||
+ | -->|label11 = Transparency<!-- | ||
+ | -->|data11 ={{DbParser|{{{2}}}|{{{3}}}|Transparency}}<!-- | ||
+ | -->|label12 = Animated<!-- | ||
+ | -->|data12 ={{DbParser|{{{2}}}|{{{3}}}|Animated}}<!-- | ||
+ | -->|label13 = Id<!-- | ||
+ | -->|data13 ={{DbParser|{{{2}}}|{{{3}}}|Id}}<!-- | ||
+ | -->|label14 = Make with<!-- | ||
+ | -->|data14 =[[File:{{DbParser|{{DbParser|{{{2}}}|{{{3}}}|Factory}}|link}}.png|20px|link={{DbParser|{{DbParser|{{{2}}}|{{{3}}}|Factory}}|link}}]][[{{DbParser|{{DbParser|{{{2}}}|{{{3}}}|Factory}}|link}}|{{DbParser|{{DbParser|{{{2}}}|{{{3}}}|Factory}}|link}}]] <!-- | ||
+ | -->|label15 = produced in<!-- | ||
+ | -->|data15 ={{DbParser|{{{2}}}|{{{3}}}|FactoryBakeTime}}sec<!-- | ||
+ | -->|label16 =Heat Armor<!-- | ||
+ | -->|data16 ={{DbParser|{{{2}}}|{{{3}}}|Heat}}<!-- | ||
+ | -->|label17 = EM Armor<!-- | ||
+ | -->|data17 ={{DbParser|{{{2}}}|{{{3}}}|EM}}<!-- | ||
+ | -->|label18 = Kinetic Armor<!-- | ||
+ | -->|data18 ={{DbParser|{{{2}}}|{{{3}}}|Kinetic}}<!-- | ||
+ | -->|label19 = Traded<!-- | ||
+ | -->|data19 ={{DbParser|{{{2}}}|{{{3}}}|Shop}}<!-- | ||
+ | -->|label20 = cat<!-- | ||
+ | -->|data20 ={{#if:{{DbParser|{{{2}}}|{{{3}}}|cat}}|[[:Category:{{DbParser|{{{2}}}|{{{3}}}|cat}}]]}}<!-- | ||
+ | -->|label21 = cat2<!-- | ||
+ | -->|data21 ={{#if:{{DbParser|{{{2}}}|{{{3}}}|cat2}}|[[:Category:{{DbParser|{{{2}}}|{{{3}}}|cat2}}]]}}<!-- | ||
+ | -->|label22 = cat3<!-- | ||
+ | -->|data22 ={{#if:{{DbParser|{{{2}}}|{{{3}}}|cat3}}|[[:Category:{{DbParser|{{{2}}}|{{{3}}}|cat3}}]]}}<!-- | ||
+ | -->|label23 = cat4<!-- | ||
+ | -->|data23 ={{#if:{{DbParser|{{{2}}}|{{{3}}}|cat4}}|[[:Category:{{DbParser|{{{2}}}|{{{3}}}|cat4}}]]}}<!-- | ||
+ | -->|label24 = Control<!-- | ||
+ | -->|data24 ={{DbSub|{{{2}}}|{{{3}}}|Ctrling|2}}{{#ifeq:{{DbSub|{{{2}}}|{{{3}}}|Ctrling}}|Bad format request|<br/>{{ib|{{{2}}}{{{3}}}|}}<br/>|{{#ifeq:{{DbSub|{{{2}}}|{{{3}}}|Ctrlby}}|Bad format request|<br/>{{ib|{{{2}}}{{{3}}}|}}<br/>}}}}{{DbSub|{{{2}}}|{{{3}}}|CtrlBy|2}}<!-- | ||
+ | --><!--|label25 = Item | ||
+ | --><!--|data25 ={{DbParser|{{{2}}}|{{{3}}}|Item}} | ||
+ | -->|label26 = Placable<!-- | ||
+ | -->|data26 ={{DbParser|{{{2}}}|{{{3}}}|Placable}}<!-- | ||
+ | -->|label27 = Explos. Abs.<!-- | ||
+ | -->|data27 ={{DbParser|{{{2}}}|{{{3}}}|ExpAbsorb}}<!-- | ||
+ | -->|label28 = Main Ctrler<!-- | ||
+ | -->|data28 ={{DbParser|{{{2}}}|{{{3}}}|MainCtrl}}<!-- | ||
+ | -->|label29 = Support Ctrler<!-- | ||
+ | -->|data29 ={{DbParser|{{{2}}}|{{{3}}}|SupportCtrl}}<!-- | ||
+ | -->|label30 = Effect Ctrler<!-- | ||
+ | -->|data30 ={{DbParser|{{{2}}}|{{{3}}}|EffectCtrl}}}} | ||
+ | }} <!-- =============================================================== no version requested ==================================== --> | ||
+ | |{{#switch:{{{1}}}<!-- | ||
============ 0 : Tiny box =========== | ============ 0 : Tiny box =========== | ||
-->|0={{blockboxlayout <!-- | -->|0={{blockboxlayout <!-- | ||
Line 12: | Line 146: | ||
-->|titlelink = {{DbParser|{{{2}}}|link}} <!-- | -->|titlelink = {{DbParser|{{{2}}}|link}} <!-- | ||
-->|overimage = {{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6|bottom: -100px; right: -25px;}}|bottom: 10px; right: 5px;}}"><b> Id : </b>{{DbParser|{{{2}}}|Id}} <!-- ======== text over image : "end of style tag" "> "TEXT" | -->|overimage = {{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6|bottom: -100px; right: -25px;}}|bottom: 10px; right: 5px;}}"><b> Id : </b>{{DbParser|{{{2}}}|Id}} <!-- ======== text over image : "end of style tag" "> "TEXT" | ||
− | -->|imagelink ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| | + | -->|imagelink =<div style="{{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|image|140}}</div><!-- |
-->|3dimage = {{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 30px; left: 30px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | -->|3dimage = {{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 30px; left: 30px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | ||
|data0 = <b> ID : </b>{{DbParser|{{{2}}}|Id}} -->}}<!-- | |data0 = <b> ID : </b>{{DbParser|{{{2}}}|Id}} -->}}<!-- | ||
Line 26: | Line 160: | ||
-->|title = {{DbParser|{{{2}}}|name}}<!-- | -->|title = {{DbParser|{{{2}}}|name}}<!-- | ||
-->|titlelink = {{DbParser|{{{2}}}|link}}<!-- | -->|titlelink = {{DbParser|{{{2}}}|link}}<!-- | ||
− | -->|imagelink ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| | + | -->|imagelink =<div style="{{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|image}}</div><!-- |
-->|3dimage ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | -->|3dimage ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | ||
− | -->|overimage ={{#ifeq:{{DbParser|{{{2}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; top: 60px; left: 50px; font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;"> | + | -->|overimage ={{#ifeq:{{DbParser|{{{2}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; {{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6=top:30px;left:-30px;}}|top: 60px; left: 50px;}} font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;">====OBSOLETE====}}<!-- |
-->|imageoption= 150px<!-- | -->|imageoption= 150px<!-- | ||
-->|caption = <!-- | -->|caption = <!-- | ||
Line 65: | Line 199: | ||
-->|title = {{DbParser|{{{2}}}|name}}<!-- | -->|title = {{DbParser|{{{2}}}|name}}<!-- | ||
-->|titlelink = {{DbParser|{{{2}}}|link}}<!-- | -->|titlelink = {{DbParser|{{{2}}}|link}}<!-- | ||
− | -->|imagelink ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| | + | -->|imagelink =<div style="{{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6|opacity:0;">}}|">}}{{DbParser|{{{2}}}|image}}</div><!-- |
-->|3dimage ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | -->|3dimage ={{#ifeq:{{{4|}}}|3d|{{#switch:{{Db|{{{2|}}}|BlockStyle}}|0|6| top: 35px; left: 80px;">{{DbSub|{{{2}}}|textureId|0}}}}}}<!-- | ||
-->|overimage ={{#ifeq:{{DbParser|{{{2}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; top: 60px; left: 50px; font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;">BLOCK OBSOLETE !}}<!-- | -->|overimage ={{#ifeq:{{DbParser|{{{2}}}|Deprecated}}|true|-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);color:DarkRed; top: 60px; left: 50px; font-weight:bold; text-align:right; opacity: 0.7; font-size: 15px;">BLOCK OBSOLETE !}}<!-- | ||
Line 131: | Line 265: | ||
-->|label30 = Effect Ctrler<!-- | -->|label30 = Effect Ctrler<!-- | ||
-->|data30 ={{DbParser|{{{2}}}|EffectCtrl}}}} | -->|data30 ={{DbParser|{{{2}}}|EffectCtrl}}}} | ||
− | }}<!-- | + | }}}}<!-- |
--><noinclude>{{Documentation}}</noinclude> | --><noinclude>{{Documentation}}</noinclude> |