Version vom 21. Februar 2018, 09:32 Uhr von Oetterer (Diskussion | Beiträge)
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This module implements various general utility functions to be used via #invoke
.
Usage[Quelltext bearbeiten]
{{#invoke:Util|getSkin}}
- returns name of active skin, if Extension:BootstrapComponents is installed, "unknown" otherwise.
local p = {}
function p.globalFileExtension()
-- return '.png'
return '.svg'
end
function p.getSkin()
return mw and mw.bootstrap and mw.bootstrap.getSkin() or 'unknown'
end
return p