Template:Building Products/doc

This template is designed to build the table of products from any given building. The use of the template is simple: Each product gets four parameters:
 * 1) The name of the product, capitalizing the first letter of each word.
 * 2) The level at which the product becomes available. For products which depends on reputation level (town), precede an R to the number.
 * 3) The time it takes to make the product on an unmastered machine. The time for a mastered machine is calculated automatically. The time must be in one of the following forms:
 * 4)   is generally best for products which take less than an hour, but could technically be used even for longer times. The LUA script has no trouble calculating that 1440m is 24 hours, although editors who edit the page after you may.
 * 5)   for a whole number of hours.
 * 6)   for longer time periods which are not a whole number of hours.
 * 7) The maximum price for 1 item. This number should be rounded down to the nearest whole number, just as happens in the game if you only sell 1 and go for the top price.

Any product can be made instantaneously using enough diamonds. The number of diamonds depends only on the product - mastering the machine doesn't reduce this number. This number can be calculated most of the time from the amount of time for production; however, exceptions do exist. To override the default number of diamonds, append the time with a slash and the number of diamonds.

Similarly, the amount of one gets from manufacturing a product is generally dependent on the maximum price. This, too, needs correcting some times, and is done in the same way.

Example (note that the information here is for code use only; it's not the correct information about the products or any building)

produces the following: