Diferencia entre revisiones de «Plantilla:Tabla de estado de bloque/doc»

De WikiMinecraft
Saltar a: navegación, buscar
(Página creada con «{{documentation header}} <!-- Documentation here --> {{shortcut|bst}} This template is used to generate tables for block states. == Parametros == The unnamed parameter <c...»)
 
Línea 1: Línea 1:
 
{{documentation header}}
 
{{documentation header}}
<!-- Documentation here -->
+
<!-- Documentaciónn aquí -->
{{shortcut|bst}}
+
{{shortcut|tesb}}
This template is used to generate tables for block states.
+
Esta plantilla se usa para generar tablas para los estados de bloque. La plantilla original en inglés se llama '''Block state table''' y su forma corta '''bst''', recordar sustituirlo en los lugares que sea necesario.
  
 
== Parametros ==
 
== Parametros ==
Línea 20: Línea 20:
 
== Ejemplos de uso ==
 
== Ejemplos de uso ==
 
<pre>
 
<pre>
{{bst|snowy|type=byte
+
{{tesb|snowy|type=byte
 
|true, false|If true, this block has snow on top.
 
|true, false|If true, this block has snow on top.
 
}}
 
}}
{{bst|variant|foot=1
+
{{tesb|variant|foot=1
 
|dirt      |{{blockLink|Dirt}}
 
|dirt      |{{blockLink|Dirt}}
 
|coarse_dirt|{{blockLink|id=coarse-dirt|Dirt|Coarse Dirt}}
 
|coarse_dirt|{{blockLink|id=coarse-dirt|Dirt|Coarse Dirt}}
Línea 31: Línea 31:
  
 
;Produces:
 
;Produces:
{{bst|snowy|type=byte
+
{{tesb|snowy|type=byte
 
|true, false|If true, this block has snow on top.
 
|true, false|If true, this block has snow on top.
 
}}
 
}}
{{bst|variant|foot=1
+
{{tesb|variant|foot=1
 
|dirt      |{{blockLink|Dirt}}
 
|dirt      |{{blockLink|Dirt}}
 
|coarse_dirt|{{blockLink|id=coarse-dirt|Dirt|Coarse Dirt}}
 
|coarse_dirt|{{blockLink|id=coarse-dirt|Dirt|Coarse Dirt}}
Línea 41: Línea 41:
  
 
<includeonly>
 
<includeonly>
[[de:Vorlage:Blockstatus]]
 
 
[[Categoría:Templates]]
 
[[Categoría:Templates]]
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
[[de:Vorlage:Blockstatus/doc]]
 
 
</noinclude>
 
</noinclude>

Revisión del 01:19 30 nov 2014

[purge]

Esta es la página de documentación, debería ser transcluida a la página de plantilla principal. Véase Plantilla:Documentation para más información.

Atajo
tesb

Esta plantilla se usa para generar tablas para los estados de bloque. La plantilla original en inglés se llama Block state table y su forma corta bst, recordar sustituirlo en los lugares que sea necesario.

Parametros

The unnamed parameter {{{1}}} is used to set name of the state. Multiple states can be placed in the same column if separated by commas. Each column supports up to four states.

The parameter {{{type}}} can be set for the type of value the state uses, such as byte, int, or string. Defaults to string

The parameter {{{foot}}} can be set to 1 end the table.

Valores de parametors

Starting with {{{2}}}, unnamed parameters are used in pairs to display a row. In each row, the first parameter is the value, and the second is the description. This template supports up to sixteen rows total.

Multiple values can be placed in the same column if separated by commas. You can also use a range of numbers by placing a - between the numbers. Note that spaces are not required between the numbers and the dash.

Ejemplos de uso

{{tesb|snowy|type=byte
|true, false|If true, this block has snow on top.
}}
{{tesb|variant|foot=1
|dirt       |{{blockLink|Dirt}}
|coarse_dirt|{{blockLink|id=coarse-dirt|Dirt|Coarse Dirt}}
|podzol     |{{blockLink|Podzol}}
}}
Produces
Nombre Valor Descripción
Nbtsheet.png
 snowy
true
false
If true, this block has snow on top.
Nbtsheet.png
 variant
dirt
Dirt
coarse_dirt
Coarse Dirt
podzol
Podzol