Template:Abundance: Difference between revisions

From HorizonXI Wiki
No edit summary
Tag: visualeditor-wikitext
(added optional confidence interval to output)
Line 20: Line 20:
-->}}}}}}}}}}}}}}<!--
-->}}}}}}}}}}}}}}<!--


--><sup>({{#expr:{{{1}}} / {{{2}}} * 100 round 1}}%)</sup><!--
--><sup>({{#expr:{{{1}}} / {{{2}}} * 100 round 1}}{{#if: {{{CI|}}}|{{ConfidenceInterval|{{{1}}}|{{{2}}}}}|}}%)</sup><!--


-->|{{#ifexpr:{{{2}}} < 500|gray}}<!--
-->|{{#ifexpr:{{{2}}} < 500|gray}}<!--
Line 65: Line 65:
*"Map" (case-insensitive) can be used as the "number of items" value to display "''Received if not previously obtained''".
*"Map" (case-insensitive) can be used as the "number of items" value to display "''Received if not previously obtained''".
*"Quest" (case-insensitive) can be used as the "number of items" value to display "''Received with quest active''".
*"Quest" (case-insensitive) can be used as the "number of items" value to display "''Received with quest active''".
*optional parameter CI has been added to display a 95% confidence interval. Setting it to true, e.g. <nowiki>{{Abundance|98|232|CI=true}}</nowiki> will display the confidence interval in the output.


===Examples===
===Examples===
{|border="1"
{|border="1"
|- BGCOLOR="e3e3e3"
|- BGCOLOR="e3e3e3"
! Code !! Result
! Code !! Result !! Result with CI
|-
|-
|<pre style="white-space:pre-line">{{Abundance|map}}</pre>
|<pre style="white-space:pre-line">{{Abundance|map}}</pre>
|{{Abundance|map}}
|{{Abundance|map}}
|{{Abundance|map|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|quested}}</pre>
|<pre style="white-space:pre-line">{{Abundance|quested}}</pre>
|{{Abundance|quested}}
|{{Abundance|quested}}
|{{Abundance|quested|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance||}}</pre>
|<pre style="white-space:pre-line">{{Abundance||}}</pre>
|{{Abundance||}}
|{{Abundance||}}
|{{Abundance|||CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|0|0}}</pre>
|<pre style="white-space:pre-line">{{Abundance|0|0}}</pre>
|{{Abundance|0|0}}
|{{Abundance|0|0}}
|{{Abundance|0|0|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|0|5}}</pre>
|<pre style="white-space:pre-line">{{Abundance|0|5}}</pre>
|{{Abundance|0|5}}
|{{Abundance|0|5}}
|{{Abundance|0|5|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|1|10}}</pre>
|<pre style="white-space:pre-line">{{Abundance|1|10}}</pre>
|{{Abundance|1|10}}
|{{Abundance|1|10}}
|{{Abundance|1|10|CI=true}}
|-
|<pre style="white-space:pre-line">{{Abundance|2|1503}}</pre>
|{{Abundance|2|1503}}
|{{Abundance|2|1503|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|24|153}}</pre>
|<pre style="white-space:pre-line">{{Abundance|24|153}}</pre>
|{{Abundance|24|153}}
|{{Abundance|24|153}}
|{{Abundance|24|153|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|100|344}}</pre>
|<pre style="white-space:pre-line">{{Abundance|100|344}}</pre>
|{{Abundance|100|344}}
|{{Abundance|100|344}}
|{{Abundance|100|344|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|443|562}}</pre>
|<pre style="white-space:pre-line">{{Abundance|443|562}}</pre>
|{{Abundance|443|562}}
|{{Abundance|443|562}}
|{{Abundance|443|562|CI=true}}
|-
|-
|<pre style="white-space:pre-line">{{Abundance|11|625}}</pre>
|<pre style="white-space:pre-line">{{Abundance|11|625}}</pre>
|{{Abundance|11|625}}
|{{Abundance|11|625}}
|{{Abundance|11|625|CI=true}}
|-
|<pre style="white-space:pre-line">{{Abundance|108|110}}</pre>
|{{Abundance|108|110}}
|{{Abundance|108|110|CI=true}}
|}
|}

Revision as of 13:39, 22 August 2023

Usage

This section describes how the Abundance template works. If you are looking for rules and guidelines on use, see HorizonXIwiki:Drop Rate Policy.

{{Abundance|total items obtained|total attempts to obtain}}
  • This template is used to collect and present rarity/abundance data. It is intended to collect data from multiple users and keep a running total (new results are added to the existing totals rather than replacing them), thus becoming more accurate over time.
  • The template automatically displays the general rarity of the item using the following ranges:
Abundance Range
Extremely Rare 0 - 1%
Very Rare 1 - 5%
Rare 5 - 10%
Uncommon 10 - 15%
Common 15 - 20%
Very Common 20 - 50%
Extremely Common 50 - 100%
  • The abundance is also displayed as a percent value after the text (in superscript) and the exact number of items obtained and attempts to obtain the item are displayed in the hovertext, as well as a message describing the data's current reliablity.
  • If the data is too low to be considered reliable (less than 50 attempts), the abundance percent will be colored gray and More data needed will be displayed in place of the usual text.
  • If the data is low, but not completely unreliable (less than 500 attempts), the abundance percent will simply be colored gray.
  • "Map" (case-insensitive) can be used as the "number of items" value to display "Received if not previously obtained".
  • "Quest" (case-insensitive) can be used as the "number of items" value to display "Received with quest active".
  • optional parameter CI has been added to display a 95% confidence interval. Setting it to true, e.g. {{Abundance|98|232|CI=true}} will display the confidence interval in the output.

Examples

Code Result Result with CI
{{Abundance|map}}
101%Received if not previously obtained 101%Received if not previously obtained
{{Abundance|quested}}
101%Received with quest active 101%Received with quest active
{{Abundance||}}
0%Unknown(0%) 0%Unknown(0%)
{{Abundance|0|0}}
0%Unknown(0%) 0%Unknown(0%)
{{Abundance|0|5}}
0%More data needed.(0%) 0%More data needed.(0+/-60%)
{{Abundance|1|10}}
10%More data needed.(10%) 10%More data needed.(10+/-30%)
{{Abundance|2|1503}}
0.1%Extremely Rare(0.1%) 0.1%Extremely Rare(0.1+/-0.2%)
{{Abundance|24|153}}
15.7%Common(15.7%) 15.7%Common(15.7+/-5.8%)
{{Abundance|100|344}}
29.1%Very Common(29.1%) 29.1%Very Common(29.1+/-4.8%)
{{Abundance|443|562}}
78.8%Extremely Common(78.8%) 78.8%Extremely Common(78.8+/-3.4%)
{{Abundance|11|625}}
1.8%Very Rare(1.8%) 1.8%Very Rare(1.8+/-1%)
{{Abundance|108|110}}
98.2%Extremely Common(98.2%) 98.2%Extremely Common(98.2+/-2.7%)