FANDOM


-- <nowiki>
local p = {}
 
local wdsButton = require('Module:WDS Button')
local data = mw.loadData('Module: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
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+