This is the current revision of this page, as edited by imported>Raph Williams65 at 12:36, 28 April 2025(A space for experimental module code for Module:Ifexist). The present address (URL) is a permanent link to this version.Revision as of 12:36, 28 April 2025 by imported>Raph Williams65(A space for experimental module code for Module:Ifexist)
This module is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome.
This module implements {{If-exist}}, visit the template for documentation.
--[[ Add your expirimental module code here--]]localp={}-- represents p as a code for packagesfunctionp.main(frame)-- package name = main, (frame) = global frametitle=frame.args[1]-- parameter 1thenthis=frame.args[2]-- parameter 2elsethis=frame.args[3]-- parameter 3--[[ If this then return this else return this--]]ifmw.title.new(title).exists==truethenreturnthenthiselsereturnelsethisend--[[ You can use the magic word ({{#ifexist:title|thenthis|elsethis}})--]]endreturnp