Vorlage:Grid/Machine/doc

Aus Minecraft Gameserver Wiki
< Vorlage:Grid‎ | Machine
Version vom 1. Oktober 2013, 18:35 Uhr von Kato-San (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „This template is used to create a grid that looks similar to each given Machine's GUI screen. __TOC__ == Notes == Set the type of machine with the parameter '…“)
(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 each given Machine's GUI screen.

Notes

Set the type of machine with the parameter 'Type', by default Type=Iron Furnace. Currently, the following machine types can be used with this template: Iron Furnace, Canning Machine, Compressor, Electro Furnace, Extractor, Furnace, Macerator, Recycler.

Items in the grid are set by parameters Top, Bottom and Output. Each item can have a custom image by setting the "-image" parameter. For Example: Top-image would set a custom image for item in the top slot. If this parameter is omitted, the template will attempt to use Grid item.png. For Example: If Top was "Copper Dust", then the default image would be "Grid Copper Dust.png"

When uploading mod images, the following standard is used:

  • item name.png -- A 16x16 two dimensional image of the item.
  • Grid_item name.png -- A 32x32 image of the item as it appears in a player's inventory.
  • item name_ig.png -- A larger image of the item placed in the game world (for blocks).

Each item can have a custom link by setting the "-link" parameter. For Example: Bottom-link would set a custom link for the item in the bottom slot. If this parameter is omitted, the template will attempt to use [ [ item ] ].

For Example: If Output was "Refined Iron", then the image would try to link to [ [Refined Iron] ]

Usage

{{Grid/Machine
|Type=Iron Furnace
|Top=Iron Ingot
|Bottom=Coal (Item)
|Output=Refined Iron
}}
produces
{{#if:Iron Ingot|

[[Image:{{#if:|{{{Top-image}}}|Grid_Iron Ingot.png}}|32px|link={{#if:|{{{Top-link}}}|Iron Ingot}}|alt=Iron Ingot]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:Coal (Item)|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_Coal (Item).png}}|32px|link={{#if:|{{{Bottom-link}}}|Coal (Item)}}|alt=Coal (Item)]]

}} {{#if:Refined Iron|

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

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

                | 
| 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.

Base Minecraft items and other mods

If you are using items from outside the Industrial Craft mod, you can use the "-link" parameters to link to an alternate page either within the wiki or to another webpage.

{{Grid/Machine
|Type=Macerator
|Top=Cobblestone|Top-link=Cobblestone
|Output=Sand|Output-link=Sand
}}
produces
{{#if:Cobblestone|

[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Cobblestone|Cobblestone|Cobblestone}}|alt=Cobblestone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Sand|

[[Image:{{#if:|{{{Output-image}}}|Grid_Sand.png}}|32px|link={{#if:Sand|Sand|Sand}}|alt=Sand]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}


Examples

Canning Machine

{{Grid/Machine
|Type=Canning Machine
|Top=Bread|Top-link=Bread
|Bottom=Tin Can
|Output=Canned Food
}}
produces
{{#if:Bread|

[[Image:{{#if:|{{{Top-image}}}|Grid_Bread.png}}|32px|link={{#if:Bread|Bread|Bread}}|alt=Bread]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:Tin Can|

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

}} {{#if:Canned Food|

[[Image:{{#if:|{{{Output-image}}}|Grid_Canned Food.png}}|32px|link={{#if:|{{{Output-link}}}|Canned Food}}|alt=Canned Food]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}

Compressor

{{Grid/Machine
|Type=Compressor
|Top=Mixed Metal Ingot
|Output=Advanced Alloy
}}
produces
{{#if:Mixed Metal Ingot|

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

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Advanced Alloy|

[[Image:{{#if:|{{{Output-image}}}|Grid_Advanced Alloy.png}}|32px|link={{#if:|{{{Output-link}}}|Advanced Alloy}}|alt=Advanced Alloy]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}

Electro Furnace

{{Grid/Machine
|Type=Electro Furnace
|Top=Cobblestone|Top-link=Cobblestone
|Output=Stone||Top-link=Stone
}}
produces
{{#if:Cobblestone|

[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Stone|Stone|Cobblestone}}|alt=Cobblestone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Stone|

[[Image:{{#if:|{{{Output-image}}}|Grid_Stone.png}}|32px|link={{#if:|{{{Output-link}}}|Stone}}|alt=Stone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}

Extractor

{{Grid/Machine
|Type=Extractor
|Top=Sticky Resin
|OA=3
|Output=Rubber
}}
produces
{{#if:Sticky Resin|

[[Image:{{#if:|{{{Top-image}}}|Grid_Sticky Resin.png}}|32px|link={{#if:|{{{Top-link}}}|Sticky Resin}}|alt=Sticky Resin]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Rubber|

[[Image:{{#if:|{{{Output-image}}}|Grid_Rubber.png}}|32px|link={{#if:|{{{Output-link}}}|Rubber}}|alt=Rubber]]

}}

{{#if:3|

{{#ifexpr: {{ #if: 3

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

{{#ifexpr: {{ #if: 3

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

}}

{{#if:||
}}

Furnace

{{Grid/Machine
|Type=Furnace
|Top=Cobblestone|Top-link=Cobblestone
|Bottom=Coal (Item)|Bottom-link=Coal_(Item)
|Output=Stone||Top-link=Stone
}}
produces
{{#if:Cobblestone|

[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Stone|Stone|Cobblestone}}|alt=Cobblestone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:Coal (Item)|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_Coal (Item).png}}|32px|link={{#if:/Coal_(Item)|/Coal_(Item)|Coal (Item)}}|alt=Coal (Item)]]

}} {{#if:Stone|

[[Image:{{#if:|{{{Output-image}}}|Grid_Stone.png}}|32px|link={{#if:|{{{Output-link}}}|Stone}}|alt=Stone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}

Macerator

{{Grid/Machine
|Type=Macerator
|Top=Gravel|Top-link=Gravel
|Output=Flint|Output-link=Flint
}}
produces
{{#if:Gravel|

[[Image:{{#if:|{{{Top-image}}}|Grid_Gravel.png}}|32px|link={{#if:Gravel|Gravel|Gravel}}|alt=Gravel]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Flint|

[[Image:{{#if:|{{{Output-image}}}|Grid_Flint.png}}|32px|link={{#if:Flint|Flint|Flint}}|alt=Flint]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}

Recycler

{{Grid/Machine
|Type=Recycler
|Top=Cobblestone|Top-link=Cobblestone
|Output=Scrap
}}
produces
{{#if:Cobblestone|

[[Image:{{#if:|{{{Top-image}}}|Grid_Cobblestone.png}}|32px|link={{#if:Cobblestone|Cobblestone|Cobblestone}}|alt=Cobblestone]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:|

[[Image:{{#if:|{{{Bottom-image}}}|Grid_{{{Bottom}}}.png}}|32px|link={{#if:|{{{Bottom-link}}}|{{{Bottom}}}}}|alt={{{Bottom}}}]]

}} {{#if:Scrap|

[[Image:{{#if:|{{{Output-image}}}|Grid_Scrap.png}}|32px|link={{#if:|{{{Output-link}}}|Scrap}}|alt=Scrap]]

}}

{{#if:|

{{#ifexpr: {{ #if:

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

{{#ifexpr: {{ #if:

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

}}

{{#if:||
}}