Template:PerksCornerstonesTable: Difference between revisions

From Against the Storm Official Wiki
(adding caption parameter; adding support for hiding individual source columns)
m (adding support for changing number of columns that the Sources header spans)
Line 13: Line 13:
{{#ifeq: {{{show_description|show}}} | show | <!-- default is description shown -->
{{#ifeq: {{{show_description|show}}} | show | <!-- default is description shown -->
!rowspan=2 class="unsortable"{{!}} Description | }}
!rowspan=2 class="unsortable"{{!}} Description | }}
!colspan=5| Sources
!colspan={{{num_sources_shown|5}}}| Sources
{{#ifeq: {{{show_price|show}}} | show | <!-- default is price shown -->
{{#ifeq: {{{show_price|show}}} | show | <!-- default is price shown -->
!rowspan=2{{!}} Price | }}
!rowspan=2{{!}} Price | }}

Revision as of 18:25, 5 May 2024

This is the Template Documentation from Template:PerksCornerstonesTable/doc.

Important: This template and all related templates are not designed to be used directly. Instead, use Template:Perks; it is powerful, better documented, and much simpler to use than filling out these templates.

Only the last, List/item, is called from the controller. All others are still here in the off chance they may be useful to an author for manually creating tables of perks. However, it is strongly recommended to learn how to use Template:Perks instead. The table version of the view is accomplished with Module:PerksView, which cannot be invoked directly, but is invoked by Module:PerksController.

Index of related templates:

Template Purpose
Template:PerksCornerstonesTable Primary, default table header template
Template:PerksCornerstonesTable/row Default table row template
Template:PerksCornerstonesTable/end Table markup closing
Template:PerksCornerstonesTable/SkipSources Table header template, but without the sources columns
Template:PerksCornerstonesTable/row/SkipSources Table row template, but without the sources columns
Template:PerksCornerstonesList/item List version row template (there is no list header template)


Note: Table row not included when you use this template and shown here for reference and formatting only:

Perks and Cornerstones
Name Rarity Description Sources Price
Altar Cornerstone Order Relic Trader
x x x x x