کاربر ناشناس
پودمان:Unsubst: تفاوت میان نسخهها
sync from sandbox; see talk;
جز (۱ نسخه واردشده) |
(sync from sandbox; see talk;) |
||
خط ۹: | خط ۹: | ||
['$aliases'] = 'parameter aliases', | ['$aliases'] = 'parameter aliases', | ||
['$flags'] = 'flags', | ['$flags'] = 'flags', | ||
['$B'] = 'template content' | ['$B'] = 'template content', | ||
['$template-name'] = 'template invocation name override', | |||
} | } | ||
خط ۴۷: | خط ۴۸: | ||
-- Find the invocation name. | -- Find the invocation name. | ||
local mTemplateInvocation = require('Module:Template invocation') | local mTemplateInvocation = require('Module:Template invocation') | ||
local name = mTemplateInvocation.name(frame:getParent():getTitle()) | 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 | -- Combine passed args with passed defaults |