Template:Recipe/view: Difference between revisions

From Against the Storm Official Wiki
m (changing parameter name to be more clear)
(Updating to hide the headers if there are no recipes in the table)
Line 2: Line 2:
{|class="sortable mw-collapsible ats-table-recipe"
{|class="sortable mw-collapsible ats-table-recipe"
|+ {{{caption|Recipe}}}
|+ {{{caption|Recipe}}}
! Building
{{#ifeq: {{{numrecipes|0}}} | 0
  |<!--then no recipes-->!class=unsortable{{!}} No recipes.
  |<!--else recipes to show-->! Building
! Grade
! Grade
! Ingredient {{#ifexpr: {{{maxingredients|0}}} > 1 | &#35;1 !! Ingredient &#35;2 {{#ifexpr: {{{maxingredients|0}}} > 2 | !! Ingredient &#35;3 |}} |}}
! Ingredient {{#ifexpr: {{{maxingredients|0}}} > 1 | &#35;1 !! Ingredient &#35;2 {{#ifexpr: {{{maxingredients|0}}} > 2 | !! Ingredient &#35;3 |}} |}}
! Product
! Product
}}
</includeonly><noinclude>
</includeonly><noinclude>


{{Recipe/view|maxingredients=1}}
{{Recipe/view|numrecipes=0}}
|}</div>
 
 
<hr>
 
{{Recipe/view|maxingredients=1|numrecipes=4}}
|-
|-
| {{bl|Rainpunk Foundry|large}} || 2 || {{rl|Amber}} || {{rl|Wood}}
| {{bl|Rainpunk Foundry|large}} || 2 || {{rl|Amber}} || {{rl|Wood}}
Line 23: Line 32:




{{Recipe/view|maxingredients=2}}
{{Recipe/view|maxingredients=2|numrecipes=5}}
|-
|-
| {{bl|Alchemist's Hut|large}} || 2 || {{rl|Amber}} || {{rl|Amber}} || {{rl|Wood}}
| {{bl|Alchemist's Hut|large}} || 2 || {{rl|Amber}} || {{rl|Amber}} || {{rl|Wood}}
Line 40: Line 49:




{{Recipe/view|maxingredients=3}}
{{Recipe/view|maxingredients=3|numrecipes=6}}
|-
|-
| {{bl|Flawless Leatherworker|large}} || 2 || {{rl|Amber}} || {{rl|Amber}} || {{rl|Amber}} || {{rl|Wood}}
| {{bl|Flawless Leatherworker|large}} || 2 || {{rl|Amber}} || {{rl|Amber}} || {{rl|Amber}} || {{rl|Wood}}

Revision as of 02:56, 30 October 2024