Template:WeaponTableSort: Difference between revisions

From Ephinea PSO Wiki
(Linking to relevant templates)
(Made template link visual more accessible; Created example)
Line 1: Line 1:
|-
|-
! style="background-position: center;" | <br> !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !!  style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" |
! style="background-position: center;" | <br> !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !!  style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" |<noinclude>
<noinclude>
==Usage==
==Usage==
Include "sortable" in the weapon table's class to enable sorting.
Include "sortable" in the weapon table's class to enable sorting.
<br>
<br>
Insert between the top [[Template:WeaponTableHead|<nowiki>{{WeaponTableHead}}</nowiki>]] and [[Template:WeaponTableRow|<nowiki>{{WeaponTableRow}}</nowiki>]] templates to facilitate sorting.
Insert between the top [[Template:WeaponTableHead]] and first [[Template:WeaponTableRow]] to facilitate sorting.
==Example==
<nowiki>
{| class="wikitable sortable" style="text-align:center;"
</nowiki>
<br />
<nowiki>
{{WeaponTableHead}}
</nowiki>
<br />
<nowiki>
{{WeaponTableSort}}
</nowiki>
<br />
{{WeaponTableRow | ...
 
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 17:17, 11 December 2021

|- ! style="background-position: center;" |
 !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" | !! style="background-position: center;" |

Usage

Include "sortable" in the weapon table's class to enable sorting.
Insert between the top Template:WeaponTableHead and first Template:WeaponTableRow to facilitate sorting.

Example

{| class="wikitable sortable" style="text-align:center;"
{{WeaponTableHead}}
{{WeaponTableSort}}
{{WeaponTableRow | ...