Module:Languages

From Team Fortress Wiki
Revision as of 13:02, 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'}
    local page = mw.title.getCurrentTitle()
    local ns = mw.title.getCurrentTitle().nsText
    print (page)
    print (ns)
    print (ns .. ':' .. page)
end

return p