Template:Stack: Difference between revisions
From Project Nakagami
(Created page with "<includeonly>{{#invoke:Stack|AddStackBreakout|count={{{count|{{{1}}}}}}|stacksize={{{stacksize|}}}|link={{{link|}}}}}</includeonly><noinclude> Shows a broken-out number of stacks plus items, such as for 174 items: {{#invoke:Stack|AddStackBreakout|count=174}}. In the case of less than 1 full stack, nothing is shown: 24 {{#invoke:Stack|AddStackBreakout|count=24}} If the number requires no additional items, only the stack count is shown: 256 {{#invoke:Stack|AddStackBreako...") |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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: {{ | Shows a broken-out number of stacks plus items, such as for 174 items: {{Stack|174}}. | ||
In the case of less than 1 full stack, | * In the case of less than 1 full stack, just the plain number is shown: {{Stack|24}} | ||
* 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: | * 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 22: | 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) |