Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Protection banner: Difference between revisions

Content deleted Content added
switch to <indicator> tags again - the previous error was because the config module needs to be updated at the same time
add hack to prevent indicator tags producing whitespace at the top of articles
Line 832: Line 832:


function Padlock:__tostring()
function Padlock:__tostring()
return mw.getCurrentFrame():extensionTag{
local frame = mw.getCurrentFrame()
-- The nowiki tag helps prevent whitespace at the top of articles.
local nowiki = frame:extensionTag{name = 'nowiki'}
local indicator = frame:extensionTag{
name = 'indicator',
name = 'indicator',
args = {name = self._indicatorName},
args = {name = self._indicatorName},
content = self:renderImage()
content = self:renderImage()
}
}
return nowiki .. indicator
end
end


Cookies help us deliver our services. By using our services, you agree to our use of cookies.