Template:GetRecipeRank: Difference between revisions

From HorizonXI Wiki
m (added handling level 0)
(extended veteran+ category up to 140 to account for high end fish)
Line 12: Line 12:
| 91-100 = Veteran
| 91-100 = Veteran
| 101-110 = Veteran+
| 101-110 = Veteran+
| 111-120 = Veteran+
| 121-130 = Veteran+
| 131-140 = Veteran+
| #default = Unknown
| #default = Unknown
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>
Line 34: Line 37:
===Special Cases===
===Special Cases===


Recipes in the range 101-110 are labelled ''Veteran+''
Recipes in the range 101-140 are labelled ''Veteran+'' (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 110 or inputs which are not integers will produce ''Unknown''
Empty inputs, inputs above 140 or inputs which are not integers will produce ''Unknown''


<pre>{{GetRecipeRank|121}}</pre>
<pre>{{GetRecipeRank|141}}</pre>
{{GetRecipeRank|121}}
{{GetRecipeRank|141}}


<pre>{{GetRecipeRank|}}</pre>
<pre>{{GetRecipeRank|}}</pre>

Revision as of 19:32, 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-140 are labelled Veteran+ (crafts do not have recipe levels above 110 except for fishing, which has fish level as high as 134)

{{GetRecipeRank|103}}

Veteran+

{{GetRecipeRank|133}}

Veteran+

Empty inputs, inputs above 140 or inputs which are not integers will produce Unknown

{{GetRecipeRank|141}}

Unknown

{{GetRecipeRank|}}

Unknown

{{GetRecipeRank|foo}}

Unknown