Editing Template:Dish Bucket Table
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 2: | Line 2: | ||
|select = <!-- | |select = <!-- | ||
-->dishes.page_id=page_id, dishes.page_name=dish, dishes.quality=dish_quality, dishes.kitchenware=kitchenware, <!-- | -->dishes.page_id=page_id, dishes.page_name=dish, dishes.quality=dish_quality, dishes.kitchenware=kitchenware, <!-- | ||
-->dishes.category=category, dishes.type=type, dishes.cuisine=cuisine, dishes.strength=strength | -->dishes.category=category, dishes.type=type, dishes.cuisine=cuisine, dishes.strength=strength, <!-- | ||
-->dishes.source=source, dishes.recipe_source=recipe_source | -->dishes.source=source, dishes.recipe_source=recipe_source, <!-- | ||
-->recipes.item_1_quality=item_1_quality, recipes.item_1=item_1, <!-- | -->recipes.item_1_quality=item_1_quality, recipes.item_1=item_1, <!-- | ||
-->recipes.item_2_quality=item_2_quality, recipes.item_2=item_2, <!-- | -->recipes.item_2_quality=item_2_quality, recipes.item_2=item_2, <!-- | ||
| Line 9: | Line 9: | ||
-->recipes.item_4_quality=item_4_quality, recipes.item_4=item_4, <!-- | -->recipes.item_4_quality=item_4_quality, recipes.item_4=item_4, <!-- | ||
-->recipes.recipe=recipe | -->recipes.recipe=recipe | ||
|join = dishes.page_name=recipes.page_name | |join on = dishes.page_name=recipes.page_name | ||
| | |item_1-split = 2 | ||
- | |item_2-split = 2 | ||
|item_3-split = 2 | |||
|item_4-split = 2 | |||
|where = {{{where|<!-- | |||
-->{{#if:{{{data|}}}|<!-- | |||
-->(dish="{{{data}}}" OR dish_quality="{{{data}}}" OR recipe="{{{data}}}" OR kitchenware="{{{data}}}" <!-- | |||
-->}}} {{#if:{{{where|}}}{{{data|}}}|AND}} ( | -->OR category="{{{data}}}" OR type="{{{data}}}" OR cuisine="{{{data}}}" OR strength="{{{data}}}" <!-- | ||
-->OR source="{{{data}}}")<!-- | |||
-->}}<!-- | |||
-->}}} {{#if:{{{where|}}}{{{data|}}}|AND }}(category!="Removed") | |||
|filter = {{{filter|}}} | |filter = {{{filter|}}} | ||
| | |order by = {{{order_by|dish}}} | ||
|format = userformat | |format = userformat | ||
| | |show resultsHeader = {{{show_results_header|true}}} | ||
| | |resultsHeader = {{{results_header|Showing '''%TOTALRESULTS%''' {{#if:{{{data|}}}|[[{{{data}}}]] }}dish%ES%:}}} | ||
|header = <!-- | |header = <!-- | ||
--><table id="{{{id|}}}" class="wikitable sortable"><!-- | --><table id="{{{id|}}}" class="wikitable sortable"><!-- | ||
| Line 35: | Line 37: | ||
-->{{#if:{{{no_type|}}}||<th>Type</th>}}<!-- | -->{{#if:{{{no_type|}}}||<th>Type</th>}}<!-- | ||
--><th>Strength</th><!-- | --><th>Strength</th><!-- | ||
-->{{#if:{{{no_source|}}}||<th>Source</th>}}<!-- | -->{{#if:{{{no_source|}}}||<th>Source</th>}}<!-- | ||
--></tr> | --></tr> | ||
|userformat = <!-- | |userformat = <!-- | ||
--><tr data-row-id="%page_id%"><!-- | --><tr data-row-id="%page_id%"><!-- | ||
--><td data-search="%dish_quality%"><nowiki>{{Card|%dish%|mini=1|quality=%dish_quality%|notext=1}}</nowiki></td><!-- | --><td data-search="%dish_quality%"><nowiki>{{Card|%dish%|mini=1|quality=%dish_quality%|notext=1}}</nowiki></td><!-- | ||
--><td>[[%dish%]]</td><!-- | --><td>[[%dish%]]</td><!-- | ||
--><td><ul><!-- | |||
--><td | --><li><nowiki><!-- | ||
-->{{Array|%item_1%|;|3=²{Item¦{item}¦note=%item_1_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | |||
--> | --></nowiki></li><!-- | ||
<li | --><li><nowiki><!-- | ||
--> {{Array|%item_1%|;|3=²{Item¦{item} | -->{{Array|%item_2%|;|3=²{Item¦{item}¦note=%item_2_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li | --></nowiki></li><!-- | ||
--><li><nowiki><!-- | |||
-->{{Array|%item_3%|;|3=²{Item¦{item}¦note=%item_3_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | |||
--> | --></nowiki></li><!-- | ||
<li | --><li><nowiki><!-- | ||
--> {{Array|%item_2%|;|3=²{Item¦{item} | -->{{Array|%item_4%|;|3=²{Item¦{item}¦note=%item_4_quality%}²|template=1|sentence=1|sentence_last= or }}<!-- | ||
--></nowiki></li | --></nowiki></li><!-- | ||
--> | |||
<li | |||
-->{{Array|%item_3%|;|3=²{Item¦{item} | |||
--></nowiki></li | |||
--> | |||
<li | |||
--> {{Array|%item_4%|;|3=²{Item¦{item} | |||
--></nowiki></li | |||
--></ul></td><!-- | --></ul></td><!-- | ||
-->{{#if:{{{no_kitchenware|}}}||<td>{{Item|%kitchenware%}}</td>}}<!-- | |||
-->{{#if:{{{no_kitchenware|}}}||<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>}}<!-- | ||
--><td>%strength%</td><!-- | --><td>%strength%</td><!-- | ||
-->{{#if:{{{no_source|}}}||<td><nowiki>{{List|%source%; %recipe_source%}}</nowiki></td>}}<!-- | |||
-->{{#if:{{{no_source|}}}||<td><nowiki>{{List|%source%; | |||
--></tr> | --></tr> | ||
|footer = </table> | |footer = </table> | ||
}}</includeonly><noinclude>{{Documentation|type=Bucket}}</noinclude> | }}</includeonly><noinclude>{{Documentation|type=Bucket}}</noinclude> | ||