Difference between revisions of "Template:Blockbox"

From StarMade Wiki
m
m
Line 1: Line 1:
 
{{#switch:{{{1}}}<!--
 
{{#switch:{{{1}}}<!--
============ 1 : Tiny box ===========
+
============ 0 : Tiny box ===========
-->|1={{blockboxlayout <!--
+
-->|0={{blockboxlayout <!--
 
-->|bodystyle    = width: 11em; text-align: left; font-size: 88%; line-height: 0em; float: right; <!--
 
-->|bodystyle    = width: 11em; text-align: left; font-size: 88%; line-height: 0em; float: right; <!--
 
-->|titlestyle      = text-align: center; font-size: 100%; font-weight: bold;line-height: 0.9em; height: 2em; padding: 1px; <!--
 
-->|titlestyle      = text-align: center; font-size: 100%; font-weight: bold;line-height: 0.9em; height: 2em; padding: 1px; <!--
Line 15: Line 15:
 
-->|imagelink          ={{DbParser|{{{2}}}|link}}<!-- ext is set in layout : png   
 
-->|imagelink          ={{DbParser|{{{2}}}|link}}<!-- ext is set in layout : png   
 
-->|data0    = <b> ID : </b>{{DbParser|{{{2}}}|Id}} }} <!--
 
-->|data0    = <b> ID : </b>{{DbParser|{{{2}}}|Id}} }} <!--
======= 0 : full box =================
+
======= 1 legacy (old) box ==========
-->|0={{blockboxlayout <!--
+
-->|1={{blockboxlayout <!--
 +
-->|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    = 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|{{{1}}}|name}}<!--
 +
-->|titlelink        =  {{DbParser|{{{1}}}|link}}<!--
 +
-->|imagelink          =  {{DbParser|{{{1}}}|link}}  <!-- ext is set in layout : png
 +
-->|imageoption= 150px<!--
 +
-->|caption        = <!--
 +
-->|captionstyle= <!--
 +
-->|{{#Ifeq:{{DbParser|{{{1}}}|Deprecated}}|false|<!--
 +
-->{{!}}label1  =<font color="green">Block </font><!--
 +
-->{{!}}data1  =<font color="green">Up to date </font>|<!--
 +
-->{{!}}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}}}}<!--
 +
======= 2 : full box =================
 +
-->|2={{blockboxlayout <!--
 
-->|bodystyle    = width: 19em; text-align: left; font-size: 88%; line-height: 1.5em; float: right;<!--
 
-->|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;<!--
 
-->|titlestyle      = text-align: center; font-size: 125%; font-weight: bold; padding: 5px;<!--
Line 92: Line 126:
 
-->|label28  = Effect Ctrler<!--
 
-->|label28  = Effect Ctrler<!--
 
-->|data28    ={{DbParser|{{{2}}}|EffectCtrl}}}}<!--
 
-->|data28    ={{DbParser|{{{2}}}|EffectCtrl}}}}<!--
======= otherwise legacy (old) box ==========
 
-->|{{blockboxlayout <!--
 
-->|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    = 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|{{{1}}}|name}}<!--
 
-->|titlelink        =  {{DbParser|{{{1}}}|link}}<!--
 
-->|imagelink          =  {{DbParser|{{{1}}}|link}}  <!-- ext is set in layout : png
 
-->|imageoption= 150px<!--
 
-->|caption        = <!--
 
-->|captionstyle= <!--
 
-->|{{#Ifeq:{{DbParser|{{{1}}}|Deprecated}}|false|<!--
 
-->{{!}}label1  =<font color="green">Block </font><!--
 
-->{{!}}data1  =<font color="green">Up to date </font>|<!--
 
-->{{!}}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}}}}<!--
 
 
-->}}<!--
 
-->}}<!--
 
--><noinclude>{{Documentation}}</noinclude>
 
--><noinclude>{{Documentation}}</noinclude>

Revision as of 00:56, 14 May 2018