Template:Territory
Documentation [edit]
This template is used to access data about territories in Torn.
This template makes use of Lua code at Module:Territories. Please use the template rather than invoking the module directly.
Parameters are not case sensitive, but the convention is to capitalize territory names.
Parameters
- first unnamed parameter - the territory to look up data for.
- second unnamed parameter - the information about that territory to access.
- Options (matching the Torn API) are:
sector,size,density,slots,respect,coordinates,x,y,neighbors. - If "stat" is used, some options use this parameter for additional input.
- Options (matching the Torn API) are:
- stat - used to access calculated information about the given territory. Options are:
overall- lists overall game territories statistics, requires no parameters.neighbors- displays the number of neighbors that the given territory has.connected- requires two territories and states whether they are neighbors.- To request the addition of other statistics, contact an administrator.
Examples
{{territory|ABC|sector}}produces: 3{{territory|ABC|neighbors}}produces: KAC, LBC, WCC, MPE, NQE{{territory|ABC|stat=neighbors}}produces: 5
The above documentation is transcluded from Template:Territory/doc.