Module:Mainpage/Progress: Difference between revisions
From Paracosm
More actions
Created page with "function p.render() local card = mw.html.create('div'):addClass('t-card'):addClass('home-card--aside') -- The scroll fade's frame; the attribute names its scroller. See -- Module:Mainpage/cards.css for why the two are different elements. local pad = card:tag('div') :addClass('home-pad') :addClass('home-patch') :addClass('home-scrollfade') :attr('data-gadget-mainpage-scrollfade', '.home-patch__list') pad:tag('div'):addClass('home-kicker'):wikitext('Progre..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
require('strict') | |||
local p = {} | |||
function p.render() | function p.render() | ||
local card = mw.html.create('div'):addClass('t-card'):addClass('home-card--aside') | local card = mw.html.create('div'):addClass('t-card'):addClass('home-card--aside') | ||
Revision as of 16:23, 11 November 2026
Documentation for this module may be created at Module:Mainpage/Progress/doc
require('strict')
local p = {}
function p.render()
local card = mw.html.create('div'):addClass('t-card'):addClass('home-card--aside')
-- The scroll fade's frame; the attribute names its scroller. See
-- Module:Mainpage/cards.css for why the two are different elements.
local pad = card:tag('div')
:addClass('home-pad')
:addClass('home-patch')
:addClass('home-scrollfade')
:attr('data-gadget-mainpage-scrollfade', '.home-patch__list')
pad:tag('div'):addClass('home-kicker'):wikitext('Progress for ' .. require('Module:Mainpage/Config').section('progress').book)
return tostring(card)
end