Module:Release status: Difference between revisions
Jump to navigation
Jump to search
m rv changes introduced for the UCP migration |
m 1 revision imported |
(No difference)
| |
Latest revision as of 22:05, 9 October 2025
Documentation for this module may be created at Module:Release status/doc
-- <nowiki>
local p = {}
local wdsButton = require('Dev:WDS Button')
local data = mw.loadData('Dev:Release status/data')
local i18n = require('Dev:I18n').loadMessages('Release status', 'Common')
local title = mw.title.getCurrentTitle()
function p.status(frame)
local tmp = mw.ustring.lower(frame:getParent().args[1] or '')
local status = data[tmp] and tmp or 'unknown'
local html = wdsButton._badge(i18n:msg(status), status)
local cat = data[status]
if cat and title.namespace == 0 then
html = '[[:Category:' .. cat .. '|' .. html .. ']][[Category:' .. cat .. ']]'
end
return html
end
return p