Module:Mw.html extension: Difference between revisions

Jump to navigation Jump to search
5,023 bytes added ,  20:54, 3 October 2022
Created page with "-- <nowiki> local p = {} local checkType = require( 'libraryUtil' ).checkType local mwHtml = getmetatable( mw.html.create() ).__index -- Trick to get acces to the mw.html class local stack = {} -- Used to keep track of nested IF-END tags local noOp = {} -- This object is returned by IF(false) tag function mwHtml:addClassIf( cond, class ) if cond then return self:addClass( class ) else return self end end function mwHtml:tagIf( cond, tagna..."
(Created page with "-- <nowiki> local p = {} local checkType = require( 'libraryUtil' ).checkType local mwHtml = getmetatable( mw.html.create() ).__index -- Trick to get acces to the mw.html class local stack = {} -- Used to keep track of nested IF-END tags local noOp = {} -- This object is returned by IF(false) tag function mwHtml:addClassIf( cond, class ) if cond then return self:addClass( class ) else return self end end function mwHtml:tagIf( cond, tagna...")
 
(No difference)

Navigation menu