Template:Dish Bucket Table: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
| Line 41: | Line 41: | ||
--><td><ul><!-- | --><td><ul><!-- | ||
--><li><nowiki><!-- | --><li><nowiki><!-- | ||
-->{{Array|%item_1%|;|3=²{Item¦{item} | -->{{Array|%item_1%|;|3=²{Item¦{item}¦size=20¦x=1¦note=%item_1_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li><!-- | --></nowiki></li><!-- | ||
--><li><nowiki><!-- | --><li><nowiki><!-- | ||
-->{{Array|%item_2%|;|3=²{Item¦{item} | -->{{Array|%item_2%|;|3=²{Item¦{item}¦size=20¦x=1¦note=%item_2_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li><!-- | --></nowiki></li><!-- | ||
--><li><nowiki><!-- | --><li><nowiki><!-- | ||
-->{{Array|%item_3%|;|3=²{Item¦{item} | -->{{Array|%item_3%|;|3=²{Item¦{item}¦size=20¦x=1¦note=%item_3_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li><!-- | --></nowiki></li><!-- | ||
--><li><nowiki><!-- | --><li><nowiki><!-- | ||
-->{{Array|%item_4%|;|3=²{Item¦{item} | -->{{Array|%item_4%|;|3=²{Item¦{item}¦size=20¦x=1¦note=%item_4_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li><!-- | --></nowiki></li><!-- | ||
--></ul></td><!-- | --></ul></td><!-- | ||
-->{{#if:{{{no_kitchenware|}}}||<td>{{Item|%kitchenware%}}</td>}}<!-- | -->{{#if:{{{no_kitchenware|}}}||<td>{{Item|%kitchenware%|size=20}}</td>}}<!-- | ||
-->{{#if:{{{no_category|}}}||<td>%category%</td>}}<!-- | -->{{#if:{{{no_category|}}}||<td>%category%</td>}}<!-- | ||
-->{{#if:{{{no_type|}}}||<td><nowiki>{{List|%type%}}</nowiki></td>}}<!-- | -->{{#if:{{{no_type|}}}||<td><nowiki>{{List|%type%}}</nowiki></td>}}<!-- | ||
Revision as of 13:13, 15 May 2026
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.