FANDOM


  • Hello Kkentauro, I finally have some time on my hands to finish the role lists I was planning for so long, however my technical knowledge is rather limited in writing and understanding code. May I ask if you can give some pointers or assitance in how to best make a proper sorting table? I hope I'm not being an imposition in anyway.

      Loading editor
    • You don't have to write any code, it's all already done by javascript included with wikia. You need to add "sortable" to the table class list, like this:

      {| class="wikitable sortable"

      then each column header needs a data-sort-type attribute, which is probably going to be "number".

      {| class="wikitable sortable"
      ! data-sort-type="number" | A
      ! data-sort-type="number" | B
      ...rows...
      |}

      http://community.wikia.com/wiki/Help:Sorting

        Loading editor
    • Ah alright then. Thank you sir! Hopefully I get the hang of this soon relatively quickly.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.