Template:WeaponTableSort: Difference between revisions

From Ephinea PSO Wiki
(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==
<nowiki>
<pre>
{| class="wikitable sortable" style="text-align:center;"
{| class="wikitable sortable" style="text-align:center;"
</nowiki>
<br />
<nowiki>
{{WeaponTableHead}}
{{WeaponTableHead}}
</nowiki>
<br />
<nowiki>
{{WeaponTableSort}}
{{WeaponTableSort}}
</nowiki>
<br />
{{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 | ...