Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:RarityWithArticle

Template page
Revision as of 19:46, 28 February 2023 by Majesstic (talk | contribs) (update to also support when a value of "common" is explicitly provided)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is useful for auto-generating text with a template, in which you'd like to refer to an item's rarity in the flow of a sentence, like so:

The {{{name}}} is {{RarityWithArticle|{{{rarity}}}}} item.

Suppose the 'name' is "Worgfang" and the 'rarity' is "uncommon". Then the result would be:

The Worgfang is an uncommon item.

For an empty rarity value, it will say "a common":

The Dagger is a common item.

For an invalid / unrecognized rarity value, it will say "an (unknown rarity)":

The Weird Sword is an (unknown rarity) item.