Open main menu

Changes

Module:Unsubst

260 bytes added, 18:22, 8 October 2021
sync from sandbox; see talk;
['$aliases'] = 'parameter aliases',
['$flags'] = 'flags',
['$B'] = 'template content', ['$template-name'] = 'template invocation name override',
}
-- Find the invocation name.
local mTemplateInvocation = require('Module:Template invocation')
local name  if frame.args['$template-name'] and '' ~= frame.args['$template-name'] then name = frame.args['$template-name'] -- override whatever the template name is with this name else name = mTemplateInvocation.name(frame:getParent():getTitle()) end
-- Combine passed args with passed defaults
Anonymous user