Template:PerksCornerstonesTable: Difference between revisions

From Against the Storm Official Wiki
m (adjusting whitespace)
(New header abbreviations)
Line 18: Line 18:
|-
|-
{{#ifeq: {{{show_source_altar|show}}} | show | <!-- default is source altar shown -->
{{#ifeq: {{{show_source_altar|show}}} | show | <!-- default is source altar shown -->
! Altar | }}
! {{Abbr|Altar (Stormforged Cornerstone)|Alt}} | }}
{{#ifeq: {{{show_source_cornerstone|show}}} | show | <!-- default is source cornerstone shown -->
{{#ifeq: {{{show_source_cornerstone|show}}} | show | <!-- default is source cornerstone shown -->
! Cornerstone | }}
! {{Abbr|Cornerstone|Cor}} | }}
{{#ifeq: {{{show_source_order|show}}} | show | <!-- default is source order shown -->
{{#ifeq: {{{show_source_order|show}}} | show | <!-- default is source order shown -->
! Order | }}
! {{Abbr|Order|Ord}} | }}
{{#ifeq: {{{show_source_relic|show}}} | show | <!-- default is source relic shown -->
{{#ifeq: {{{show_source_relic|show}}} | show | <!-- default is source relic shown -->
! Relic | }}
! {{Abbr|Relic (Glade event)|Rel}} | }}
{{#ifeq: {{{show_source_trader|show}}} | show | <!-- default is source trader shown -->
{{#ifeq: {{{show_source_trader|show}}} | show | <!-- default is source trader shown -->
! Trader | }}<noinclude>
! {{Abbr|Trader|Trd}} | }}<noinclude>
{{PerksCornerstonesTable/row}}
{{PerksCornerstonesTable/row}}
|}</noinclude>
|}</noinclude>

Revision as of 20:37, 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
Alt Cor Ord Rel Trd
x x x x x