Template:DetermineRarity/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
{{ |
{{Documentation}} |
||
Prints "Always", "Common", "Uncommon", "Rare" or "Very rare", based on the number in the first (and only) parameter. For example: |
|||
This template calculates the rarity of an item with a known/estimated drop rate |
|||
<pre>{{DetermineRarity|50}}</pre> |
|||
would produce "Uncommon", as 1/50 is considered uncommon. |
|||
==Usage== |
==Usage== |
||
Primarily used with {{t|DropsLine}} to dynamically output a different rarity when the drop rate is varied. As an example, [[revenants]] share the same loot but it is more common from higher levelled monsters, as documented in {{t|Revenants/Drops}}. |
|||
This template can be used by entering the following onto a relevant page. |
|||
<pre> |
|||
{{Rarity|1/5}} |
|||
{{Rarity|1/26}} |
|||
{{Rarity|1/120}} |
|||
{{Rarity|1/10000}} |
|||
{{DropsTableHead}} |
|||
{{DropsLine|Name=Knife|Quantity=1|Rarity={{Rarity|5/129}}|Raritynotes = <small>(5/129)</small>}} |
|||
{{DropsTableBottom}} |
|||
</pre> |
|||
{{Rarity|1/5}} |
|||
{{Rarity|1/26}} |
|||
{{Rarity|1/120}} |
|||
{{Rarity|1/10000}} |
|||
{{DropsTableHead}} |
|||
{{DropsLine|name=Knife|quantity=1|rarity={{Rarity|5/129}}|raritynotes = <small>(5/129)</small>}} |
|||
{{DropsTableBottom}} |
|||
<includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly> |
<includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly> |
Latest revision as of 11:34, 17 October 2024
Prints "Always", "Common", "Uncommon", "Rare" or "Very rare", based on the number in the first (and only) parameter. For example:
{{DetermineRarity|50}}
would produce "Uncommon", as 1/50 is considered uncommon.
Usage
Primarily used with {{DropsLine}}
to dynamically output a different rarity when the drop rate is varied. As an example, revenants share the same loot but it is more common from higher levelled monsters, as documented in {{Revenants/Drops}}
.