Vorlage:Grid/Rolling Machine/doc

Aus Minecraft Gameserver Wiki
< Vorlage:Grid‎ | Rolling Machine
Version vom 2. Oktober 2013, 22:51 Uhr von Kato-San (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „This template is used to create a grid that looks similar to the Rolling Machine GUI screen. ==Usage== <pre style="width: 200px">{{Grid/Rolling Machine |A1 = …“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

This template is used to create a grid that looks similar to the Rolling Machine GUI screen.

Usage

{{Grid/Rolling Machine
|A1 = Refined Iron
|A2 = Bronze Ingot
|A3 = Tin Ingot
|B1 = Refined Iron
|B2 = Bronze Ingot
|B3 = Tin Ingot
|C1 = Refined Iron
|C2 = Bronze Ingot
|C3 = Tin Ingot
|Output = Mixed Metal Ingot
|OA = 2
}}
produces
{{#if:Refined Iron|

[[Image:{{#if:|{{{A1-image}}}|Grid_Refined Iron.png}}|32px|link={{#if:|{{{A1-link}}}|Refined Iron}}|alt=Refined Iron]]

}}{{#if:Bronze Ingot|

[[Image:{{#if:|{{{A2-image}}}|Grid_Bronze Ingot.png}}|32px|link={{#if:|{{{A2-link}}}|Bronze Ingot}}|alt=Bronze Ingot]]

}}{{#if:Tin Ingot|

[[Image:{{#if:|{{{A3-image}}}|Grid_Tin Ingot.png}}|32px|link={{#if:|{{{A3-link}}}|Tin Ingot}}|alt=Tin Ingot]]

}}{{#if:Refined Iron|

[[Image:{{#if:|{{{B1-image}}}|Grid_Refined Iron.png}}|32px|link={{#if:|{{{B1-link}}}|Refined Iron}}|alt=Refined Iron]]

}}{{#if:Bronze Ingot|

[[Image:{{#if:|{{{B2-image}}}|Grid_Bronze Ingot.png}}|32px|link={{#if:|{{{B2-link}}}|Bronze Ingot}}|alt=Bronze Ingot]]

}}{{#if:Tin Ingot|

[[Image:{{#if:|{{{B3-image}}}|Grid_Tin Ingot.png}}|32px|link={{#if:|{{{B3-link}}}|Tin Ingot}}|alt=Tin Ingot]]

}}{{#if:Refined Iron|

[[Image:{{#if:|{{{C1-image}}}|Grid_Refined Iron.png}}|32px|link={{#if:|{{{C1-link}}}|Refined Iron}}|alt=Refined Iron]]

}}{{#if:Bronze Ingot|

[[Image:{{#if:|{{{C2-image}}}|Grid_Bronze Ingot.png}}|32px|link={{#if:|{{{C2-link}}}|Bronze Ingot}}|alt=Bronze Ingot]]

}}{{#if:Tin Ingot|

[[Image:{{#if:|{{{C3-image}}}|Grid_Tin Ingot.png}}|32px|link={{#if:|{{{C3-link}}}|Tin Ingot}}|alt=Tin Ingot]]

}}{{#if:Mixed Metal Ingot|

[[Image:{{#if:|{{{Output-image}}}|Grid_Mixed Metal Ingot.png}}|32px|link={{#if:|{{{Output-link}}}|Mixed Metal Ingot}}|alt=Mixed Metal Ingot]]

}}{{#if:2|

{{#ifexpr: {{ #if: 2

                | 2
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 2

                | 2
| 1 }} < 2 ||
GridNumbersCSS.png
}}
}}

{{#if:||

}}

The OA field accepts 1-99. Leaving it blank will show nothing, using 100 to 109 will only show the last two digits (although this can be utilized to output 01 instead of just 1, for example), using anything higher will only show the last digit.