Template:TownEntry/doc

From Foxhole Wiki
Jump to navigation Jump to search
Template-info.png Documentation

This template creates table rows for map towns.

Usage

Each template creates one table row. You should use multiple templates one after another to create multiple rows.

The first row in the table must have the "header" parameter set to create the table header.The last row in the table must have the "footer" parameter set to end the table. If you have only one town in the table, you should set both parameters.

Structure parameters must be set to "yes" to show in the table. If the town does not have the structure, the parameter can be skipped. You can put parameters in any order.

List of parameters:

{{TownEntry
|header=true              // this must be set on the first (and only the first) template in the table
|footer=true              // this must be set on the last (and only the last) template in the table
|name=Town Name           // the name of the town on the map
|coordinates=C4           // map coordinates
|manufacturing plant=yes  // must be "yes" if the town has a Manufacturing Plant
|weapon factory=yes       // must be "yes" if the town has a Weapon Factory
|workshop                 // must be "yes" if the town has a Workshop
|vehicle factory          // must be "yes" if the town has a Vehicle Factory
|supply station           // must be "yes" if the town has a Supply Station
|medical lab              // must be "yes" if the town has a Medical Lab
|houses                   // number of Garrisoned Houses in the town
|scrap                    // must be "yes" if the town has a Scrap Field
|image=Endless shore.jpg  // the name of the close-up image of the town
}}

Example

{{TownEntry
|header=true
|name=Something Long
|coordinates=C4
|manufacturing plant=yes
|vehicle factory=yes
|medical lab=yes
|houses=3
|image=Endless shore.jpg
}}
{{TownEntry
|name=Another One
|coordinates=F1
|manufacturing plant=yes
|scrap=yes
|workshop=yes
|houses=1
|image=Foxhole.jpg}}
{{TownEntry|name=Empty Town}}
{{TownEntry
|footer=true
|name=The Last Entry
|coordinates=Z9
|scrap=yes
|vehicle factory=yes
|weapon factory=yes
}}

Result:


Town Name Coordinates Nearby buildings/resources Image
MapIconManufacturing.png MapIconArmory.png MapIconWorkshop.png MapIconVehicle.png MapIconSupplies.png MapIconHospital.png Icon Garrisoned House.png MapIconScrap.png
Something Long C4 MapIconManufacturing.png MapIconVehicle.png MapIconHospital.png 3 File:Endless shore.jpg
Another One F1 MapIconManufacturing.png MapIconWorkshop.png 1 MapIconScrap.png Foxhole.jpg
Empty Town N/A 0 (none)
The Last Entry Z9 MapIconArmory.png MapIconVehicle.png 0 MapIconScrap.png (none)


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.