Module:Unsubst: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add tracking category per protected edit request by User:Jackmcbarn) |
m (all uses removed) |
||
Line 2: | Line 2: | ||
local specialParams = { |
local specialParams = { |
||
['$N'] = 'template name', -- Deprecated, but keeping until it is removed from transcluding templates |
|||
['$B'] = 'template content', |
['$B'] = 'template content', |
||
} |
} |
||
Line 60: | Line 59: | ||
---- Not substing |
---- Not substing |
||
-- Just return the "body" |
-- Just return the "body" |
||
return frame.args['$B'] |
|||
return frame.args['$B'] .. (frame.args['$N'] and frame:getParent():getTitle() == mw.title.getCurrentTitle().prefixedText and '[[Category:Calls to Module:Unsubst that use $N]]' or '') |
|||
end |
end |
||
end |
end |