Module:Template translation: Difference between revisions

default to English to avoid showing the <translate> tags
(name is a string, and is in args)
(default to English to avoid showing the <translate> tags)
Line 1:
-- THIS IS AALPHA WORK IN PROGRESSCODE. DOUSE NOT USECAREFULLY.
 
local p = {}
Line 12:
local template = frame.args['template']
local langcode = '/en'
-- Get the last subpage
Line 32:
return frame:expandTemplate{ title = template..langcode, args = frame.args }
end
 
function p.debug (frame)
return frame:expandTemplate{ title = frame.args['template'], args = frame.args }
end
 
Anonymous user