FANDOM


m (please)
m (oh well)
Line 7: Line 7:
   
 
local p = {}
 
local p = {}
local http = require("socket.http")
 
   
function p.f()
+
function p.list()
return http.request("http://crouton.net")
+
local ul = mw.html.create( 'ul' )
  +
:tag( 'li' )
  +
:wikitext( 'foo' )
  +
:done()
  +
:tag( 'li' )
  +
:wikitext( 'bar' )
  +
:done()
  +
return tostring( ul )
 
end
 
end
   

Revision as of 03:48, June 25, 2014

-- <nowiki>
--
-- Sandbox module
--
-- To be used to test out ideas in the same way [[RuneScape:Sandbox]] is used
--
 
local p = {}
 
function p.list()
    local ul = mw.html.create( 'ul' )
        :tag( 'li' )
            :wikitext( 'foo' )
            :done()
        :tag( 'li' )
            :wikitext( 'bar' )
            :done()
    return tostring( ul )
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.