Template:WeaponTableSort: Difference between revisions
(Made template link visual more accessible; Created example) |
(Made Example easier to look at) |
||
Line 6: | Line 6: | ||
Insert between the top [[Template:WeaponTableHead]] and first [[Template:WeaponTableRow]] to facilitate sorting. | Insert between the top [[Template:WeaponTableHead]] and first [[Template:WeaponTableRow]] to facilitate sorting. | ||
==Example== | ==Example== | ||
< | <pre> | ||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
{{WeaponTableHead}} | {{WeaponTableHead}} | ||
{{WeaponTableSort}} | {{WeaponTableSort}} | ||
{{WeaponTableRow | ... | {{WeaponTableRow | ... | ||
</pre> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:52, 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 | ...