mNo edit summary |
mNo edit summary |
||
(47 intermediate revisions by 3 users not shown) | |||
Line 1:
<noinclude>
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
</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|
<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|}}} |
{{#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|}}}
</tr>
</includeonly><!--
--><noinclude>
<templatedata>
{
Line 82 ⟶ 92:
"label": "Required station/tool1 for the recipe :",
"example": "Cauldron",
"type": "
"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": "
"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": "
"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": {
Line 160 ⟶ 215:
"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
}
},
Line 189 ⟶ 306:
"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 |