Difference between revisions of "Template:Blockbox"

From StarMade Wiki
m
m
Line 1: Line 1:
{{blockboxlayout
+
{{blockboxlayout<!--
|bodystyle    = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;
+
-->{{#switch:{{{1}}}<!--
|titlestyle      = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;
+
============ 1 : Tiny box ===========
|headerstyle = text-align: center; padding: 0em; height: 1.8em;
+
-->|0={{!}}bodystyle    = width: 12em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;<!--
|labelstyle    = font-weight: bold; text-align: right; vertical-align: top; padding: 0.1em 0.5em;
+
-->{{!}}titlestyle      = text-align: center; font-size: 100%; font-weight: bold;line-height: 0.9em; height: 2em; padding: 1px;<!--
|datastyle      = text-align: left; padding: 0.1em 0.5em;
+
-->{{!}}headerstyle = text-align: center; padding: 0em; height: 1.8em;<!--
|imagestyle  = text-align: center; padding: 0em; height: 1.8em;
+
-->{{!}}labelstyle    = text-align: right; font-weight: bold; vertical-align: top; padding: 0.1em 0.5em;<!--
|title                =  {{DbParser|{{{1}}}|name}}
+
-->{{!}}datastyle      = text-align: left; padding: 0.1em 0.5em;<!--
|titlelink        =  {{DbParser|{{{1}}}|link}}
+
-->{{!}}imagestyle  = text-align: center; padding: 0em; height: 1.8em;<!--
|imagelink          =  {{DbParser|{{{1}}}|link}}  <!-- ext is set in layout : png -->
+
-->{{!}}imageoption= 100px<!--
|imageoption= 150px
+
-->{{!}}title                =  {{DbParser|{{{2}}}|name}}<!--
|caption        =  
+
-->{{!}}titlelink        =  {{DbParser|{{{2}}}|link}}<!--
|captionstyle=  
+
-->{{!}}imagelink          =  {{DbParser|{{{2}}}|link}}  <!-- ext is set in layout : png
|label1  = Hit Points
+
-->{{!}}label1  = Id<!--
|data1    ={{DbParser|{{{1}}}|Hp}}
+
-->{{!}}data1    = {{DbParser|{{{1}}}|Id}}<!--
|label2  = Armor
+
======= 0 : full box =================
|data2    = {{DbParser|{{{1}}}|Armor}}
+
-->|{{!}}bodystyle    = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;<!--
|label3  = Ahp
+
-->{{!}}titlestyle      = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;<!--
|data3    = {{DbParser|{{{1}}}|Ahp}}
+
-->{{!}}headerstyle = text-align: center; padding: 0em; height: 1.8em;<!--
|label4  = Shp
+
-->{{!}}labelstyle    = font-weight: bold; text-align: right; vertical-align: top; padding: 0.1em 0.5em;<!--
|data4    = {{DbParser|{{{1}}}|Shp}}
+
-->{{!}}datastyle      = text-align: left; padding: 0.1em 0.5em;<!--
|label5  = Rhp
+
-->{{!}}imagestyle  = text-align: center; padding: 0em; height: 1.8em;<!--
|data5    = {{DbParser|{{{1}}}|ReactorHp}}
+
-->{{!}}title                =  {{DbParser|{{{2}}}|name}}<!--
|label6   = Mass
+
-->{{!}}titlelink        =  {{DbParser|{{{2}}}|link}}<!--
|data6   = {{DbParser|{{{1}}}|Mass}}
+
-->{{!}}imagelink          =  {{DbParser|{{{2}}}|link}}  <!-- ext is set in layout : png  
|label7   = Luminosity
+
-->{{!}}imageoption= 150px<!--
|data7   = {{DbParser|{{{1}}}|Light}}
+
-->{{!}}caption        = <!--
|label8   = Transparency
+
-->{{!}}captionstyle= }}<!--
|data8   = {{DbParser|{{{1}}}|Transparency}}
+
-->{{!}}label1  = Deprecated<!--
|label9   = Make it with
+
-->{{!}}data1    ={{DbParser|{{{2}}}|Deprecated}}<!--
|data9   = {{DbParser|{{{1}}}|Factory}}
+
-->{{!}}label2  = Hp<!--
|label10   = Traded
+
-->{{!}}data2    ={{DbParser|{{{2}}}|Hp}}<!--
|data10   = {{DbParser|{{{1}}}|InShop}}
+
-->{{!}}label3  = Ahp<!--
|label11   = Category
+
-->{{!}}data3    ={{DbParser|{{{2}}}|Ahp}}<!--
|data11   = {{DbParser|{{{1}}}|cat}}
+
-->{{!}}label4  = Shp<!--
|label12   = SubCateg.
+
-->{{!}}data4    ={{DbParser|{{{2}}}|Shp}}<!--
|data12   = {{DbParser|{{{1}}}|cat2}}
+
-->{{!}}label5  = ReactorHp<!--
|label13   = 2nd SubCat
+
-->{{!}}data5    ={{DbParser|{{{2}}}|ReactorHp}}<!--
|data13   = {{DbParser|{{{1}}}|cat3}}
+
-->{{!}}label6  = Armor<!--
|label14   = Id
+
-->{{!}}data6    ={{DbParser|{{{2}}}|Armor}}<!--
|data14   = {{DbParser|{{{1}}}|Id}}<!--
+
-->{{!}}label7   = Mass<!--
 +
-->{{!}}data7   ={{DbParser|{{{2}}}|Mass}}<!--
 +
-->{{!}}label8  = Volume<!--
 +
-->{{!}}data8    ={{DbParser|{{{2}}}|Volume}}<!--
 +
-->{{!}}label9   = Light<!--
 +
-->{{!}}data9   ={{DbParser|{{{2}}}|Light}}<!--
 +
-->{{!}}label10  = LightColor<!--
 +
-->{{!}}data10    ={{DbParser|{{{2}}}|LightColor}}<!--
 +
-->{{!}}label11   = Transparency<!--
 +
-->{{!}}data11    ={{DbParser|{{{2}}}|Transparency}}<!--
 +
-->{{!}}label12  = Animated<!--
 +
-->{{!}}data12   ={{DbParser|{{{2}}}|Animated}}<!--
 +
-->{{!}}label13  = Id<!--
 +
-->{{!}}data13    ={{DbParser|{{{2}}}|Id}}<!--
 +
-->{{!}}label14   = Make with<!--
 +
-->{{!}}data14    ={{DbParser|{{{2}}}|Factory}}<!--
 +
-->{{!}}label15  = Time to make<!--
 +
-->{{!}}data15    ={{DbParser|{{{2}}}|FactoryBakeTime}}<!--
 +
-->{{!}}label16  = Item<!--
 +
-->{{!}}data16    ={{DbParser|{{{2}}}|Item}}<!--
 +
-->{{!}}label17  = Placable<!--
 +
-->{{!}}data17    ={{DbParser|{{{2}}}|Placable}}<!--
 +
-->{{!}}label18  = Explos. Abs.<!--
 +
-->{{!}}data18   ={{DbParser|{{{2}}}|ExpAbsorb}}<!--
 +
-->{{#ifeq:{{DbParser|{{{2}}}|InShop}}|yes|<!--
 +
-->{{!}}label19  = Trade Price<!--
 +
-->{{!}}data19    ={{DbParser|{{{2}}}|Price}}|<!--
 +
-->{{!}}label19   = Traded<!--
 +
-->{{!}}data19    = No}}<!--
 +
-->{{!}}label20  = cat<!--
 +
-->{{!}}data20    ={{DbParser|{{{2}}}|cat}}<!--
 +
-->{{!}}label21  = cat2<!--
 +
-->{{!}}data21    ={{DbParser|{{{2}}}|cat2}}<!--
 +
-->{{!}}label22  = cat3<!--
 +
-->{{!}}data22    ={{DbParser|{{{2}}}|cat3}}<!--
 +
-->{{!}}label23  = cat4<!--
 +
-->{{!}}data23    ={{DbParser|{{{2}}}|cat4}}<!--
 +
-->{{!}}label24  = Controlled By<!--
 +
-->{{!}}data24    ={{DbParser|{{{2}}}|CtrlBy}}<!--
 +
-->{{!}}label25  = Controlling<!--
 +
-->{{!}}data25   ={{DbParser|{{{2}}}|Ctrling}}<!--
 +
-->{{!}}label26  = Main Ctrler<!--
 +
-->{{!}}data26    ={{DbParser|{{{2}}}|MainCtrl}}<!--
 +
-->{{!}}label27   = Support Ctrler<!--
 +
-->{{!}}data27    ={{DbParser|{{{2}}}|SupportCtrl}}<!--
 +
-->{{!}}label28  = Effect Ctrler<!--
 +
-->{{!}}data28   ={{DbParser|{{{2}}}|EffectCtrl}}<!--
 +
======= otherwise legacy (old) box ==========
 +
-->|{{!}}bodystyle    = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;<!--
 +
-->{{!}}titlestyle      = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;<!--
 +
-->{{!}}headerstyle = text-align: center; padding: 0em; height: 1.8em;<!--
 +
-->{{!}}labelstyle    = font-weight: bold; text-align: right; vertical-align: top; padding: 0.1em 0.5em;<!--
 +
-->{{!}}datastyle      = text-align: left; padding: 0.1em 0.5em;<!--
 +
-->{{!}}imagestyle  = text-align: center; padding: 0em; height: 1.8em;<!--
 +
-->{{!}}title                =  {{DbParser|{{{1}}}|name}}<!--
 +
-->{{!}}titlelink        =  {{DbParser|{{{1}}}|link}}<!--
 +
-->{{!}}imagelink          =  {{DbParser|{{{1}}}|link}}  <!-- ext is set in layout : png
 +
-->{{!}}imageoption= 150px<!--
 +
-->{{!}}caption        = <!--
 +
-->{{!}}captionstyle= <!--
 +
-->{{#Ifeq:{{DbParser|{{{1}}}|Depreciated}}|true|<!--
 +
-->{{!}}label1  =<font color="red">Block</font> <!--
 +
-->{{!}}data1  =<font color="red">obsolete ! </font><!--
 +
-->{{!}}label2   = Hit Points<!--
 +
-->{{!}}data2    ={{DbParser|{{{1}}}|Hp}}<!--
 +
-->{{!}}label3  = Armor<!--
 +
-->{{!}}data3   = {{DbParser|{{{1}}}|Armor}}<!--
 +
-->{{!}}label4  = Ahp<!--
 +
-->{{!}}data4    = {{DbParser|{{{1}}}|Ahp}}<!--
 +
-->{{!}}label5   = Shp<!--
 +
-->{{!}}data5    = {{DbParser|{{{1}}}|Shp}}<!--
 +
-->{{!}}label6  = Mass<!--
 +
-->{{!}}data6   = {{DbParser|{{{1}}}|Mass}}<!--
 +
-->{{!}}label7  = Luminosity<!--
 +
-->{{!}}data7    = {{DbParser|{{{1}}}|Light}}<!--
 +
-->{{!}}label8   = Id<!--
 +
-->{{!}}data8   = {{DbParser|{{{1}}}|Id}}<!--
 
-->{{#Ifeq:{{DbParser|{{{1}}}|Depreciated}}|true|<!--
 
-->{{#Ifeq:{{DbParser|{{{1}}}|Depreciated}}|true|<!--
 
-->{{!}}label15=<font color="red">Block</font> <!--
 
-->{{!}}label15=<font color="red">Block</font> <!--
-->{{!}}data15=<font color="red">obsolete ! </font>}}
+
-->{{!}}data15=<font color="red">obsolete ! </font>}}<!--
}}<noinclude>{{Documentation}}</
+
-->}}<noinclude>{{Documentation}}</<!--
noinclude>
+
-->noinclude><!--
 +
-->

Revision as of 19:19, 11 May 2018

{{blockboxlayout|label1 = Deprecated|data1 =|label2 = Hp|data2 =|label3 = Ahp|data3 =|label4 = Shp|data4 =|label5 = ReactorHp|data5 =|label6 = Armor|data6 =|label7 = Mass|data7 =|label8 = Volume|data8 =|label9 = Light|data9 =No|label10 = LightColor|data10 =|label11 = Transparency|data11 =No|label12 = Animated|data12 =No|label13 = Id|data13 =|label14 = Make with|data14 =n/a|label15 = Time to make|data15 =|label16 = Item|data16 =|label17 = Placable|data17 =No|label18 = Explos. Abs.|data18 =|label19 = Traded|data19 = No|label20 = cat|data20 =|label21 = cat2|data21 =|label22 = cat3|data22 =|label23 = cat4|data23 =|label24 = Controlled By|data24 =|label25 = Controlling|data25 =|label26 = Main Ctrler|data26 =No|label27 = Support Ctrler|data27 =No|label28 = Effect Ctrler|data28 =No||bodystyle = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;|titlestyle = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;|headerstyle = text-align: center; padding: 0em; height: 1.8em;|labelstyle = font-weight: bold; text-align: right; vertical-align: top; padding: 0.1em 0.5em;|datastyle = text-align: left; padding: 0.1em 0.5em;|imagestyle = text-align: center; padding: 0em; height: 1.8em;|title = |titlelink = |imagelink = |imageoption= 150px|caption = |captionstyle= Template:Documentation</noinclude>