Modul:Unsubst: Unterschied zwischen den Versionen

add tracking category per protected edit request by User:Jackmcbarn
(Deprecate the $N parameter; the template name is now detected automatically. The $N check is still present until all transclusions have been updated. Code courtesy of User:Anomie, User:Jackmcbarn and myself.)
(add tracking category per protected edit request by User:Jackmcbarn)
Zeile 60: Zeile 60:
---- 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


return p
return p
Anonymer Benutzer