Guild Wars 2 Wiki:Drop rate formatting
For certain containers, such as Globs of Destabilized Ectoplasm or Black Lion Chests, it is desirable to determine the likelihood of a given item dropping from them. To this end, users may wish to create a drop rate research page, typically titled <main article>/Drop rate. (Talk pages are also acceptable places to record drop rate research.)
This guide will demonstrate how to create a table which will automatically calculate drop rate percentages.
Building the table[edit]
Three templates are used to create the table: {{SDRH}}, {{SDRL}}, and {{SDRF}}. Please refer to their respective documentation pages for full details.
SDRH[edit]
- Primary article: Template:SDRH
The Standard Drop Rate Header creates the header portion of the table. It defines the column headers of the respective input parameters.
{{SDRH | title = <!--Title for the table--> | subject = <!--Name of the container being researched. Optional if noheading=false or if being posted on <main article>/Drop rate.--> | labels = <!--Optional. Set this to "yes" to display text labels for each item in the table, beneath their icons.--> | label1...label50 = <!--The label text displayed under each image. Only required if labels=true.--> | size = <!--Optional. Sets the size (in pixels) of the icon images. Defaults to 50.--> | noheading = <!--Optional. Set this to "true" to hide the introductory text that displays above the table (see example, below)--> | s1...s50 = <!--Optional. Use this to give shorter names to items for easier reference in {{SDRH}}.--> | manual totals = <!--Optional. Set to "yes" to require users to enter their own totals; otherwise, the table will calculate this automatically.--> | totals label = <!--If manual totals=yes and labels=yes, use this to set a custom label for the totals column.--> | <item name 1>...<item name 50> <!--The full names of the items dropped.--> }}
SDRL[edit]
- Primary article: Template:SDRL
The Standard Drop Rate Line creates the lines containing each user's research.
{{SDRL | total = <!--Total number of containers opened. Only required if {[SDRH}} has manual totals=yes.--> | <s1 value or name of item 1> = <!--Number of times the item dropped--> | <s2 value or name of item 2> = | <s3 value or name of item 3> = | <s7 value or name of item 7> = <!--Skipping items, as we've done here for 4-6, will cause the table to automatically label them as having dropped 0 times.--> | ~~~~ }}
SDRF[edit]
- Primary article: Template:SDRF
The Standard Drop Rate Footer does not require any parameters. It will automatically calculate and display the total items and their percentages.
Copy-paste layout[edit]
{{SDRH | title = | subject = | labels = yes | <Item name> | s1 = <Abbreviation> | label1 = <Label> ... | <Item name> | s50 = <Abbreviation> | label50 = <Label> }} <!-- Data starts here: --> {{SDRL | <s1 value> = | ... | <s50 value> = | ~~~~ }} <!-- Add new lines above this line, using the following format: {{SDRL | <s1 value> = | ... | <s50 value> = | ~~~~ }} --> {{SDRF}}
Example[edit]
{{SDRH | title = Example | subject = the example container | labels = yes | size = 50 | Bank Access Express | s1 = Bank | label1 = Bank Access<br>Express | Transmutation Stone | s2 = Stone | label2 = Transmutation<br>Stone | Black Lion Chest | s3 = Chest | label3 = Chest | Black Lion Key | s4 = Key | label4 = Key | Merchant Express | s5 = Merchant | label5 = Merchant<br>Express | Black Lion Salvage Kit | s6 = Salvage | label6 = Salvage<br>Kit | Trading Post Express | s7 = Trader | label7 = Trader<br>Express | Transmutation Crystal | s8 = Crystal | label8 = Transmutation<br>Crystal | Instant Repair Canister | s9 = Repair | label9 = Instant<br>Repair<br>Canister | Mystic Forge Stone | s10 = Mystic | label10 = Mystic<br>Forge<br>Stone | No extra item | label11 = No extra<br>item | i11 = Cross red.png | is11 = 20 | l11= }} <!-- Data starts here: --> {{SDRL | Stone = 2 | Key = 1 | Merchant = 1 | Salvage = 5 | Crystal = 3 | Mystic = 2 | No extra item = 9 | Example user. 00:00, 1st example month 2012 }} {{SDRL | Bank = 5 | Salvage = 3 | Trader = 2 | Crystal = 0 | Mystic = 1 | No extra item = 15 | Example user. 00:00, 2nd example month 2012 }} {{SDRL | Bank = 7 | Stone = 5 | Chest = 6 | Merchant = 1 | Salvage = 3 | Crystal = 2 | Repair = 4 | Mystic = 1 | No extra item = 8 | Example user. 00:00, 3rd example month 2012 }} <!-- Add new lines above this line, using the following format: {{SDRL | Bank = 0 | Stone = 0 | Chest = 0 | Key = 0 | Merchant = 0 | Salvage = 0 | Trader = 0 | Crystal = 0 | Repair = 0 | Mystic = 0 | No extra item = 0 | ~~~~ }} --> {{SDRF}}
...will result in the following display:
This page is for recording items received from the example container. The values at the bottom of the page, i.e. the totals and averages, are updated automatically.
This table has been setup to use a manual total for each line — i.e. the number of boxes opened. This allows you to write down the initial number of boxes, open them all, and then count up the number of items you have received.
To add data, edit the page and copy the referenced new line format at the end of the table. If you already have a line, edit that instead.