Module:Replace: Revision history

From TibiaCraft
Jump to navigationJump to search

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.

5 October 2025

  • curprev 00:1300:13, 5 October 2025 Root talk contribs 470 bytes +470 Created page with "local p = {} function p.replace( f ) local raw_args = f:getParent().args local args = require("Module:ProcessArgs").norm(raw_args) local text = args[1] or '' if text == '' then return text end -- loop through raw args so we keep empty replacements (like `|str=`) intact for k, v in pairs(raw_args) do if k ~= 1 then local value = args[k] or '' -- get normalised arg value text = text:gsub(k, value) end end return text end return p"