Template:Stack
Jump to navigation
Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
- Purpose.
- Processes stack-call(s) and turns them into SMW sub-object properties.
- (Saved property data to be used in infobox stack entry)
- Syntax.
- Minimal: {{stack|name=<itemName>}} =equals=> {{stack|name=<itemName>|capacity=<?:unknown>|items=<itemName>}}
- Full: {{stack|name=<itemName>|capacity=<? or +INT>|items=<pageList>|alttxt=<text>}}
- name: sub-object name. Use related page name if available. (required parm)
- capacity: Max capacity of the stack.
- Special capacity values:
- ?: Unknown if item stacks or not. (is the default if capacity parm is not used) (saved as -1 in related property)
- 0: Item don't stacks.
- 1: Item stacks, but max is unknown.
- Capacity errors: Negative value or text => saved as -2 in related property.
- items: Comma separate list of related item-pages (page1,page2,...). If items parm is not used it defaults to using the given sub-object name.
- alttxt: Alternative display text in table display(wip) for when the items list is kinda long.
- Display output.
- None
- (Errors)
- Related page(s).
- Related template(s).
...
Visit Template:Stack/doc to edit this text! (How does this work?)
<! -- debug/preview --
-->