User:Mendel/Templates/danball

The old way
uses fully fledged wikicode columns that get exploded

Example for a single explosion:

The new way
A column is just the numbers, and they get inserted into wikicode at the very end. This means extra columns for the format numbers, but the columns are quite small.

ToDo:
 * Should decide how many columns are to be used and call the correct columns template.
 * Should use parameters (of course).

This calls /table.
 * /table calls /columns 2 (should select the appropriate columns template)
 * /columns 2 calls /rows 2 with precomputed columns, rows separated by $
 * /level computes the player level column
 * /class computes the css class number
 * /enemy 100 computes the xp value column, needs more templates for other enemies
 * /rows 2 calls explode row 2 once for each row
 * /explode row 2 picks the row-specific value from the column and calls /display row 2
 * /display row 2 inserts the row-specific values into wikicode.