Data:Stockpiles/doc

From Ring of Brodgar
Jump to navigation Jump to search

 ◄  Stockpiles

Stockpile input options.
  • name: Unique stockpile name, Mandatory. (Default name: String displayed when hovering over the open stockpile window.)
  • capacity: Maximum number of items the stockpile can hold.
    • Allows for blank "Capacity =" or "Capacity = ?" if unknown. ("Capacity = INF" for Infinite, if that ever happens.)
  • XYobst: For stockpiles with square hitbox. Most are, but not all. (tile-size related float)
    • Xobst & Yobst: For none square stockpiles. (excludes the use of XYobst)
  • items: The item-type or types the stockpile can contain. These should be bare item-page-names. (Comma delimited for more than one item.)
    • In some cases it makes sense to pull the related page-names directly from the system. (Example: {{#ask:[[category:Bar of Any Metal|+depth=0]]|format=plainlist|link=none}}
    • Item listed pages will display a stockpile entry in there infobox.
  • alttxt: Alternative text. Intended & used as replacement for long item-list(s) in the compact table version. Can contain page-links.
  • General input-code example.
}}{{Stockpile| name = <stockpile name>
| capacity = <max capacity, int>
| Xobst = <hitbox size X-ax, float> | Yobst = <hitbox size Y-ax, float>
| items = <comma delimited page-names list> (no square brackets)
| alttxt = [[Bar of Any Metal]] ({{#ask:[[category:Bar of Any Metal|+depth=0]]|format=count}})