mNo edit summary |
mNo edit summary |
||
(52 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
|||
<includeonly> |
|||
The CSS style will apply a color based on the item : check, archive, seasonal. |
|||
<tr style="vertical-align: middle; {{#ifexpr: {{{check|}}}|background: rgba(92, 133, 214, 0.25) |background: rgba(100, 100, 120, 0.25)}}; overflow: hidden;"> |
|||
* 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"> |
<td style="padding-left:10px"> |
||
{{#if: {{{qttR|}}} | {{{qttR|}}}x | }} [[File:Veloren_{{{result|}}}.png| |
{{#if: {{{qttR|}}} | {{{qttR|}}}x | }} [[File:Veloren_{{{result|}}}.png|50x50px|link=]]</td> |
||
<td>[[{{{result|}}}]]</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> |
|||
<td>{{#if: {{{item0|}}} | [[Image:Veloren_Empty.png|25px|link=]] {{{item0|}}} | }} |
|||
{{#if: {{{item1|}}} | {{{qtt1|}}}x [[Image:Veloren_{{{item1|}}}.png|25px|link=]] [[{{{item1|}}}]]| }} |
|||
{{#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|}}}]]| }} |
|||
{{#if: {{{item6|}}} |, {{{qtt6|}}}x [[Image:Veloren_{{{item6|}}}.png|25px|link=]] [[{{{item6|}}}]]| }} |
|||
{{#if: {{{item7|}}} |, {{{qtt7|}}}x [[Image:Veloren_{{{item7|}}}.png|25px|link=]] [[{{{item7|}}}]]| }} |
|||
{{#if: {{{item8|}}} |, {{{qtt8|}}}x [[Image:Veloren_{{{item8|}}}.png|25px|link=]] [[{{{item8|}}}]]| }}</td> |
|||
{{#if: {{{mergestations|}}} | |
{{#if: {{{mergestations|}}} | |
||
<td rowspan="{{{rowspan|}}}"> |
<td rowspan="{{{rowspan|}}}"> |
||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
||
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
||
{{#if: {{{station3|}}} |<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
{{#if: {{{station3|}}} |+<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
||
|<td> |
|<td> |
||
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
{{#if: {{{station1|}}} | [[Image:Veloren_{{{station1|}}}.png|50px|link=]] [[{{{station1|}}}]]| }} |
||
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
{{#if: {{{station2|}}} |<br>+<br> [[Image:Veloren_{{{station2|}}}.png|25px|link=]] [[{{{station2|}}}]]| }} |
||
{{#if: {{{station3|}}} |<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
{{#if: {{{station3|}}} |+<br> [[Image:Veloren_{{{station3|}}}.png|25px|link=]] [[{{{station3|}}}]]| }}</td> |
||
| }} |
| }} |
||
<td>{{#ifexpr: {{{check|}}} |
<td>{{#ifexpr: {{{check|}}}|{{checked}}<br>{{{year|}}}-{{{month|}}}|{{unchecked}} }}{{#ifexpr: {{{seasonal|}}}|{{seasonal}}|}}{{#ifexpr: {{{archive|}}}|{{Archived}}|}}</td> |
||
</tr> |
</tr> |
||
</includeonly> |
</includeonly><!-- |
||
<noinclude> |
--><noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 90: | Line 92: | ||
"label": "Required station/tool1 for the recipe :", |
"label": "Required station/tool1 for the recipe :", |
||
"example": "Cauldron", |
"example": "Cauldron", |
||
"type": " |
"type": "string", |
||
"required": true, |
"required": true, |
||
"suggested": true, |
"suggested": true, |
||
"description": "The name of the required first station or tool for the recipe" |
"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": { |
"station2": { |
||
"label": "Required station/tool2 for the recipe :", |
"label": "Required station/tool2 for the recipe :", |
||
"example": "Loom", |
"example": "Loom", |
||
"type": " |
"type": "string", |
||
"suggested": true, |
"suggested": true, |
||
"description": "The name of the required second station or tool for the recipe" |
"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": { |
"station3": { |
||
"label": "Required station/tool3 for the recipe :", |
"label": "Required station/tool3 for the recipe :", |
||
"example": "Tanning Rak", |
"example": "Tanning Rak", |
||
"type": " |
"type": "string", |
||
"description": "The name of the required third station or tool for the recipe" |
"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": { |
"item3": { |
||
Line 168: | Line 215: | ||
"label": "Is the recipe correct ?", |
"label": "Is the recipe correct ?", |
||
"description": "Here is the recipe book : https://gitlab.com/veloren/veloren/-/blob/master/assets/common/recipe_book.ron" |
"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 197: | Line 306: | ||
"station2", |
"station2", |
||
"station3", |
"station3", |
||
"check" |
"check", |
||
"year", |
|||
"month", |
|||
"archive", |
|||
"archivedate", |
|||
"seasonal", |
|||
"partydate" |
|||
] |
] |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
[[Category:Templates]] |
[[Category:Templates]] |
||
</noinclude> |
</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 |