Minecraft Wiki
Advertisement
[Lesen | Bearbeiten | Versionen | Aktualisieren]Buch und Feder DokumentationAchtung Zum Gebrauch von Vorlagen siehe die Vorlagen-Hilfe.

Die Inventar slot Vorlage erstellt ein Interface Element, welches aussieht und verhält wie ein in-game Invantar Slot.

Die verwendeten Bilder stammen von {{InvSprite}}, after wenn der Eintrag nicht gefunden wird, werden Einzelbilder verwendet im Format Grid <Gegenstandname>.png.

Verwendung

Alle Eingaben sind optional:

{{Slot
|[Titel]Mod:Name,Anzahl[Beschreibung]; [Titel2]Mod2:Name2,Anzahl2[Beschreibung2]; ...
|mod=Default mod (useful for animations and layout templates)
|default=Image always shown under the main image
|align=Vertical Alignment
|link=Link override
|title=Text show on mouseover
|class=Adds additional classes to the .invslot class
|style=Adds styling to the .invslot
|imgclass=Adds additional classes to the .invslot-item
|numstyle=Adds styling to the stack number
}}

Parts

The first parameter is a special parameter consisting of various "parts" grouped together in frames (delimited by ;) which will be display one after another if JavaScript is enabled. Every part is optional, but without "name", won't do anything.

Einfaches Beispiel

Zum Anzeigen eines Invantar-Gegenstands von "Rohen Schweinefleisch" mit einer Stapelgröße von 20:

Beispiel

{{Slot|Rohes Schweinefleisch,20}}

Ergibt

20

Eine Anzahl von 2-999 wird unterstützt, alles andere wird nicht angezeigt.

Aliase

Hinweis: Banner variationen sind nicht beinhaltet wegen der großen Vielfalt.

Die oben genannten Aliase können als Abkürzung für Gegenstände verwendet werden, wie z.B. alle Holzblöcke oder teile eines Namens automatisch ergänzen.

{{Slot|Alle Stämme;Goldener Apfel}}

Ergibt


When using the alias, parts can be added which will override any parts in the alias.

{{Slot|Alle Stämme,4;[&oGlänzender Apfel]Verzauberter goldener Apfel}}

Ergibt

44444444Glänzender Apfel


Mods can specify an additional aliases table using the modaliases parameter.

Titel und Beschreibungen

Der Titel Parameter kann verwendet werden um einen Titel für alle Frames zu verwenden.

{{Slot|Rohes Schweinefleisch; Gebratenes Schweinefleisch|title=Leckeres Schweinefleisch}}

Ergibt


Zum entfernen eines Titels, setze ihn auf "none": {{Slot|Rohes Schweinefleisch; Gebratenes Schweinefleisch|title=none}}

Ergibt


Allerdings können die ersten Text-Klammern verwendet werden um einen bestimmten Titel fü jeden Frame festzulegen und unterstützt die Standard formatting codes durch & anstelle von §. Wenn der Titel nur Formatierungscodes und keinen normalen Text enthält, wird der normale Titel formatiert.

{{Slot|[&b]Diamantschwert}}

Ergibt


Die letzte Text-Klammer kann für eine Beschreibung verwendet werden, welche auch standard Formatierungscodes unterstützt und kann auch mehrere Zeilen durch Schrägstriche (/) beinhalten.

{{Slot|[&b&oExcalibur]Eisenschwert[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}}

Ergibt

Subframes

Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces.

Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle:

{{Slot|{Alle Bretter};Eisenbarren}}

Ergibt

Align

Align uses the vertical-align CSS property. For example to align to the middle: Smells like {{Slot|Rohes Schweinefleisch|align=middle}} in here!

Ergibt

Smells like in here!

Default

Default is always shown and is placed under the image. {{Slot|default=Grid Layout Brauen (leer)}}{{Slot|Gewöhnlicher Wurftrank|default=Grid Layout Brauen (leer)}}

Ergibt

Link

To change the link for all frames from the image name put: {{Slot|Holzkohle|link=Kohle#Holzkohle}}

Ergibt


To remove the link, set link to none: {{Slot|Holzkohle|link=none}}

Ergibt

Note that this retains the title.

Mods

A mod image is specified with the Mod: section of the name (or by setting a default mod using the mod parameter). The image link will then link to the mod sub-page allowing correct linking of mod images. The uploaded image name should by uploaded as Grid <Name> (<Mod>).png and should be added to the Grid mods category, which prevents them from being confused with official Minecraft items.
This usage is not recommended, however, as all mod pages are being migrated to the FTB wiki.

Verfügbare Bilder

In general, an item can be referred to by its tooltip name.

For dyes, dyed items and wood, there are two shortcuts to refer to all colors or tree species. Use e.g. "Any Wood Planks" if the item appears in more than one input slot and doesn't have to be the same color in all slots. Different copies of the same "Any [item]" will switch randomly and separately among the variants. Otherwise, use "Matching [item]"; all slots containing a "Matching" item will cycle through the species or dye colors in unison, even if they're not the same item.

{{Slot|Alle Bretter}}{{Slot|Alle Holzstufen}}{{Slot|Alle Holztreppen}}

{{Slot|Passende Holzbretter}}{{Slot|Passende Holzstufen}}{{Slot|Passende Holztreppen}}

ergibt

Most items with a durability bar exist as "Damaged [item]".

See Template:InvSprite for the full list of items.

Advertisement