FANDOM


--Lua test script
obj = {};
 
obj.hello = function( frame )
  return "Hello World";
end
 
obj.escapeangle = function( frame )
   local s = frame.args[1];
   s=string.gsub(s,"<","&lt;");
   s=string.gsub(s,">","&gt;");
   return s;
end
 
obj.injectdata = function( frame )
  local title = frame.args[1];
  local subpage = mw.title.new(title);
 
--return(title .. tostring( title ));
  local page = subpage:getContent();
    if(page == nil) then
      return("(ERROR: PAGE NOT FOUND " .. namespace .. " " .. title .. ")");
    else
      return(page);
    end
end
 
return obj;

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.