Module:Exists: Revision history

Jump to navigation Jump 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.

9 June 2025

  • curprev 17:4317:43, 9 June 2025 Wuffesan talk contribs 743 bytes +743 Created page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, { parentFirst = true, wrapper = {'Template:Exists'} }) return p._main(args) end function p._main(args) local page = args[1] or '' local trueResult = args[2] or args['then'] or '' local falseResult = args[3] or args['else'] or '' if (p.checkExists(page)) then return trueResult else return falseResult end end function p.checkExists(page) p..."