Module:Languages

From Team Fortress Wiki
Revision as of 13:01, 11 February 2016 by Darkid (talk | contribs)
Jump to: navigation, search

Documentation for this module may be created at Module:Languages/doc

local p = {}

function p.languages(frame)
    r = ''
    local languages = {'ar', 'cs', 'da', 'de', 'es', 'fi', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ro', 'ru', 'sv', 'tr', 'zh-hans', 'zh-hant'}
    q = mw.title.getCurrentTitle()
    local ns = mw.title.getCurrentTitle().nsText
    return ns .. ' ' .. q
end

return p