Template:Common boxes an/doc

This is the undefined template. It calculates statistical values based on WikiProject Statistics data of the most common boxes. Its behaviour is controlled by an unnamed parameter.

Number of boxes
&rarr;


 * simply returns the number of the most common boxes on which the other calculations are based.
 * The number is hard wired in the template code and must be adapted if boxes are added or removed.
 * Inexpensive (calls no other templates).

Number of cards
&rarr;


 * calculates and returns the total number of cards of the most common boxes.
 * The number is returned with thousands separators. For further calculations with, separators have to be removed with.
 * Very expensive. common boxes an calls all box templates which each call anbox-meta to extract the value. Total template calls:.

List
&rarr;


 * displays a list of the most common boxes together with the cards from each box.
 * Extremely expensive. Template calls:
 * common boxes an calls 2x box templates,
 * each of the 2x box templates calls anbox-meta,
 * half of the anbox-meta templates call anbox inline to display the box.
 * Total template calls:.

Weighted average
&rarr;
 * calculates the weighted arithmetic mean for any specified parameter name of a Pro Kit Box template with the absolute frequency of received cards being the weights. The parameter name must be preceded by . See anbox-meta for a complete list of parameter names.
 * The preferred use of this method is to calculate realistic chances of getting cards from Pro Kit Boxes as the weighted average takes into account that some boxes are more frequent than others. The example above displays the weighted average frequency of Rotary Engines in percent. Other examples for weighted averages:
 * &rarr; – official drop rates for rare:0:0 cards in percent.
 * &rarr; – statistical frequencies of rare:0:0 cards in percent.
 * &rarr; – minimum number of rare:0:0 cards per box.
 * &rarr; – average number of rare:0:0 cards per box.
 * &rarr; – minimum number of rare:0:0 cards per box.
 * Extremely expensive. Template calls:
 * common boxes an calls 3x box templates,
 * each of the 3x box templates calls anbox-meta to extract the values.
 * Total template calls:.
 * Warning: Although it is tempting to use the weighted average option to compare drop rates in tables, more than 30 uses of common boxes an on a page will likely exceed the maximum template include size per page if other templates are also used. The page will then be categorized under Category:Pages where template include size is exceeded. The parsing of the page will stop at the point the include size is exceeded; table rows may not be displayed or calculation errors may appear if the parsing stops in the middle of sub-template calculation calls.