Template:DetermineRarity/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{Documentation}} Prints "Always", "Common", "Uncommon", "Rare" or "Very rare", based on the number in the first (and only) parameter. For example: <pre>{{DetermineRarity|50}}</pre> would produce "Uncommon", as 1/50 is considered uncommon. ==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 i...") |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
{{ |
{{documentation}} |
||
This template calculates the rarity of an item with a known/estimated drop rate |
|||
Prints "Always", "Common", "Uncommon", "Rare" or "Very rare", based on the number in the first (and only) parameter. For example: |
|||
<pre>{{DetermineRarity|50}}</pre> |
|||
would produce "Uncommon", as 1/50 is considered uncommon. |
|||
==Usage== |
==Usage== |
||
This template can be used by entering the following onto a relevant page. |
|||
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}}. |
|||
<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> |
Revision as of 00:43, 17 October 2024
This template calculates the rarity of an item with a known/estimated drop rate
Usage
This template can be used by entering the following onto a relevant page.
{{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}}
Common
Uncommon
Rare
Very Rare
Item | Quantity | Rarity | Price | High Alch | |
---|---|---|---|---|---|
Knife | 1 | Uncommon(5/129) | 70 | 3 |