Jump to content

Module:Swap

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Raph Williams65 (talk | contribs) at 20:56, 9 April 2025 (...). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.main(frame)
  x = frame.args[1]
  y = frame.args[3]
  sep = frame.args[2] or frame.args.sep
  x,y = '' .. y .. '' .. sep .. '' .. x .. ''
  return x,y
end
return p