Difference between revisions of "Module:Languages"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 6: Line 6:
 
     local page = mw.title.getCurrentTitle()
 
     local page = mw.title.getCurrentTitle()
 
     local ns = mw.title.getCurrentTitle().nsText
 
     local ns = mw.title.getCurrentTitle().nsText
     print (page)
+
     return ns .. ":" .. page
    print (ns)
 
    print (ns .. ':' .. page)
 
 
end
 
end
  
 
return p
 
return p

Revision as of 13:02, 11 February 2016

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
    return ns .. ":" .. page
end

return p