Difference between revisions of "Module:Template translation"
default to English to avoid showing the <translate> tags
>Guillom (name is a string, and is in args) |
>Guillom (default to English to avoid showing the <translate> tags) |
||
Line 1: | Line 1: | ||
-- THIS IS | -- THIS IS ALPHA CODE. USE CAREFULLY. | ||
local p = {} | local p = {} | ||
Line 12: | Line 12: | ||
local template = frame.args['template'] | local template = frame.args['template'] | ||
local langcode = '' | local langcode = '/en' | ||
-- Get the last subpage | -- Get the last subpage | ||
Line 32: | Line 32: | ||
return frame:expandTemplate{ title = template..langcode, args = frame.args } | return frame:expandTemplate{ title = template..langcode, args = frame.args } | ||
end | end | ||
return p | return p |