Module:Unsubst: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Changed protection level for "Module:Unsubst": High-risk Lua module: Bump to full protection, over 3.5M transclusions, including some very critical templates ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
(sync from sandbox; see talk;) |
||
Line 9: | Line 9: | ||
['$aliases'] = 'parameter aliases', |
['$aliases'] = 'parameter aliases', |
||
['$flags'] = 'flags', |
['$flags'] = 'flags', |
||
['$B'] = 'template content' |
['$B'] = 'template content', |
||
['$template-name'] = 'template invocation name override', |
|||
} |
} |
||
Line 47: | Line 48: | ||
-- Find the invocation name. |
-- Find the invocation name. |
||
local mTemplateInvocation = require('Module:Template invocation') |
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 |
|||
⚫ | |||
end |
|||
-- Combine passed args with passed defaults |
-- Combine passed args with passed defaults |