Module:ModularCSS/MetaVerifyStatus

-- ModularCSS/MetaVerifyStatus -- Modifies the non-existent page Special:ModularCSS -- to verify the current status on ModularCSS rendering.

local i18n = { -- Do not modify "$TIME"! ["en"] = { TITLE  = "ModularCSS Status Verification", MESSAGE = "As of $TIME, ModularCSS is properly configured for use on this wiki!" } }

local lang = mw.getContentLanguage

local BASE_CSS = [==[ /**** ModularCSS/MetaVerifyStatus ****/ .mw-invalidspecialpage.page-Special_ModularCSS .page-header__title { visibility: hidden; }

.mw-invalidspecialpage.page-Special_ModularCSS .page-header__title:after { content:  "$TITLE"; visibility: visible; display:   block; top:       18px; position:  absolute; }

.mw-invalidspecialpage.page-Special_ModularCSS #mw-content-text { visibility: hidden; }

.mw-invalidspecialpage.page-Special_ModularCSS #mw-content-text:after { content:  "$MESSAGE"; visibility: visible; display:   block; top:       28px; position:  absolute; } ]==]

return { page = "Special:BlankPage", main = function local messages = i18n[lang:getCode] or i18n.en       return BASE_CSS:gsub({            ["$TITLE"]   = messages.TITLE,            ["$MESSAGE"] = messages.MESSAGE:gsub( lang:formatDate("D, j M Y G:i:s e") )       }) end }