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(string.formatself:message(
'missing-template-option-error',
"one or more options ending in '%d' were " ..
"detected, but no 'template%d' option was found",
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 .. '/sandbox'
.. '/' .. 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('sandbox')
obj.cfg.sandboxSubpage
)
end
 
Line 273 ⟶ 275:
:cssText(self.options.style)
:tag('caption')
:wikitext(self.options.caption or self:message('Side by side comparisoncolumns-header'))
 
-- Headings