(Created page with "{{RecipeHeader}}{{reciperow|resultname=test}} <includeonly><tr> <td>{{{resultimage|}}} [[{{{resultname|}}}]]</td> </tr></includeonly>") |
mNo edit summary |
||
(109 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
|||
{{RecipeHeader}}{{reciperow|resultname=test}} |
|||
The CSS style will apply a color based on the item : check, archive, seasonal. |
|||
<includeonly><tr> |
|||
* check = the recipe is correct = clear blue |
|||
<td>{{{resultimage|}}} [[{{{resultname|}}}]]</td> |
|||
* archive = no longer exist in game = brow |
|||
</tr></includeonly> |
|||
* seasonal = appear during event as christmas, halloween = gold |
|||
item0 is for a lot of items as "all ingots" "all hides", it is mainly used for salvaging recipe. Here is the simplified item formula to help ya decifering the whole bracket mess : |
|||
if: item1 exist then display qtt1 x (picture of item1) (link to item1) else nothing |
|||
</noinclude><!-- |
|||
--><includeonly> |
|||
<tr style="vertical-align: middle;{{#ifexpr: {{{check|}}}|background: rgba(92, 133, 214, 0.25)|}};{{#ifexpr: {{{seasonal|}}}|background: rgba(255, 90, 0, 0.25)|}};{{#ifexpr: {{{archive|}}}|background: rgba(127, 85, 50, 0.25)|}}; overflow: hidden;"> |
|||
<td style="padding-left:10px"> |
|||
{{#if: {{{qttR|}}} | {{{qttR|}}}x | }} [[File:Veloren_{{{result|}}}.png|50x50px|link=]]</td> |
|||
<td>[[{{{result|}}}]]</td> |
|||
<td style="text-align:left;">{{#if: {{{item0|}}} | [[Image:Veloren_Empty.png|25px|link=]] {{{item0|}}} | }}{{#if: {{{item1|}}} | {{{qtt1|}}}x [[Image:Veloren_{{{item1|}}}.png|25px|link=]] [[{{{item1|}}}]]| }}{{#if: {{{item2|}}} |<br> {{{qtt2|}}}x [[Image:Veloren_{{{item2|}}}.png|25px|link=]] [[{{{item2|}}}]]| }}{{#if: {{{item3|}}} |<br> {{{qtt3|}}}x [[Image:Veloren_{{{item3|}}}.png|25px|link=]] [[{{{item3|}}}]]| }}{{#if: {{{item4|}}} |<br> {{{qtt4|}}}x [[Image:Veloren_{{{item4|}}}.png|25px|link=]] [[{{{item4|}}}]]| }}{{#if: {{{item5|}}} |<br> {{{qtt5|}}}x [[Image:Veloren_{{{item5|}}}.png|25px|link=]] [[{{{item5|}}}]]| }}{{#if: {{{item6|}}} |<br> {{{qtt6|}}}x [[Image:Veloren_{{{item6|}}}.png|25px|link=]] [[{{{item6|}}}]]| }}{{#if: {{{item7|}}} |<br> {{{qtt7|}}}x [[Image:Veloren_{{{item7|}}}.png|25px|link=]] [[{{{item7|}}}]]| }}{{#if: {{{item8|}}} |<br> {{{qtt8|}}}x [[Image:Veloren_{{{item8|}}}.png|25px|link=]] [[{{{item8|}}}]]| }}</td> |
|||
{{#if: {{{mergestations|}}} | |
|||
<td rowspan="{{{rowspan|}}}"> |
|||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
|||
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
|||
{{#if: {{{station3|}}} |+<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
|||
|<td> |
|||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
|||
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
|||
{{#if: {{{station3|}}} |+<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
|||
| }} |
|||
<td>{{#ifexpr: {{{check|}}}|{{checked}}<br>{{{year|}}}-{{{month|}}}|{{unchecked}} }}{{#ifexpr: {{{seasonal|}}}|{{seasonal}}|}}{{#ifexpr: {{{archive|}}}|{{Archived}}|}}</td> |
|||
</tr> |
|||
</includeonly><!-- |
|||
--><noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"result": { |
|||
"label": "Result name (in title case) :", |
|||
"description": "The name of the result of the recipe in title case.", |
|||
"example": "Apple Stick", |
|||
"type": "wiki-page-name", |
|||
"required": true |
|||
}, |
|||
"mergestations": { |
|||
"label": "Merge stations", |
|||
"description": "Use this on the first reciperow you want to merge. Any ", |
|||
"example": "Yes/*leave empty for no*", |
|||
"type": "boolean" |
|||
}, |
|||
"rowspan": { |
|||
"label": "Rowspan", |
|||
"description": "Use on the top reciperow you want to merge. Add the number of rows you want to merge.", |
|||
"example": "7", |
|||
"type": "number" |
|||
}, |
|||
"qtt1": { |
|||
"type": "number", |
|||
"suggested": true, |
|||
"label": "Quantity item1 :" |
|||
}, |
|||
"item1": { |
|||
"label": "item1 (in title case) :", |
|||
"example": "Apple Stick", |
|||
"type": "wiki-page-name", |
|||
"suggested": true, |
|||
"description": "The name of the first ingredient of the recipe in title case." |
|||
}, |
|||
"qtt2": { |
|||
"type": "number", |
|||
"suggested": true, |
|||
"label": "Quantity of item2" |
|||
}, |
|||
"item2": { |
|||
"label": "Item2 name (in title case) :", |
|||
"example": "Raw Meat Slab", |
|||
"type": "wiki-page-name", |
|||
"suggested": true, |
|||
"description": "The name of the second ingredient of the recipe in title case." |
|||
}, |
|||
"qtt3": { |
|||
"type": "number", |
|||
"label": "Quantity of item3", |
|||
"suggested": true |
|||
}, |
|||
"qtt4": { |
|||
"type": "wiki-page-name", |
|||
"label": "Quantity of item4" |
|||
}, |
|||
"qtt5": { |
|||
"type": "number", |
|||
"label": "Quantity of item5" |
|||
}, |
|||
"station1": { |
|||
"label": "Required station/tool1 for the recipe :", |
|||
"example": "Cauldron", |
|||
"type": "string", |
|||
"required": true, |
|||
"suggested": true, |
|||
"description": "The name of the required first station or tool for the recipe", |
|||
"suggestedvalues": [ |
|||
"Anvil", |
|||
"Cauldron", |
|||
"Cooking Pot", |
|||
"Crafting Bench", |
|||
"Forge", |
|||
"Loom", |
|||
"Spinning Wheel", |
|||
"Tanning Rack", |
|||
"Craftsman Hammer", |
|||
"Mortar and Pestle", |
|||
"Sewing Set", |
|||
"Repair Bench", |
|||
"Salvaging Bench" |
|||
] |
|||
}, |
|||
"station2": { |
|||
"label": "Required station/tool2 for the recipe :", |
|||
"example": "Loom", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"description": "The name of the required second station or tool for the recipe", |
|||
"suggestedvalues": [ |
|||
"Anvil", |
|||
"Cauldron", |
|||
"Cooking Pot", |
|||
"Crafting Bench", |
|||
"Forge", |
|||
"Loom", |
|||
"Spinning Wheel", |
|||
"Tanning Rack", |
|||
"Craftsman Hammer", |
|||
"Mortar and Pestle", |
|||
"Sewing Set", |
|||
"Repair Bench", |
|||
"Salvaging Bench" |
|||
] |
|||
}, |
|||
"station3": { |
|||
"label": "Required station/tool3 for the recipe :", |
|||
"example": "Tanning Rak", |
|||
"type": "string", |
|||
"description": "The name of the required third station or tool for the recipe", |
|||
"suggestedvalues": [ |
|||
"Anvil", |
|||
"Cauldron", |
|||
"Cooking Pot", |
|||
"Crafting Bench", |
|||
"Forge", |
|||
"Loom", |
|||
"Spinning Wheel", |
|||
"Tanning Rack", |
|||
"Craftsman Hammer", |
|||
"Mortar and Pestle", |
|||
"Sewing Set", |
|||
"Repair Bench", |
|||
"Salvaging Bench" |
|||
] |
|||
}, |
|||
"item3": { |
|||
"label": "Item3 name (in title case) :", |
|||
"type": "wiki-page-name", |
|||
"suggested": true, |
|||
"description": "The name of the third ingredient of the recipe in title case." |
|||
}, |
|||
"item4": { |
|||
"label": "Item4 name (in title case) :", |
|||
"type": "wiki-page-name", |
|||
"description": "The name of the fourth ingredient of the recipe in title case." |
|||
}, |
|||
"item5": { |
|||
"label": "Item5 name (in title case) :", |
|||
"type": "wiki-page-name", |
|||
"description": "The name of the fifth ingredient of the recipe in title case." |
|||
}, |
|||
"qttR": { |
|||
"label": "Quantity of the final item", |
|||
"type": "number", |
|||
"suggested": true |
|||
}, |
|||
"qtt6": { |
|||
"label": "Quantity of item6", |
|||
"type": "number" |
|||
}, |
|||
"item6": { |
|||
"label": "Item6 name (in title case) :", |
|||
"description": "The name of the sixth ingredient of the recipe in title case.", |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"qtt7": { |
|||
"label": "Quantity of item7", |
|||
"type": "number" |
|||
}, |
|||
"item7": { |
|||
"label": "Item7 name (in title case) :", |
|||
"description": "The name of the seventh ingredient of the recipe in title case.", |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"qtt8": { |
|||
"label": "Quantity of item8", |
|||
"type": "number" |
|||
}, |
|||
"item8": { |
|||
"label": "Item8 name (in title case) :", |
|||
"description": "The name of the eighth ingredient of the recipe in title case.", |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"item0": { |
|||
"label": "Set of items as : \"All iron items\"", |
|||
"example": "All bronze armors", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"check": { |
|||
"type": "boolean", |
|||
"autovalue": "0", |
|||
"suggested": true, |
|||
"label": "Is the recipe correct ?", |
|||
"description": "Here is the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron" |
|||
}, |
|||
"archive": { |
|||
"label": "Is the recipe removed from veloren ?", |
|||
"description": "After an update, the recipe no longer appear in crafting recipe. if the recipe has changed, don't check, change the recipe.", |
|||
"type": "boolean", |
|||
"suggested": true, |
|||
"autovalue": "0" |
|||
}, |
|||
"archivedate": { |
|||
"label": "Veloren version :", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"description": "Indicate the last Veloren version before its removal.", |
|||
"example": "The item was in v0.12 and removed in v0.13 or later. So choose v0.12", |
|||
"suggestedvalues": [ |
|||
"v0.12", |
|||
"v0.13", |
|||
"v0.14", |
|||
"v0.15" |
|||
] |
|||
}, |
|||
"seasonal": { |
|||
"label": "Seasonal ?", |
|||
"description": "Is the item only available during some event ? eg : Christmas or Veloren's anniversary celebration ?", |
|||
"type": "boolean", |
|||
"autovalue": "0" |
|||
}, |
|||
"partydate": { |
|||
"label": "Party date :", |
|||
"description": "The date of the party, type either Christmas or YY-MM-DD", |
|||
"type": "date" |
|||
}, |
|||
"year": { |
|||
"description": "The current year of your verification.", |
|||
"type": "number", |
|||
"suggestedvalues": [ |
|||
"23", |
|||
"24", |
|||
"25", |
|||
"26", |
|||
"27" |
|||
], |
|||
"suggested": true |
|||
}, |
|||
"month": { |
|||
"description": "The current month of your verification.", |
|||
"type": "number", |
|||
"suggestedvalues": [ |
|||
"01", |
|||
"02", |
|||
"03", |
|||
"04", |
|||
"05", |
|||
"06", |
|||
"07", |
|||
"08", |
|||
"09", |
|||
"10", |
|||
"11", |
|||
"12" |
|||
], |
|||
"suggested": true |
|||
} |
|||
}, |
|||
"description": "This template is to be used under Template:RecipeHeader and before Template:RecipeEnd. Each words in ingredients and recipe must be capitalized (except : of, and) and in singular.", |
|||
"format": "inline", |
|||
"paramOrder": [ |
|||
"qttR", |
|||
"result", |
|||
"mergestations", |
|||
"rowspan", |
|||
"item0", |
|||
"qtt1", |
|||
"item1", |
|||
"qtt2", |
|||
"item2", |
|||
"qtt3", |
|||
"item3", |
|||
"qtt4", |
|||
"item4", |
|||
"qtt5", |
|||
"item5", |
|||
"qtt6", |
|||
"item6", |
|||
"qtt7", |
|||
"item7", |
|||
"qtt8", |
|||
"item8", |
|||
"station1", |
|||
"station2", |
|||
"station3", |
|||
"check", |
|||
"year", |
|||
"month", |
|||
"archive", |
|||
"archivedate", |
|||
"seasonal", |
|||
"partydate" |
|||
] |
|||
} |
|||
</templatedata> |
|||
[[Category:Templates]] |
|||
</noinclude> |
Latest revision as of 21:35, 28 January 2024
The CSS style will apply a color based on the item : check, archive, seasonal.
- check = the recipe is correct = clear blue
- archive = no longer exist in game = brow
- seasonal = appear during event as christmas, halloween = gold
item0 is for a lot of items as "all ingots" "all hides", it is mainly used for salvaging recipe. Here is the simplified item formula to help ya decifering the whole bracket mess : if: item1 exist then display qtt1 x (picture of item1) (link to item1) else nothing
This template is to be used under Template:RecipeHeader and before Template:RecipeEnd. Each words in ingredients and recipe must be capitalized (except : of, and) and in singular.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Quantity of the final item | qttR | no description | Number | suggested |
Result name (in title case) : | result | The name of the result of the recipe in title case.
| Page name | 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 |
Set of items as : "All iron items" | item0 | no description
| String | suggested |
Quantity item1 : | qtt1 | no description | Number | suggested |
item1 (in title case) : | item1 | The name of the first ingredient of the recipe in title case.
| Page name | suggested |
Quantity of item2 | qtt2 | no description | Number | suggested |
Item2 name (in title case) : | item2 | The name of the second ingredient of the recipe in title case.
| Page name | suggested |
Quantity of item3 | qtt3 | no description | Number | suggested |
Item3 name (in title case) : | item3 | The name of the third ingredient of the recipe in title case. | Page name | suggested |
Quantity of item4 | qtt4 | no description | Page name | optional |
Item4 name (in title case) : | item4 | The name of the fourth ingredient of the recipe in title case. | Page name | optional |
Quantity of item5 | qtt5 | no description | Number | optional |
Item5 name (in title case) : | item5 | The name of the fifth ingredient of the recipe in title case. | Page name | optional |
Quantity of item6 | qtt6 | no description | Number | optional |
Item6 name (in title case) : | item6 | The name of the sixth ingredient of the recipe in title case. | Page name | optional |
Quantity of item7 | qtt7 | no description | Number | optional |
Item7 name (in title case) : | item7 | The name of the seventh ingredient of the recipe in title case. | Page name | optional |
Quantity of item8 | qtt8 | no description | Number | optional |
Item8 name (in title case) : | item8 | The name of the eighth ingredient of the recipe in title case. | Page name | optional |
Required station/tool1 for the recipe : | station1 | The name of the required first station or tool for the recipe
| String | required |
Required station/tool2 for the recipe : | station2 | The name of the required second station or tool for the recipe
| String | suggested |
Required station/tool3 for the recipe : | station3 | The name of the required third station or tool for the recipe
| String | optional |
Is the recipe correct ? | check | Here is the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron
| Boolean | suggested |
year | year | The current year of your verification.
| Number | suggested |
month | month | The current month of your verification.
| Number | suggested |
Is the recipe removed from veloren ? | archive | After an update, the recipe no longer appear in crafting recipe. if the recipe has changed, don't check, change the recipe.
| Boolean | suggested |
Veloren version : | archivedate | Indicate the last Veloren version before its removal.
| String | suggested |
Seasonal ? | seasonal | Is the item only available during some event ? eg : Christmas or Veloren's anniversary celebration ?
| Boolean | optional |
Party date : | partydate | The date of the party, type either Christmas or YY-MM-DD | Date | optional |