FANDOM


This Template can be used for build contracts in contract lists.
It works with unnamed parameters, to keep the code at a contractor page at a minimum.

Syntax

{{Build|amount|name|type|cost|and/or|amount2|name2|type|cost2|amount3|name3|type|cost3}}

Parameters

  1. (required) - The amount of the first item to build.
  2. (required) - Name of the first item to build. (insert "any" in case of any item)
  3. (required) - Type of item, use only the first letter. (building/decoration)
  4. (required) - Cost of the first item. (use Template:Cost with parameter cont=y)
  5. (optional) - and/or.
5 - 9. (optional) - Same as 1 - 4 for second item.
10 - 13. (optional) - Same as 1 - 4 for third item.

Although the input is not Case Sensitive, it's recommended not to use UpperCase letters.

Examples

{{Build|1|Small Farm|b|{{cost|wood=350|cont=y}}}}
Gives:
Build 1 Small Farm Icon Shop Building
• Cost: 350 Wood

{{Build|4|Waterpump|d|{{cost|gold=315|wood=210|nail=95|qty=4|cont=y}}}}
Gives:
Build 4 waterpump Icon Shop Decoration
• Cost: 1,260 Gold; 840 Wood; 380 Nails

{{Build|1|German Residence|b|{{cost|wood=2650|bric=2850|glas=2350|cont=y}}|or|2|German Tower|b|{{cost|bric=5900|glas=4400|grav=2550|cont=y}}}}
Gives:
Build 1 German Residence Icon Shop Building
• Cost: 2,650 Wood; 2,850 Bricks; 2,350 Glass
OR
Build 2 German Tower Icon Shop Building
• Cost: 5,900 Bricks; 4,400 Glass; 2,550 Gravel

{{Build|2|Beech|d|{{cost|gold=865|wood=690|nail=515|qty=2|cont=y}}|and|3|Birch|d|{{cost|wood=1395|nail=1160|bric=915|qty=3|cont=y}}|4|Strong Maple|d|{{cost|gold=2000|wood=3700|qty=4|cont=y}}}}
Gives:
Build 2 Beech Icon Shop Decoration
• Cost: 1,730 Gold; 1,380 Wood; 1,030 Nails
AND
Build 3 Birch Icon Shop Decoration
• Cost: 4,185 Wood; 3,480 Nails; 2,745 Bricks
AND
Build 4 Strong Maple Icon Shop Decoration
• Cost: 8,000 Gold; 14,800 Wood


Credits

This template was created by TrashTerrier
Community content is available under CC-BY-SA unless otherwise noted.