Clash of Clans Wiki
Clash of Clans Wiki

Documentation for this module may be created at Module:Page Creator/doc

local p = {}

function p.main( frame )
   local str = '{{#dpl:' ..
      '|skipthispage=no' ..
      '|titlematch=' .. mw.title.getCurrentTitle().text  ..
      '|allowcachedresults=false' ..
      '|mode=userformat' ..
      '|addauthor=true' ..
      '|format=,,%USER%' ..
      '}}'

   local name = frame:preprocess( str )
   
   if string.sub(name, 0, 3) == '<p>' then
      name = '(Caching)'
   end
   
   return name
end

return p