Cambios

Saltar a: navegación, buscar

Plantilla:Data value table/se

1262 bytes añadidos, 10:23 19 feb 2014
Created page with "<includeonly>{{#if: {{{spritetype|}}} | {{#vardefine: datavaluespritetype | {{{spritetype}}} }} }}{{ #ifeq: {{#var: datavalueindex | 0 }} | 0 | <table class="wikitable" style..."
<includeonly>{{#if: {{{spritetype|}}} | {{#vardefine: datavaluespritetype | {{{spritetype}}} }} }}{{
#ifeq: {{#var: datavalueindex | 0 }} | 0
| <table class="wikitable" style="text-align:center"><tr>
<th rowspan="2"></th>
<th colspan="3">[[Data values/se|Data värde]]</th>
<th rowspan="2">Beskrivning</th>
</tr><tr>
<th><abbr title="Decimal">Dec</abbr></th>
<th><abbr title="Hexadecimal">Hex</abbr></th>
<th><abbr title="Binär">Bin</abbr></th>
</tr>
}}<tr>
<td>{{
#switch: {{#var: datavaluespritetype | block }}
| item = {{#if: {{{sprite|}}} | {{ItemSprite|{{{sprite}}}}} | {{BlockSprite|air}} }}
| block | #default = {{BlockSprite|{{{sprite|air}}}}}
}}</td>
<td>{{#var: datavalueindex | 0 }}</td>
<td>{{decimal to hexadecimal converter|{{#var: datavalueindex | 0 }}}}</td>
<td>{{decimal to binary converter|{{#var: datavalueindex | 0 }}}}</td>
<td>{{{1|<span style="color:gray">(unused)</span>}}}</td>
</tr>{{
#ifexpr: {{#ifeq: {{{foot|0}}} | 0 | 0 | 1 }} or ({{#var: datavalueindex | 0 }} >= 15)
| </table>{{#vardefine: datavalueindex | 0 }}
| {{#vardefine: datavalueindex | {{#expr: {{#var: datavalueindex | 0 }} + 1 }} }}
}}</includeonly><noinclude>{{/doc}}

[[nl:Sjabloon:Data value table]]

[[Category:Templates]]</noinclude>
Usuario anónimo

Menú de navegación