Jump to content

Template:Module

From The Perfect Tower II
Revision as of 20:38, 6 October 2026 by Speedybrain (talk | contribs) (Release 1d: module data and number format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[[File:{{{1}}} Module.png|{{{1}}}|x30px|alt={{{1}}} Module]] Shows a module from the game. With id or name, the facts come from the game's own data and update with every game version, so nobody has to copy them by hand. Without them, it shows a category icon, as before.

Code Shows
{{Module|id=boost.neutral}} Anti-Neutral Projectiles
{{Module|name=Stampede|view=compact}}
Offensive · Active · Max tier 250
Spawns a horde of goats that roams perpendicular to the direction between the tower and the casting point. Goats deal air damage based on the max. hp of an enemy upon contact.
{{Module|Offensive|size=30px}} Offensive Module
{{Module|id=stampede.goats|view=full}}
Stampedestampede.goatsOffensiveActive
Spawns a horde of goats that roams perpendicular to the direction between the tower and the casting point. Goats deal air damage based on the max. hp of an enemy upon contact.Goats might jump over enemies without touching them!
Max tier250
Levels per tier100
Base price1E8100 M
Price per level1E8100 M
TargetGround
damageairground

A module's id is in the module database: open the module, and the id is the part of the address after #. Names work too, in any case. A module the game doesn't have shows "Unknown module" and puts the page in Category:Pages with unknown modules.

A module from the game: its name, a card or a full panel, from the game's own data. Without id or name, a category icon.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Module idid

The module's id, as in the module database

Example
boost.neutral
Stringsuggested
Module namename

The module's name in the game, instead of the id

Example
Anti-Neutral Projectiles
Stringoptional
Viewview

icon: the name in the text; compact: a card; full: a panel with the description, numbers and tags

Suggested values
icon compact full
Default
icon
Stringoptional
Texttext

Text to show instead of the module's name

Stringoptional
Wiki pagelink

Link the name to this wiki page instead of the module database

Page nameoptional
Category icon1

Without id or name: the category whose icon to show (Offensive, Defensive, Utility, Ultimate, Legendary, Special)

Example
Offensive
Stringoptional
Icon sizesize

Size of the category icon, as a MediaWiki image size

Default
x30px
Stringoptional