Template:GetRecipeRank: Difference between revisions
From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly>{{#switch:{{GetLevelRange|{{{1|}}}}} | 1-10 = Amateur | 11-20 = Recruit | 21-30 = Initiate | 31-40 = Novice | 41-50 = Apprentice | 51-60 = Journeyman | 61-70 = Craftsman | 71-80 = Artisan | 81-90 = Adept | 91-100 = Veteran | 101-110 = Veteran+ | #default = Unknown }}</includeonly></onlyinclude> ==Usage== When given an integer (level of crafting recipe), will return the appropriate crafting rank. ===Examples=== <pre>{{GetRecipeRank|54}}</pre>...") |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch:{{GetLevelRange|{{{1|}}}}} | <onlyinclude><includeonly>{{#switch:{{GetLevelRange|{{{1|}}}}} | ||
| 0 = Special | |||
| 1-10 = Amateur | | 1-10 = Amateur | ||
| 11-20 = Recruit | | 11-20 = Recruit | ||
Line 11: | Line 12: | ||
| 91-100 = Veteran | | 91-100 = Veteran | ||
| 101-110 = Veteran+ | | 101-110 = Veteran+ | ||
| 111-120 = Legendary | |||
| 121-130 = Legendary | |||
| 131-140 = Legendary | |||
| #default = Unknown | | #default = Unknown | ||
}}</includeonly></onlyinclude> | }}</includeonly></onlyinclude> | ||
==Usage== | ==Usage== | ||
When given an integer (level of crafting recipe), will return the appropriate crafting rank. | When given an integer (level of crafting recipe), will return the appropriate crafting rank. | ||
*Recipes of level 0 (e.g. for event items) are treated extra and return the word "Special". | |||
===Examples=== | ===Examples=== | ||
Line 33: | Line 37: | ||
===Special Cases=== | ===Special Cases=== | ||
Recipes in the range 101-110 are labelled ''Veteran+'' | Recipes in the range 101-110 are labelled ''Veteran+'' and 111-140 ''Legendary'' (crafts do not have recipe levels above 110 except for fishing, which has fish level as high as 134) | ||
<pre>{{GetRecipeRank|103}}</pre> | <pre>{{GetRecipeRank|103}}</pre> | ||
{{GetRecipeRank|103}} | {{GetRecipeRank|103}} | ||
<pre>{{GetRecipeRank|133}}</pre> | |||
{{GetRecipeRank|133}} | |||
Empty inputs, inputs above | Empty inputs, inputs above 140 or inputs which are not integers will produce ''Unknown'' | ||
<pre>{{GetRecipeRank| | <pre>{{GetRecipeRank|141}}</pre> | ||
{{GetRecipeRank| | {{GetRecipeRank|141}} | ||
<pre>{{GetRecipeRank|}}</pre> | <pre>{{GetRecipeRank|}}</pre> |
Latest revision as of 20:58, 7 September 2024
Usage
When given an integer (level of crafting recipe), will return the appropriate crafting rank.
- Recipes of level 0 (e.g. for event items) are treated extra and return the word "Special".
Examples
{{GetRecipeRank|54}}
Journeyman
{{GetRecipeRank|3}}
Amateur
{{GetRecipeRank|88}}
Adept
{{GetRecipeRank|99}}
Veteran
Special Cases
Recipes in the range 101-110 are labelled Veteran+ and 111-140 Legendary (crafts do not have recipe levels above 110 except for fishing, which has fish level as high as 134)
{{GetRecipeRank|103}}
Veteran+
{{GetRecipeRank|133}}
Legendary
Empty inputs, inputs above 140 or inputs which are not integers will produce Unknown
{{GetRecipeRank|141}}
Unknown
{{GetRecipeRank|}}
Unknown
{{GetRecipeRank|foo}}
Unknown