Template:PerksCornerstonesTable: Difference between revisions
From Against the Storm Official Wiki
m (Updated with example row) |
m (making collapsible) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>'''Note: Table row not included when you use this template and shown here for reference and formatting only:''' | <noinclude>{{Documentation}} | ||
'''Note: Table row not included when you use this template and shown here for reference and formatting only:''' | |||
</noinclude> | </noinclude> | ||
{|class="wikitable sortable" | {|class="wikitable sortable mw-collapsible" | ||
|+ Perks and Cornerstones | |+ {{{caption|Perks and Cornerstones}}} | ||
{{#ifeq: {{{show_id|no}}} | show | <!-- default is id hidden --> | {{#ifeq: {{{show_id|no}}} | show | <!-- default is id hidden --> | ||
!rowspan=2{{!}} ID | }} | !rowspan=2{{!}} ID | }} | ||
Line 10: | 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 | }} | ||
|- | |- | ||
! Altar | {{#ifeq: {{{show_source_altar|show}}} | show | <!-- default is source altar shown --> | ||
! Cornerstone | ! {{Abbr|Altar (Stormforged Cornerstone)|Alt}} | }} | ||
! Order | {{#ifeq: {{{show_source_cornerstone|show}}} | show | <!-- default is source cornerstone shown --> | ||
! Relic | ! {{Abbr|Cornerstone|Cor}} | }} | ||
! Trader | {{#ifeq: {{{show_source_order|show}}} | show | <!-- default is source order shown --> | ||
<noinclude>{{PerksCornerstonesTable/row}} | ! {{Abbr|Order|Ord}} | }} | ||
{{#ifeq: {{{show_source_relic|show}}} | show | <!-- default is source relic shown --> | |||
! {{Abbr|Relic (Glade event)|Rel}} | }} | |||
{{#ifeq: {{{show_source_trader|show}}} | show | <!-- default is source trader shown --> | |||
! {{Abbr|Trader|Trd}} | }}<noinclude> | |||
{{PerksCornerstonesTable/row}} | |||
|}</noinclude> | |}</noinclude> |
Latest revision as of 02:31, 6 May 2024
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:
Name | Rarity | Description | Sources | Price | ||||
---|---|---|---|---|---|---|---|---|
Alt | Cor | Ord | Rel | Trd | ||||
— | — | — | x | x | x | x | x | — |