Module:Skin alert

From Bootstrap for MediaWiki

Shows an alert that names the skin the page is shown with.

Usage

{{#invoke:Skin alert|show}}

Requirements

Example

See Alert extension example 3.


-- Shows an alert that names the skin the page is rendered for
local p = {}

function p.show( frame )
	local skin = mw.bootstrap.getSkin()
	return mw.bootstrap.parse( 'alert', 'This page is rendered for the ' .. skin .. ' skin.', { color = 'info' } )
end

return p