Jump to content

Module:Progress box and Module:Progress box/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
-silly implements line, it's in the /doc
 
enhanced concision of overly verbose condition
 
Line 1: Line 1:
-- This module implements [[Template:Progress box]]

local makePurgeLink = require('Module:Purge')._main
local makePurgeLink = require('Module:Purge')._main
local lang = mw.language.getContentLanguage()
local lang = mw.language.getContentLanguage()
Line 127: Line 129:


-- Set data
-- Set data
if not args.float or (args.float and (args.float == 'left' or args.float == '')) then
if not args.float or (args.float == 'left' or args.float == '') then
self._float_class = 'maint-cat-progress-left'
self._float_class = 'maint-cat-progress-left'
elseif args.float == 'right' then
elseif args.float == 'right' then