Jump to content

Template:Hub card

From The Perfect Tower II
Revision as of 23:01, 6 October 2026 by Speedybrain (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[[|]]

A card that links to a page, in the TPT2 brand kit's style (tpt-card). Put cards inside Template:Hub grid, which loads their styles; the whole card is clickable.

{{Hub grid|
{{Hub card|title=Laboratory|facility=laboratory|mark=VI|text=Twelve experiments that unlock modules.|meta=Max. tier VI}}
{{Hub card|title=Module database|url=https://www.perfecttower2.com/tools/modules/|text=Search all modules.|meta=Official}}
{{Hub card|title=Forest|mark=01|image=Forest.png|text=Open from the start.|meta=4 lanes}}
}}

A linked card for hub pages and the Main Page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

no description

Stringrequired
Pagelink

Wiki page to link; defaults to the title

Page nameoptional
External URLurl

Links outside the wiki instead of to a page

URLoptional
Texttext

One short sentence

Stringsuggested
Meta linemeta

Small uppercase line at the bottom

Stringoptional
Facilityfacility

Building color: power-plant, mine, factory, headquarters, arcade, laboratory, shipyard, trading-post, workshop, museum, construction-firm or statue-of-cubos

Stringoptional
Hexagon markmark

Short text in a hexagon badge, e.g. a tier

Stringoptional
Iconicon

Small image next to the title

Fileoptional
Imageimage

A 16:9 picture across the top of the card, such as a region screenshot

Fileoptional