Module:Template test case: Difference between revisions
comment tweak and add a todo item
(a couple of bug fixes) |
(comment tweak and add a todo item) |
||
Line 138: | Line 138: | ||
templateTitleCallback | templateTitleCallback | ||
) | ) | ||
-- @TODO: Use the sandbox of the first template if it is specified, | |||
-- rather than the sandbox of the base page. | |||
obj.templates[2] = Template.new( | obj.templates[2] = Template.new( | ||
invocationObj, | invocationObj, | ||
Line 190: | Line 192: | ||
function NowikiInvocation:getInvocation(template) | function NowikiInvocation:getInvocation(template) | ||
template = template:gsub('%%', '%%%%') -- Escape | template = template:gsub('%%', '%%%%') -- Escape "%" with "%%" | ||
local invocation, count = self.invocation:gsub( | local invocation, count = self.invocation:gsub( | ||
TEMPLATE_NAME_MAGIC_WORD_ESCAPED, | TEMPLATE_NAME_MAGIC_WORD_ESCAPED, |