Template:Dish Bucket Table
Template page
More actions
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Draft | Usage |
This template uses Module:BucketGet, a script written in Lua.
Template that creates a table of Dishes by querying data stored in Bucket:Dishes and Bucket:Recipes, which retrieve data from articles that use {{Dish Infobox}} and {{Recipe}}.
Syntax
{{Dish Bucket Table|data=}}
- id – Table ID for {{Filter}}.
- data – Single condition for querying data from Bucket:Dishes or Bucket:Recipes.
- where – Override data with more selective and multiple conditions for querying data.
- filter – Filter the output of the Bucket query.
- order_by – Order the output of the Bucket query. Default: dish.
- show_results_header – Set to false to hide the results header before the output. Default: true.
- results_header – Text for the results header. Defualt: Showing %TOTALRESULTS% data dish%ES%:.
Additional Parameters
- no_kitchenware – Set to 1 to hide the Kitchenware column.
- no_category – Set to 1 to hide the Category column.
- no_type – Set to 1 to hide the Type column.
- no_source – Set to 1 to hide the Source column.
Example
Selecting with Data
{{Dish Bucket Table|data=Strange Wheat}}
Lua error: Bucket recipes not found in query.
{{Dish Bucket Table|data=Drink|order_by=strength DESC, dish ASC|results_header=There are '''%TOTALRESULTS%''' [[Drink]] dish%ES%. In order of descending '''strength''':|no_type=1}}
Lua error: Bucket recipes not found in query.
Selecting with Where and Filter
{{Dish Bucket Table|where=(kitchenware!="Cooking Pot" AND dish_quality!="Green" AND category="Everyday Dishes")|no_source=1}}
Lua error: Bucket recipes not found in query.
{{Dish Bucket Table|where=(kitchenware!="Cooking Pot" AND dish_quality!="Green" AND category="Everyday Dishes")|filter=(dish CONTAINS "Skewers")|no_source=1}}
Lua error: Bucket recipes not found in query.