FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Charm data/doc.
Template:Charm data invokes Module:Charm log using Lua.

The Charm data template is used in charm logs to allow multiple views of the data, similar to Template:ExchangeItem.

Usage

To use the log data on a page, type

{{Charm:MONSTERNAME|view=VIEW}}

Adding new charm logs to monsters

To add a charm log to a monster, create a new article "Charm:Monster_name" and copy the text below.

{{Charm data
|view={{{view}}}
|monster=Monster the data is for (this parameter is required)
|charms=Number of charms dropped at once
|rare=Whether this monster is difficult kill in large numbers (leave blank if no)
|kills=Total number of kills INCLUDING those that dropped charms
|gold=Number of gold charms obtained
|green=Number of green charms obtained
|crimson=Number of crimson charms obtained
|blue=Number of blue charms obtained
}}

An example of a charm log page would look like this:

{{Charm data
|view={{{view}}}
|charms=1
|rare=yes
|kills=100
|gold=21
|green=14
|crimson=5
|blue=1
}}

This produces the following result:

No charmGold charmGreen charmCrimson charmBlue charm
51–67%15–28%9–21%2–10%0.2–4.4%
Represents a 90% confidence range based on a sample of 100 kills.
1 charm is dropped at a time.

"view" parameter

This template is used to determine what information to return.

The "view" parameter may be used to do the following:

  • view=table - displays a table showing the average percentages of the charms dropped, with a link to add to the log
  • view=raw - displays a table showing the raw numbers of kills and charm drops, instead of percentages
  • view=charms - returns the number of charms dropped at once
  • view=kills - returns the total number of kills
  • view=none - returns the total number of kills without charms
  • view=gold - returns the total number of gold charms obtained
  • view=green - returns the total number of green charms obtained
  • view=crimson - returns the total number of crimson charms obtained
  • view=blue - returns the total number of blue charms obtained
  • view=nonepercent - returns the percentage of kills without charms
  • view=goldpercent - returns the percentage of kills with gold charms obtained
  • view=greenpercent - returns the percentage of kills with green charms obtained
  • view=crimsonpercent - returns the percentage of kills with crimson charms obtained
  • view=bluepercent - returns the percentage of kills with blue charms obtained
If the view parameter is not specified, or if it does not match one of these values, the template displays a table with the average percentages and the confidence level, as well as a link to add to the log.
Community content is available under CC-BY-SA unless otherwise noted.