Anonymous user
Module:Template test case: Difference between revisions
add more messages and use the sandboxSubpage config value to generate sandbox template names
(add a shared message method) |
(add more messages and use the sandboxSubpage config value to generate sandbox template names) |
||
Line 170:
for i = 3, highestNum do
if not options['template' .. i] then
error(
'missing-template-option-error',
i, i
), 2)
Line 191 ⟶ 190:
templateOptions[2] = templateOptions[2] or {}
if templateOptions[1].template and not templateOptions[2].template then
templateOptions[2].template = templateOptions[1].template
.. '/' .. obj.cfg.sandboxSubpage
end
if not templateOptions[1].template then
Line 197:
end
if not templateOptions[2].template then
templateOptions[2].title = templateOptions[1].title:subPageTitle(
obj.cfg.sandboxSubpage
)
end
Line 273 ⟶ 275:
:cssText(self.options.style)
:tag('caption')
:wikitext(self.options.caption or self:message('
-- Headings
|