VOOZH about

URL: https://minecraft.wiki/w/Template:ItemAmount

⇱ Template:ItemAmount – Minecraft Wiki


Template:ItemAmount

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
Shortcuts

This template shortens an expression of a large number of items into a compacted form, which has a comment fully explaining itself.

Specify stacks and items

[edit source]

The template takes two inputs:

  • The first input is the number of stacks.
  • The second input is the number of additional items. Setting this to 0 will hide this number away.

Assuming the first input is x, the second input is y, and the total is n, it will display as <x> stack(s) +<y>.

Only specify number of items

[edit source]

You can instead only specify one parameter for the number of items, then it will automatically converts into the stacks and items format.

Specify custom amount of items per stack

[edit source]

By default, the template will treat 1 stack as 64 items. To override this, pass a third parameter, it is the amount of a stack that you want. If the number of stacks or items are 0, you still have to pass them to their corresponding parameter.

Examples

[edit source]

To express 3 stacks and 36 items:

{{ItemAmount|3|36}}

Result: 3 stacks + 36


To express 5 stacks:

{{ItemAmount|5|0}}

Result: 5 stacks


To express 450 items:

{{ItemAmount|450}}

Result: 7 stacks + 2


To express 5 stacks and 3 items, where each stack is 16 items:

{{ItemAmount|5|3|16}}

Result: 5 stacks + 3

[view] [edit] [history] [purge]The above documentation is transcluded from Template:ItemAmount/doc.
Retrieved from "https://minecraft.wiki/w/Template:ItemAmount?oldid=1231631"

Navigation menu