Module:Documentation: Difference between revisions

no edit summary
(Created page with "-- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purpos...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 123: Line 123:
end
end


p.main = makeInvokeFunc('_main')
-- p.main = makeInvokeFunc('_main')


function p._main(args)
function p._main(args)
Line 158: Line 158:
:done()
:done()
:wikitext(p.addTrackingCategories(env))
:wikitext(p.addTrackingCategories(env))
-- 'Module:Documentation/styles.css'
-- 'MediaWiki:Common.css'
return mw.getCurrentFrame():extensionTag (
return mw.getCurrentFrame():extensionTag (
'templatestyles', '', {src=cfg['templatestyles']
'templatestyles', '', {src=cfg['templatestyles']