Template:WeaponTableSort: Difference between revisions

From Ephinea PSO Wiki
(Made Example easier to look at)
(Added transcluded example)
Line 10: Line 10:
{{WeaponTableHead}}
{{WeaponTableHead}}
{{WeaponTableSort}}
{{WeaponTableSort}}
{{WeaponTableRow | ...
{{WeaponTypeRow|Saber  |0|  40-55|30|35| 30 ATP}}
{{WeaponTypeRow|Brand  |1| 80-100|33|32| 90 ATP}}
{{WeaponTypeRow|Buster  |2|120-160|35|30|155 ATP}}
{{WeaponTypeRow|Pallasch|3|170-220|38|26|233 ATP}}
{{WeaponTypeRow|Gladius |4|240-280|40|18|296 ATP}}
|}
</pre>
</pre>
 
{| class="wikitable sortable" style="text-align:center;"
[[Category:Templates]]
{{WeaponTableHead}}
</noinclude>
{{WeaponTableSort}}
{{WeaponTypeRow|Saber  |0|  40-55|30|35| 30 ATP}}
{{WeaponTypeRow|Brand  |1| 80-100|33|32| 90 ATP}}
{{WeaponTypeRow|Buster  |2|120-160|35|30|155 ATP}}
{{WeaponTypeRow|Pallasch|3|170-220|38|26|233 ATP}}
{{WeaponTypeRow|Gladius |4|240-280|40|18|296 ATP}}
|}
[[Category:Templates]]</noinclude>

Revision as of 03:16, 12 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}}
{{WeaponTypeRow|Saber   |0|  40-55|30|35| 30 ATP}}
{{WeaponTypeRow|Brand   |1| 80-100|33|32| 90 ATP}}
{{WeaponTypeRow|Buster  |2|120-160|35|30|155 ATP}}
{{WeaponTypeRow|Pallasch|3|170-220|38|26|233 ATP}}
{{WeaponTypeRow|Gladius |4|240-280|40|18|296 ATP}}
|}
Weapon Name Rarity ATP ATA Grind Total ATP Special Req. Classes Notes
HUmr HUnl HUct HUcl RAmr RAml RAct RAcl FOmr FOml FOnm FOnl

Saber 0★ 40-55 30 35 30 ATP {{{7}}} {{{8}}}
Brand 1★ 80-100 33 32 90 ATP {{{7}}} {{{8}}}
Buster 2★ 120-160 35 30 155 ATP {{{7}}} {{{8}}}
Pallasch 3★ 170-220 38 26 233 ATP {{{7}}} {{{8}}}
Gladius 4★ 240-280 40 18 296 ATP {{{7}}} {{{8}}}