Calculator:Template/Farming/Herb prices/2/doc

From Darkan
Revision as of 12:02, 11 December 2011 by imported>Joeytje50 (moved Template:Herb farming calc2/doc to Calculator:Template/Farming/Herb prices/2/doc)
(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 Calculator:Template/Farming/Herb prices/2/doc/doc.

This page is used with Calculators/Farming herbs (the Second calculator) and Calculators/Comparing farming herb prices. To make a full table out of this template, see Template:Herb farming calc2 fulltable.

Usage

{{Herb farming calc2
 |num         = 
 |herb1       = 
 |herb2       = 
 |herb3       = 
 |herb4       = 
}}
{{Herb farming calc2
 |num         = The number of herbs harvested
 |herb1       = The name of the first herb you wish to appear on the table
 |herb2       = The name of the second herb you wish to appear on the table
 |herb3       = The name of the third herb you wish to appear on the table
 |herb4       = The name of the fourth herb you wish to appear on the table
}}


Example

{{Herb farming calc2
 |num         = 0
 |herb1       = guam
 |herb2       = marrentill
 |herb3       = tarromin
 |herb4       = harralander
}}

gives:

|- ! 0 |   −5 | 11 |   −0.45 |   −3 | 13 |   −0.23 |   −7 | 16 |   −0.44 |   −4 | 22 |   −0.18




Incorporating a table

The default table, designed to be used with the template is:

Note: It is not automatically put with the template, you will have to add it yourself!

{|class="wikitable" style="text-align:center"
! align="center" rowspan="3"|Number
!colspan="12"|Herb type
|-

!colspan="3"|Herb1
!colspan="3"|Herb2
!colspan="3"|Herb3
!colspan="3"|Herb4
|-
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
|}

which gives:

Number Herb type
Herb1 Herb2 Herb3 Herb4
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp


Full example, with table incorporation

Code:

{|class="wikitable" style="text-align:center"
! align="center" rowspan="3"|Number
!colspan="12"|Herb type
|-

!colspan="3"|Guam
!colspan="3"|Marrentill
!colspan="3"|Tarromin
!colspan="3"|Harralander
|-
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
!Profit/loss
!Xp gained
!Profit/loss <br /> per xp
{{Herb farming calc2
 |num         = 0
 |herb1       = guam
 |herb2       = marrentill
 |herb3       = tarromin
 |herb4       = harralander
}}
|}

which gives:

Number Herb type
Guam Marrentill Tarromin Harralander
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp
Profit/loss Xp gained Profit/loss
per xp
0   −5 11   −0.45   −3 13   −0.23   −7 16   −0.44   −4 22   −0.18


The template can obviously be used as many times as one wants to, creating a full-scale table comparing profits of herbs depending on the number harvested.


See also