Template:Recipe/view/row: Difference between revisions

From Against the Storm Official Wiki
m (more diverse examples)
m (adding table cell classes for styling ingredient-options)
Line 4: Line 4:
| {{#ifexpr: {{{maxingredients|}}} > 2  
| {{#ifexpr: {{{maxingredients|}}} > 2  
   |<!--then 3 columns--> {{#if: {{{ingredient3|}}}
   |<!--then 3 columns--> {{#if: {{{ingredient3|}}}
     |<!--then 3/3 ingredients--> {{{ingredient1|Ingredient1}}} {{!}}{{!}} {{{ingredient2|Ingredient2}}} {{!}}{{!}} {{{ingredient3|}}}
     |<!--then 3/3 ingredients-->class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}} {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}} {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient3|}}}
     |<!--else fewer--> {{#if: {{{ingredient2|}}}
     |<!--else fewer--> {{#if: {{{ingredient2|}}}
       |<!--then 2/3 ingredients--> — {{!}}{{!}} {{{ingredient1|Ingredient1}}} {{!}}{{!}} {{{ingredient2|Ingredient2}}}
       |<!--then 2/3 ingredients--> — {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}} {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
       |<!--else 1/3 ingredients--> — {{!}}{{!}} — {{!}}{{!}} {{{ingredient1|Ingredient1}}}
       |<!--else 1/3 ingredients--> — {{!}}{{!}} — {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
       }}
       }}
     }}
     }}
   |<!--else fewer--> {{#ifexpr: {{{maxingredients|}}} > 1
   |<!--else fewer--> {{#ifexpr: {{{maxingredients|}}} > 1
     |<!--then 2 columns--> {{#if: {{{ingredient2|}}}
     |<!--then 2 columns--> {{#if: {{{ingredient2|}}}
       |<!--then 2/2 ingredients--> {{{ingredient1|Ingredient1}}} {{!}}{{!}} {{{ingredient2|Ingredient2}}}
       |<!--then 2/2 ingredients-->class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}} {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
       |<!--else 1/2 ingredients--> — {{!}}{{!}} {{{ingredient1|Ingredient1}}}
       |<!--else 1/2 ingredients--> — {{!}}{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
       }}
       }}
     |<!--else 1 column--> —
     |<!--else 1 column--> —

Revision as of 01:40, 27 October 2024


Recipe
No recipes.
Kiln Kiln 2 4 Grain Grain




Recipe
No recipes.
Kiln Kiln
Brick Oven Brick Oven
2 4 Grain Grain




Recipe
No recipes.
Kiln Kiln 2 Flour Flour Meat Meat 8 Grain Grain
Bakery Bakery 2 Flour Flour 8 Grain Grain




Recipe
No recipes.
Kiln Kiln 2 Flour Flour Meat Meat 10 Grain Grain
Kiln Kiln 2 Flour Flour 10 Grain Grain
Kiln Kiln 2 Flour Flour Meat Meat Amber Amber 10 Grain Grain
Kiln Kiln 2 Flour Flour Meat Meat Amber Amber 10 Grain Grain