Toggle menu
15
236
74
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Sort table: Revision history

From Kenshi Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

23 February 2025

  • curprev 06:0106:01, 23 February 2025 Prd talk contribs 915 bytes +915 Created page with "local p = {} function p.asc(frame) if tonumber(frame.args[1]) > 1 then local before = string.rep("[%|\n]%|(.-)", tonumber(frame.args[1]) - 1) else local before = '' end local indexed_rows sorted_table = '' local key = 0 return frame.args[2] -- for row in mw.text.gsplit(frame.args[2], "\n|-", true) do -- key = row:gmatch(before.."[%|\n]%|(.-)[%|\n]%|") -- indexed_rows[key] = {key, row} -- end -- table.sort(indexed_rows) -- for key, row in pairs(indexed_rows)..."