Template:Cargo parser
Jump to navigation
Jump to search
This template takes a semi-colon list of items, parses it, then sends the parsed results to a specific template so it can be stored in a cargo table. This template has two different design outputs.
Syntax
{{Cargo parser
|Semi-colon list of items, use * to note quantity and /1 to designate as super quality. (Required)
|template = The name of template we are sending the parsed information to, for storing. (Required)
|name = If a specific name is needed. Default is {{PAGENAME}}. (optional)
|display = choose a display type default is "stacked". (optional)
|size = If we want to change the size of the icon. Default is 20. (optional)
}}
Display Options -
- Default (Stacked)
- Stacked = Each item is on its own line, stacked ontop of each other.
- UL or Bullet = Puts each item in a bulleted list
- Checkbox = Puts each item on its own line with a checkbox in front of it, that the user can use to check off items.
- Inline = Each item is listed right next to the previous with a space in between.
- Inline and = Each item is listed in a comma-separated list, where the last item in the list has "and" before it.
- Inline or = Each item is listed in a comma-separated list, where the last item in the list has "or" before it.
Examples
Stacked
{{Cargo parser|Lunar decoration data; Scrap metal*100|name=Grey Planet Level 15 Chest|template=Exploration rewards|size=15}}Level 15 Grey Planet rewards:
Inline
{{Cargo parser|Lunar decoration data; Scrap metal*100|name=Grey Planet Level 15 Chest|template=Exploration rewards|display=inline and|size=15}}
Level 15 Grey Planet rewards: , and