Difference between revisions of "Template:Recipe Row"

From Space Haven Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
  |    product = <!-- Item which is produced -->
 
  |    product = <!-- Item which is produced -->
 
  |      skill = <!-- Skill & Skilllevel needed -->
 
  |      skill = <!-- Skill & Skilllevel needed -->
 +
|    category = <!-- Category of product -->
 
  |        rows = <!-- Number of different ingredients -->
 
  |        rows = <!-- Number of different ingredients -->
 
  | ingredient1 = <!-- Ingredient 1 -->
 
  | ingredient1 = <!-- Ingredient 1 -->
Line 9: Line 10:
 
  | ingredient3 = <!-- Ingredient 3 -->
 
  | ingredient3 = <!-- Ingredient 3 -->
 
  |    amount3 = <!-- Amount of ingredient 3 -->
 
  |    amount3 = <!-- Amount of ingredient 3 -->
 +
| ingredient4 = <!-- Ingredient 4 -->
 +
|    amount4 = <!-- Amount of ingredient 4 -->
 
</noinclude>
 
</noinclude>
  
 
  | rowspan="{{{rows|}}}" | [[File:Item_{{{product|}}}.png|center|link={{{product|}}}]]  
 
  | rowspan="{{{rows|}}}" | [[File:Item_{{{product|}}}.png|center|link={{{product|}}}]]  
 
  | rowspan="{{{rows|}}}" | '''[[{{{product|}}}]]'''
 
  | rowspan="{{{rows|}}}" | '''[[{{{product|}}}]]'''
  | rowspan="{{{rows|}}}" | [[Skills|{{{skill|}}}]]
+
  {{#if: {{{category|}}} |
 +
  {{!}} rowspan="{{{rows|}}}" {{!}} [[{{{category|}}}]]
 +
|}}
 +
{{#if: {{{skill|}}} |
 +
  {{!}} rowspan="{{{rows|}}}" {{!}} [[Skills|{{{skill|}}}]]
 +
|}}
 
  | style="width: 1%" | [[File:Item_{{{ingredient1|}}}.png|30px|link={{{ingredient1|}}}]]
 
  | style="width: 1%" | [[File:Item_{{{ingredient1|}}}.png|30px|link={{{ingredient1|}}}]]
 
  | style="width: 1%" | {{{amount1|}}}
 
  | style="width: 1%" | {{{amount1|}}}
Line 29: Line 37:
 
   {{!}} [[{{{ingredient3|}}}]]
 
   {{!}} [[{{{ingredient3|}}}]]
 
   {{!}}-
 
   {{!}}-
  |}} |-
+
  |}}
 +
{{#if: {{{ingredient4|}}}{{{amount4|}}} |
 +
  {{!}} style="width: 1%" {{!}} [[File:Item_{{{ingredient4|}}}.png|30px|link={{{ingredient4|}}}]]
 +
  {{!}} style="width: 1%" {{!}} {{{amount4|}}}
 +
  {{!}} [[{{{ingredient4|}}}]]
 +
  {{!}}-
 +
|}}

Latest revision as of 10:26, 28 March 2025

|     product = 
|       skill = 
|    category = 
|        rows = 
| ingredient1 = 
|     amount1 = 
| ingredient2 = 
|     amount2 = 
| ingredient3 = 
|     amount3 = 
| ingredient4 = 
|     amount4 = 


| rowspan="" |

| rowspan="" | [[]]


| style="width: 1%" | 30px
| style="width: 1%" | 
| [[]]
|-