Template:Charm data

From Darkan
Revision as of 19:43, 8 October 2012 by imported>Joeytje50 (Undid revision 5710003 by Michagogo (Talk) - this link made a submission box appear on the page itself. That's more usefriendly than linking to the subpage first.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Charm data/doc.

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 "Monster_name/Charm log" and copy the text below.

{{Charm data|
|view={{{view}}}
|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:


Charm drop percentages
No charms

51–67%

15–28%

9–21%

2–10%

0.2–4.4%

Represents 90% confidence range, based on a sample of 100 kills.
1 charm is dropped at a time.

Please add to the log (only if 50 or more creatures killed).

"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.