Template:DP/Stacks

From Ring of Brodgar
Jump to navigation Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
Purpose.
Processes Data:stacks input calls and turns them into SMW sub-object properties.
Also called from infobox on subject pages to do the stack infobox-entry. (not further documented)
Syntax.
Minimal: {{DP/Stacks|name=<itemName>}} =equals=> {{DP/Stacks|name=<itemName>|capacity=<?:unknown>|items=<itemName>}}
Full: {{DP/Stacks|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.
Normal: None
(Errors)
Related page(s).
Stack -- General subject page.
Data:Stacks -- Data page.
Related template(s).
This one. (mind the "DP/Stack" capitalization!)
Related properties.
Property:Stack_name -- Relates to accepted item-type, else just the item name itself.
Property:Stack_capacity -- (See Syntax part)
Property:Stack_item -- List of accepted items(page) for given stack.
Property:Stack_alttxt -- Extra remark info during Data:Stacks Edit+"Show Preview" mode.

Visit Template:DP/Stacks/doc to edit this text! (How does this work?)