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>...") |
m (added handling level 0) |
||
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 15: | Line 16: | ||
==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=== |
Revision as of 20:30, 4 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+
{{GetRecipeRank|103}}
Veteran+
Empty inputs, inputs above 110 or inputs which are not integers will produce Unknown
{{GetRecipeRank|121}}
Unknown
{{GetRecipeRank|}}
Unknown
{{GetRecipeRank|foo}}
Unknown