Template:Recipe/view/row: Difference between revisions

From Against the Storm Official Wiki
mNo edit summary
m (cleaned up template code--maybe this will help)
Line 2: Line 2:
| {{{building|Building}}}
| {{{building|Building}}}
| {{{grade|?}}}
| {{{grade|?}}}
| {{#ifexpr: {{{maxingredients|}}} > 2  
{{#ifexpr: {{{maxingredients|}}} > 2  
    |<!--then 3 columns-->  
  |<!--then 3 columns-->  
      {{#if: {{{ingredient3|}}}
    {{#if: {{{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|}}}
      |<!--then 3/3 ingredients-->
        |<!--else fewer-->  
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient3|Ingredient3}}}
      |<!--else 0-1-2/3 ingredients-->
         {{#if: {{{ingredient2|}}}
         {{#if: {{{ingredient2|}}}
           |<!--then 2/3 ingredients--> — {{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}} {{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
           |<!--then 2/3 ingredients-->
           |<!--else 1/3 ingredients--> {{!}}{{!}} — {{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
{{!}} —  
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
           |<!--else 0-1/3 ingredients-->
            {{#if: {{{ingredient1|}}}
              |<!--then 1/3 ingredients-->
{{!}}
{{!}} —  
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
              |<!--else 0/3 ingredients-->
{{!}} —
{{!}} —
{{!}} —
            }}
         }}
         }}
      }}
    }}
    |<!--else fewer than 3 columns-->
  |<!--else fewer than 3 columns-->
      {{#ifexpr: {{{maxingredients|}}} > 1
    {{#ifexpr: {{{maxingredients|}}} > 1
        |<!--then 2 columns-->
      |<!--then 2 columns-->  
          {{#if: {{{ingredient2|}}}
        {{#if: {{{ingredient2|}}}
            |<!--then 2/2 ingredients-->class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}} {{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
          |<!--then 2/2 ingredients-->
             |<!--else 1/2 ingredients--> — {{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
          }}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient2|Ingredient2}}}
         |<!--else 1 column-->
          |<!--else 0-1/2 ingredients-->
          {{#if: {{{ingredient1|}}}
             {{#if: {{{ingredient1|}}}
            |<!--then 1/1 ingredients-->class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
              |<!--then 1/2 ingredients-->
            |<!--then 0/1 ingredients--> —
{{!}} —  
          }}
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
      }}
              |<!--then 0/2 ingredients-->
  }}
{{!}} —
{{!}} —
            }}
         }}
      |<!--else 1 column-->
        {{#if: {{{ingredient1|}}}
          |<!--then 1/1 ingredients-->
{{!}}class="ats-table-recipe-ingredients-options"{{!}} {{{ingredient1|Ingredient1}}}
          |<!--else 0/1 ingredients-->
{{!}} —  
        }}
    }}
}}
| {{{product|Product}}}</includeonly><noinclude>
| {{{product|Product}}}</includeonly><noinclude>


Line 31: Line 59:
{{Recipe/view|caption=Recipe|maxingredients=1}}
{{Recipe/view|caption=Recipe|maxingredients=1}}
{{Recipe/view/row |maxingredients=1 | building={{bl|Cannery|medium}} | grade=2 | ingredient1 = 8 {{rl|Herbs|medium}} | product='''4''' {{rl|Biscuits|large}} }}
{{Recipe/view/row |maxingredients=1 | building={{bl|Cannery|medium}} | grade=2 | ingredient1 = 8 {{rl|Herbs|medium}} | product='''4''' {{rl|Biscuits|large}} }}
|}</div>
{{Recipe/view/row |maxingredients=1 | building={{bl|Kiln|medium}}<br />{{bl|Brick Oven|medium}} | grade=2 | product='''4''' {{rl|Biscuits|large}} }}
 
 
<hr>
 
 
{{Recipe/view|caption=Recipe|maxingredients=1}}
{{Recipe/view/row | maxingredients=1 | building={{bl|Kiln|medium}}<br />{{bl|Brick Oven|medium}} | grade=2 | ingredient1={{rl|Flour|medium}} | product='''4''' {{rl|Grain|large}} }}
|}</div>
|}</div>


Line 48: Line 69:
{{Recipe/view/row | maxingredients=2 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | ingredient2={{rl|Meat|medium}} | product='''8''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=2 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | ingredient2={{rl|Meat|medium}} | product='''8''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=2 | building={{bl|Bakery|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | product='''8''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=2 | building={{bl|Bakery|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | product='''8''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=2 | building={{bl|Bakery|large}} | grade=2 | product='''8''' {{rl|Grain|large}} }}
|}</div>
|}</div>


Line 58: Line 80:
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | product='''10''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | product='''10''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | ingredient2={{rl|Meat|medium}} | ingredient3={{rl|Amber|medium}} | product='''10''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | ingredient2={{rl|Meat|medium}} | ingredient3={{rl|Amber|medium}} | product='''10''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | ingredient1={{rl|Flour|medium}} | ingredient2={{rl|Meat|medium}} | ingredient3={{rl|Amber|medium}} | product='''10''' {{rl|Grain|large}} }}
{{Recipe/view/row | maxingredients=3 | building={{bl|Kiln|large}} | grade=2 | product='''10''' {{rl|Grain|large}} }}
|}</div>
|}</div>


[[Category: Reserved templates]]
[[Category: Reserved templates]]
</noinclude>
</noinclude>

Revision as of 04:32, 27 October 2024


Recipe
No recipes.
Cannery Cannery 2 8 Herbs Herbs 4 Biscuits Biscuits
Kiln Kiln
Brick Oven Brick Oven
2 4 Biscuits Biscuits




Recipe
No recipes.
Kiln Kiln 2 Flour Flour Meat Meat 8 Grain Grain
Bakery Bakery 2 Flour Flour 8 Grain Grain
Bakery Bakery 2 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 10 Grain Grain