User:Dinoguy1000/sandbox: Difference between revisions

6,556 bytes removed ,  28 January 2011
Gnu32 took the initiative with these, kudos to him =) 
(create)
 
(Gnu32 took the initiative with these, kudos to him =) )
Line 1:
* {{[[Template:Item|Item]]}}
* {{[[Template:Block|Block]]}}
* {{[[Template:Food|Food]]}}
 
== New template ==
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAA; margin-left:0.5em">
<tr>
<td colspan=2 style="text-align: center; font-size:120%; font-weight: bold; background-color: #CCC;">{{ #if: {{{name|}}} | {{{name}}} | {{BASEPAGENAME}} }}</td>
</tr>
<tr>
<td colspan="2">[[File:{{ #if: {{{image|}}} | {{{image}}} | No image.png }}|150px|center]]</td>
</tr>
{{
#if: {{{invimage|}}}
| <tr><td colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>
}}
{{Block/row
| background = #F9F9F9
| label = Type
| field = {{ #if: {{{type|}}} | {{{type}}} | ? }}
}}
{{Block/row
| label = Durability
| field = {{ #if: {{{durability|}}} | {{{durability}}} | None }}
}}
{{Block/row
| background = #F9F9F9
| label = [[Data Values|Data value]]{{ #if: {{{data2|}}} | s }}
| field = {{
#if: {{{data|}}}
| {{{data}}}
| {{
#if: {{{datadec|}}}
|| {{
#if: {{{data1name|}}} | '''{{{data1name}}}'''<br />
}}<sub>dec:</sub> {{ #if: {{{data1|}}} | {{{data1}}} | 00 }} <sub>hex:</sub> {{ #if: {{{data1|}}} | {{dec-hex|{{{data1}}}}} | 00 }}<br />}} }} }}
</table>{{-}}
 
== [[Template:Item]] ==
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
<tr>
<td align="center" colspan=2 style="font-size:120%; font-weight: bold; background-color: #CCCCCC;">{{{name|{{BASEPAGENAME}}}}}</td>
</tr>
<tr valign="top">
<td align="center" colspan="2">[[File:{{{image|No image.png}}}|150px|center]]</td>
</tr>
{{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}}
{{Block/row2|label=Type|field={{{type|?}}}}}
{{Block/row|label=Durability|field={{{durability|None}}}}}
 
{{Block/row2|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
 
---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!--
 
The optional second data value.
 
---->{{#if:{{{data2|}}}|<!--
------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!--
------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!--
---->|}}<!--
-->}} }}} }}
</table>{{-}}
 
== [[Template:Block]] ==
<table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
<tr>
<td align="center" colspan=2 style="font-size:120%; font-weight: bold; background-color: #CCCCCC;">{{{name|{{BASEPAGENAME}}}}}</td>
</tr>
<tr valign="top">
<td align="center" colspan="2">[[File:{{{image|No block image.png}}}|150px|center]]</td>
</tr>
{{#if:{{{image2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{image2}}}|150px|center]]</td></tr>}}
{{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}}
{{#if:{{{invimage2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage2}}}|36px|center]]</td></tr>}}
{{Block/row2|label=Type|field={{{type|?}}}}}
{{#switch:{{lc:{{{type}}}}}|solid block|solid|block =
{{Block/row|label=Requirements|field={{#switch:{{lc:{{{dirt}}}}}|yes=Sunlight and dirt|no=None|sand=Sunlight and sand|#default={{{dirt|?}}}}}}}}}
{{Block/row2|label=Physics|field={{{gravity|?}}}}}
{{Block/row|label=Transparency|field={{{transparent|?}}}}}
{{Block/row2|label=Luminance|field={{{light|?}}}}}
{{Block/row|label=[[Explosion#Block_Resistance|Block Resistance]]|field={{{tntres|? blocks}}}}}
{{Block/row2|label=Tool{{#if:{{{tool2|}}}|s}}|field={{#switch:{{lc:{{{tool|{{{Tool}}}}}}}}<!--
-->|pick|pickaxe=[[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]<!--
-->|spade|shovel=[[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]<!--
-->|axe=[[File:Use-axe.png|32px|link=Tools#Axe|Axe]]<!--
-->|hoe=[[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]<!--
-->|bucket|pail=[[File:Use-bucket.png|32px|link=Tools#Bucket|Bucket]]<!--
-->|sword=[[File:Use-sword.png|32px|link=Tools#Sword|Sword]]<!--
-->|n/a|none=None<!--
-->|all|alltools|any|anytool=Any tool<!--
-->|#default=?}}<!--
-->{{#if:{{{tool2|}}}|{{#switch:{{lc:{{{tool2}}}}}<!--
-->|pick|pickaxe=[[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]<!--
-->|spade|shovel=[[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]<!--
-->|axe=[[File:Use-axe.png|32px|link=Tools#Axe|Axe]]<!--
-->|hoe=[[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]}}}}}}
{{Block/row|label=Stackable|field={{{stackable|?}}}}}
{{#switch:{{lc:{{{type}}}}}|fluid =
{{Block/row2|label=Speed of fluid movement|field={{{fluidspeed|?}}}}}
{{Block/row|label=Speed of walking through|field={{{movespeed|?}}}}}}}
{{Block/row2|label=[[Data values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
 
---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!--
 
The optional second data value.
 
---->{{#if:{{{data2|}}}|<!--
------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!--
------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!--
---->|}}<!--
-->}} }}} }}
</table>{{-}}
 
== [[Template:Food]] ==
<table class="infobox" cellpadding="4" style="width: 23em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
<tr>
<td align="center" colspan=2 style="font-size:120%; font-weight: bold; background-color: #CCCCCC;">{{{name|{{BASEPAGENAME}}}}}</td>
</tr>
<tr valign="top">
<td align="center" colspan="2">[[File:{{{image|No image.png}}}|150px|center]]</td>
</tr>
{{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}}
{{Block/row2|label=Type|field={{{type|?}}}}}
{{Block/row|label=Heals for|field={{{heals|?}}}}}
{{Block/row2|label=Cookable|field={{{cookable|?}}}}}
{{Block/row|label=[[Data values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!--
 
---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!--
 
The optional second data value.
 
---->{{#if:{{{data2|}}}|<!--
------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!--
------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!--
---->|}}<!--
-->}} }}} }}
</table>
5,927

edits