Template:Territory: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#invoke:territories|main}}</includeonly><noinclude>{{documentation}}</noinclude>"
 
(No difference)

Latest revision as of 04:11, 8 September 2025

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.
  • 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.