Content added Content deleted
m (move category to no include wrap) |
(Sorry, i had to tweak the formula so the image prefix Veloren_ isn't added and we don't have to type image link, nor item link.) |
||
Line 1: | Line 1: | ||
<includeonly> |
|||
<includeonly><tr style="vertical-align: middle; background: rgba(100, 100, 120, 0.25); overflow: hidden;"> |
|||
<tr style="vertical-align: middle; background: rgba(100, 100, 120, 0.25); overflow: hidden;"> |
|||
<td style="padding-left:10px">[[File:{{{resultimage|}}}|40px|link=]]</td> |
|||
<td>{{{resultname|}}}</td> |
<td style="padding-left:10px">[[File:Veloren_{{{resultname|}}}.png|40px|link=]]</td> |
||
<td>{{{ |
<td>[[{{{resultname|}}}]]</td> |
||
<td> |
|||
{{#if: {{{mergestations|}}} | <td rowspan="{{{rowspan|}}}">{{{station|}}}</td> | <td>{{{station|}}}</td>}} |
|||
{{#if: {{{item1|}}} | {{{qtt1|}}}x [[Image:Veloren_{{{item1|}}}.png|25px|link=]] [[{{{item1|}}}]], | }} |
|||
</tr></includeonly> |
|||
{{#if: {{{item2|}}} | {{{qtt2|}}}x [[Image:Veloren_{{{item2|}}}.png|25px|link=]] [[{{{item2|}}}]], | }} |
|||
{{#if: {{{item3|}}} | {{{qtt3|}}}x [[Image:Veloren_{{{item3|}}}.png|25px|link=]] [[{{{item3|}}}]], | }} |
|||
{{#if: {{{item4|}}} | {{{qtt4|}}}x [[Image:Veloren_{{{item4|}}}.png|25px|link=]] [[{{{item4|}}}]], | }} |
|||
{{#if: {{{item5|}}} | {{{qtt5|}}}x [[Image:Veloren_{{{item5|}}}.png|25px|link=]] [[{{{item5|}}}]] | }}</td> |
|||
{{#if: {{{mergestations|}}} | |
|||
<td rowspan="{{{rowspan|}}}"> |
|||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]] | }} |
|||
{{#if: {{{station2|}}} | [[Image:Veloren_{{{station2|}}}.png|50px|link=]] [[{{{station2|}}}]] | }} |
|||
{{#if: {{{station3|}}} | [[Image:Veloren_{{{station3|}}}.png|50px|link=]] [[{{{station3|}}}]] | }}</td> |
|||
|<td> |
|||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]] | }} |
|||
{{#if: {{{station2|}}} | [[Image:Veloren_{{{station2|}}}.png|50px|link=]] [[{{{station2|}}}]] | }} |
|||
{{#if: {{{station3|}}} | [[Image:Veloren_{{{station3|}}}.png|50px|link=]] [[{{{station3|}}}]] | }}</td>}} |
|||
</tr> |
|||
</includeonly> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
"params": { |
||
"resultimage": { |
|||
"label": "Result Image", |
|||
"description": "The image of the result of the recipe.", |
|||
"example": "item_apple_stick.png", |
|||
"type": "wiki-file-name", |
|||
"required": true |
|||
}, |
|||
"resultname": { |
"resultname": { |
||
"label": "Result Name", |
"label": "Result Name", |
||
Line 21: | Line 30: | ||
"example": "Apple Stick", |
"example": "Apple Stick", |
||
"type": "string", |
"type": "string", |
||
"required": true |
|||
}, |
|||
"ingredients": { |
|||
"label": "Ingredients", |
|||
"description": "The list of ingredients of the recipe.", |
|||
"example": "2x [[Image:Twigs.png|16px|link=]] [[Twigs]] </br> 2x [[Image:apple.png|16px|link=]] [[Apple]]", |
|||
"required": true |
"required": true |
||
}, |
}, |
||
Line 46: | Line 49: | ||
"example": "7", |
"example": "7", |
||
"type": "number" |
"type": "number" |
||
}, |
|||
"qtt1": { |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"item1": { |
|||
"label": "Ingredient name 1", |
|||
"example": "Apple Stick", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"qtt2": { |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"item2": { |
|||
"label": "Ingredient name 2", |
|||
"example": "Raw Meat Slab", |
|||
"type": "wiki-page-name", |
|||
"suggested": true |
|||
}, |
|||
"qtt3": { |
|||
"type": "number" |
|||
}, |
|||
"qtt4": { |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"qtt5": { |
|||
"type": "number" |
|||
}, |
|||
"station1": { |
|||
"label": "Required station1 for the recipe :", |
|||
"example": "Cauldron", |
|||
"type": "string", |
|||
"required": true, |
|||
"suggested": true |
|||
}, |
|||
"station2": { |
|||
"label": "Required station2 for the recipe :", |
|||
"example": "Loom", |
|||
"type": "string" |
|||
}, |
|||
"station3": { |
|||
"label": "Required station3 for the recipe :", |
|||
"example": "Tanning Rak", |
|||
"type": "string" |
|||
}, |
|||
"item3": { |
|||
"label": "Ingredient name 3" |
|||
}, |
|||
"item4": { |
|||
"label": "Ingredient name 4" |
|||
}, |
|||
"item5": { |
|||
"label": "Ingredient name 5" |
|||
} |
} |
||
}, |
}, |
||
"description": "This template is to be used under Template:RecipeHeader and before Template:RecipeEnd." |
"description": "This template is to be used under Template:RecipeHeader and before Template:RecipeEnd.", |
||
"format": "block", |
|||
"paramOrder": [ |
|||
"resultname", |
|||
"station", |
|||
"mergestations", |
|||
"rowspan", |
|||
"qtt1", |
|||
"item1", |
|||
"qtt2", |
|||
"item2", |
|||
"qtt3", |
|||
"item3", |
|||
"qtt4", |
|||
"item4", |
|||
"qtt5", |
|||
"item5", |
|||
"station1", |
|||
"station2", |
|||
"station3" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Revision as of 04:02, 24 September 2022
This template is to be used under Template:RecipeHeader and before Template:RecipeEnd.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Result Name | resultname | The name of the result of the recipe.
| String | required |
Station(s) | station | The station(s) needed for the recipe.
| Unknown | required |
Merge stations | mergestations | Use this on the first reciperow you want to merge. Any
| Boolean | optional |
Rowspan | rowspan | Use on the top reciperow you want to merge. Add the number of rows you want to merge.
| Number | optional |
qtt1 | qtt1 | no description | Number | suggested |
Ingredient name 1 | item1 | no description
| String | suggested |
qtt2 | qtt2 | no description | Number | suggested |
Ingredient name 2 | item2 | no description
| Page name | suggested |
qtt3 | qtt3 | no description | Number | optional |
Ingredient name 3 | item3 | no description | Unknown | optional |
qtt4 | qtt4 | no description | Page name | optional |
Ingredient name 4 | item4 | no description | Unknown | optional |
qtt5 | qtt5 | no description | Number | optional |
Ingredient name 5 | item5 | no description | Unknown | optional |
Required station1 for the recipe : | station1 | no description
| String | required |
Required station2 for the recipe : | station2 | no description
| String | optional |
Required station3 for the recipe : | station3 | no description
| String | optional |