Template:Stack: Difference between revisions
From Project Nakagami
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:Stack|AddStackBreakout|count={{{count|{{{1}}}}}}|stacksize={{{stacksize|}}}|link={{{link|}}}}}</includeonly><noinclude> | <includeonly>{{#invoke:Stack|AddStackBreakout|count={{{count|{{{1}}}}}}|stacksize={{{stacksize|}}}|link={{{link|}}}|nox={{{nox|false}}}}}</includeonly><noinclude> | ||
Shows a broken-out number of stacks plus items, such as for 174 items: {{Stack|174}}. | Shows a broken-out number of stacks plus items, such as for 174 items: {{Stack|174}}. | ||
| Line 5: | Line 5: | ||
* If the number requires no additional items, only the stack count is shown: {{Stack|256}} | * If the number requires no additional items, only the stack count is shown: {{Stack|256}} | ||
* non-64 stack sizes are supported: {{Stack|56|stacksize=16}} | * non-64 stack sizes are supported: {{Stack|56|stacksize=16}} | ||
* no x prefix: {{Stack|75|nox=true}} | |||
The following parameters are supported (all except count are optional): | The following parameters are supported (all except count are optional): | ||
| Line 20: | Line 21: | ||
| How many items fit in one stack | | How many items fit in one stack | ||
| 64 | | 64 | ||
|- | |||
| nox | |||
| When set to true, removes the x in front of the number | |||
| false | |||
|- | |- | ||
| link | | link | ||
Latest revision as of 10:17, 15 July 2024
Shows a broken-out number of stacks plus items, such as for 174 items: x174 (2x64 + 46).
- In the case of less than 1 full stack, just the plain number is shown: x24
- If the number requires no additional items, only the stack count is shown: x256 (4x64)
- non-64 stack sizes are supported: x56 (3x16 + 8)
- no x prefix: 75 (1x64 + 11)
The following parameters are supported (all except count are optional):
| Parameter | Use | Default |
|---|---|---|
| count (or no name) | The number of items to break out | none, required |
| stacksize | How many items fit in one stack | 64 |
| nox | When set to true, removes the x in front of the number | false |
| link | An internal link (like Fluxduct), or an external link
|
(none) |