Vorlage:Grid/Industrial Centrifuge/doc

Aus Minecraft Gameserver Wiki
Wechseln zu: Navigation, Suche

This template is used to create a grid that looks similar to the Industrial Centrifuge's GUI screen.

Inhaltsverzeichnis

Notes[Bearbeiten]

Items in the grid are set by the parameters Container, Input, Up, Down, Left, and Right.

Each item can have a custom image by setting the "Image" parameter. For Example: RightImage would set a custom image for the item in the Right slot. If this parameter is omitted, the template will attempt to use Grid_item.png. For Example: If Left was "Generator", then the default image would be "Grid_Generator.png".

Each item can have a custom link by setting the "Link" parameter. For Example: RightLink would set a custom link for the item in the Right slot. If this parameter is omitted, the template will attempt to use [[item]]. For Example: If Left was "Generator", then the image would try to link to [[Generator]].

Usage[Bearbeiten]

{{Grid/IndustrialCentrifuge
|float=none
|Container=Empty Cell
|ContainerAmount=22
|ContainerImage=
|ContainerLink=
|Input=Lazurite Dust
|InputImage=
|InputLink=
|InputAmount=59
|Up=Aluminium Dust
|UpImage=
|UpLink=
|UpAmount=6
|Down=Calcium Cell
|DownImage=
|DownLink=
|DownAmount=8
|Left=Sodium Cell
|LeftImage=
|LeftLink=
|LeftAmount=8
|Right=Silicon Cell
|RightImage=
|RightLink=
|RightAmount=6
|EU=220,000
|Time=25
|nobreak=
}}
produces
     {{#if:Empty Cell|
[[Image:{{#if:||Grid_Empty Cell.png}}|32px|link={{#if:||Empty Cell}}|alt=Empty Cell]]
     }}
     {{#if:22|
         {{#ifexpr: {{ #if: 22
          | 22
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 22

          | 22
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:Lazurite Dust|
[[Image:{{#if:||Grid_Lazurite Dust.png}}|32px|link={{#if:||Lazurite Dust}}|alt=Lazurite Dust]]
     }}
     {{#if:59|
         {{#ifexpr: {{ #if: 59
          | 59
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 59

          | 59
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:Aluminium Dust|
[[Image:{{#if:||Grid_Aluminium Dust.png}}|32px|link={{#if:||Aluminium Dust}}|alt=Aluminium Dust]]
     }}
     {{#if:6|
         {{#ifexpr: {{ #if: 6
          | 6
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 6

          | 6
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:Calcium Cell|
[[Image:{{#if:||Grid_Calcium Cell.png}}|32px|link={{#if:||Calcium Cell}}|alt=Calcium Cell]]
     }}
     {{#if:8|
         {{#ifexpr: {{ #if: 8
          | 8
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 8

          | 8
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:Sodium Cell|
[[Image:{{#if:||Grid_Sodium Cell.png}}|32px|link={{#if:||Sodium Cell}}|alt=Sodium Cell]]
     }}
     {{#if:8|
         {{#ifexpr: {{ #if: 8
          | 8
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 8

          | 8
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:Silicon Cell|
[[Image:{{#if:||Grid_Silicon Cell.png}}|32px|link={{#if:||Silicon Cell}}|alt=Silicon Cell]]
     }}
     {{#if:6|
         {{#ifexpr: {{ #if: 6
          | 6
| 1 }} > 9 |
GridNumbersCSS.png
}}

{{#ifexpr: {{ #if: 6

          | 6
| 1 }} < 2 ||
GridNumbersCSS.png
}}
     }}
     {{#if:220,000|
220,000
     }}
     {{#if:25|
25 secs
}}

{{#if:||

}}

The Amount fields accept numbers from 1-99, or can be left blank (same as 1).

Uploading[Bearbeiten]

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