Module:ModularCSS/HideSpoilerTitle

local baseCSS = [=[ a[href="/wiki/$TITLE"] { background-color: black; color: black; } .wds-tabs a[href="/wiki/$TITLE"], .unobscure a[href="/wiki/$TITLE"] { background: inherit; color: #337800; }

a[href="/wiki/$TITLE"]::after { color: red; font-size: 80%; content: " (spoiler)"; } .wds-tabs a[href="/wiki/$TITLE"]::after, .unobscure a[href="/wiki/$TITLE"]::after { content: none; } ]=]

return { page = "Project:Spoiler titles", main = function(parsed) local compiledCSS = "" for title in pairs(parsed) do           compiledCSS = compiledCSS .. baseCSS:gsub("$TITLE", title) end end }