Template:DetermineRarity/doc: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1:
{{documentationDocumentation}}
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==
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>