Changes

no edit summary
Line 118: Line 118:     
function p._main(args)
 
function p._main(args)
 +
return ""
 
--[[
 
--[[
 
-- This function defines logic flow for the module.
 
-- This function defines logic flow for the module.
Line 126: Line 127:  
-- 'main-div-classes' --> 'template-documentation iezoomfix'
 
-- 'main-div-classes' --> 'template-documentation iezoomfix'
 
--]]
 
--]]
local env = p.getEnvironment(args)
+
-- local env = p.getEnvironment(args)
local root = mw.html.create()
+
-- local root = mw.html.create()
root
+
-- root
:wikitext(p.protectionTemplate(env))
+
-- :wikitext(p.protectionTemplate(env))
:wikitext(p.sandboxNotice(args, env))
+
-- :wikitext(p.sandboxNotice(args, env))
-- This div tag is from {{documentation/start box}}, but moving it here
+
-- -- This div tag is from {{documentation/start box}}, but moving it here
-- so that we don't have to worry about unclosed tags.
+
-- -- so that we don't have to worry about unclosed tags.
:tag('div')
+
-- :tag('div')
:attr('id', message('main-div-id'))
+
-- :attr('id', message('main-div-id'))
:addClass(message('main-div-classes'))
+
-- :addClass(message('main-div-classes'))
:newline()
+
-- :newline()
:wikitext(p._startBox(args, env))
+
-- :wikitext(p._startBox(args, env))
:wikitext(p._content(args, env))
+
-- :wikitext(p._content(args, env))
:tag('div')
+
-- :tag('div')
:css('clear', 'both') -- So right or left floating items don't stick out of the doc box.
+
-- :css('clear', 'both') -- So right or left floating items don't stick out of the doc box.
:newline()
+
-- :newline()
:done()
+
-- :done()
:done()
+
-- :done()
:wikitext(p._endBox(args, env))
+
-- :wikitext(p._endBox(args, env))
:wikitext(p.addTrackingCategories(env))
+
-- :wikitext(p.addTrackingCategories(env))
return tostring(root)
+
-- return tostring(root)
 
end
 
end