Template:SR enemy experience

About
This template create a list of levels and experience values, which the player will get from killing a certain enemy. There is an algorithm that calculates the amount of experience you will get from killing an enemy, and this value is adjusted based on the level of the player. The amount of experience depends on: This template includes the formula how this experience is calculated. It is to be used on each article about an enemy or about a stage. It creates a table floating to the right, which displays the experience gain for a specified range of player levels. You can choose between one and six enemies of which you want to display the experience values, and you specify the number by the parameter. The range of player levels, for which the table is generated, can also be specified (parameters  and  ).
 * The peak experience of the the enemy (parameter: )
 * The player level at which you can get the peak experience (parameter: )
 * Your current player level (this is displayed in the first column of the table generated by this template)

Usage
The parameters are:
 * : The number of enemies which you want to display in the table. n can be a number from 1 to 6. If you omit this parameter n = 1 is used.
 * : The first player level which should be displayed in the table. If you omit this parameter the default is level 1.
 * : The last player level which should be displayed in the table. If you omit this parameter the default is level 20.
 * : The player level at which you can get the most experience from the n-th enemy which is displayed in the n-th enemy column. n can be a number from 1 to 6. If you omit this parameter the default is a peak level of 10.
 * : The peak experience which you can get from this enemy. n can be a number from 1 to 6. If you omit this parameter the default is 100 EXP.
 * : The image representing the n-th enemy. n can be a number from 1 to 6. If you omit this parameter but  is given, the text of the link name is displayed. If you omit both   and   the text "enemy n" is displayed instead.
 * : The link to the article of the n-th enemy. n can be a number from 1 to 6. If you omit this parameter, but  is given, a link to the image file is used instead.
 * : Decides wheter the background for the n-th enemy has the color of water instead of black. Any non-empty value (for example "1") will turn the background blue. n can be a number from 1 to 6. If you omit this parameter, the black background is used.

Note:
 * The template can only show 30 player levels at once, so make sure the following formula is true:
 * The template displays automatically a plus and minus sign in the first (unless is 1) and last row of the player level to indicate that all previous and following EXP values are the same. Therefore you should make sure that the first and last row contains only the value "1 EXP" for every enemy by setting the from and to parameters accordingly.

Examples
Here is an example for simple usage, with only one enemy (peak at level 3 with 100 EXP), and player levels from 1 to 15:

Another example with 3 fictive enemies and player levels from 3 to 26:

This is the table for Grassland 3 including linked images:

Structure

 * This page creates the header of the table, with the enemy images. Then it uses a #switch depending on the parameter  and calls the right /columns.
 * /columns calls /rows  with precomputed columns. In these precomputed columns the rows separated by $. The columns are computed by:
 * /level computes the player level column.
 * /class computes the css class number.
 * /enemy computes the EXP value column. There is one templates for each peak value.
 * /rows calls /explode row  once for each row. Up to 30 rows are allowed.
 * /explode row picks the row-specific value from the column and calls /display row.
 * /display row inserts the row-specific values into wikicode.

Note: For the links in the explanation  and   was used.

List of template subpages

 * /level
 * /class
 * /enemy 100, /enemy 150, /enemy 200, /enemy 250, /enemy 300, /enemy 400, /enemy 500, /enemy 600, /enemy 800, /enemy 1000, /enemy 2000, /enemy 2500, /enemy 3000, /enemy 4000, /enemy 6000
 * /columns 1, /columns 2, /columns 3, /columns 4, /columns 5, /columns 6
 * /rows 1, /rows 2, /rows 3, /rows 4, /rows 5, /rows 6
 * /explode row 1, /explode row 2, /explode row 3, /explode row 4, /explode row 5, /explode row 6
 * /display row 1, /display row 2, /display row 3, /display row 4, /display row 5, /display row 6

fi:Malline:SR enemy experience