Template:Table/Food
Jump to navigation
Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
- Self calling #ask table generator.
- Specific for food related categories.
- Template Switch Parts.
- [0] (none/#default): Used/called by the #ask part itself. Takes care of processing/formatting the table rows. (called for each row separately)
- [1] "switch=ask": The #ask part itself.
- "(anonymous)": Name of (food related) target category. (mandatory at the moment)
- [2] "switch=fields": Main-table initiation and setting column headers.
- "mheader=": Optional first column header text. (default: "Ïtem")
- [3] "switch=header": Optional container table with adjustable class settings.
- "(anonymous)": Container table header text. This text is the collapsed header text.
- ToDo: Header text also used for unconditional case-count. (re-evaluate that part)
- "class=": Table class specification. (Default: "mw-collapsible mw-collapsed")
- "width=": Minimum distance where the "[Expand]" option is placed.
- "minwidth=": Minimum distance where the "[Expand]" option is placed.
- Both need to be used. Maximum value is used. (other can be 0, but not empty)
- ToDo: re-check why both inputs are here. (seems they can be merged)
- "(anonymous)": Container table header text. This text is the collapsed header text.
- [4] "switch=close_table": For closing the main table. Or,
- [4] "switch=close_header": for closing the header table.
- [5] "CalculationInfo=": For setting, and adding additional field-data information. (Left over from other case. Not set/used here)
- Example preview.
Ants (6) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Visit Template:Table/Food/doc to edit this text! (How does this work?)