Difference between revisions of "Module:Extension"

12 bytes removed ,  10:17, 2 July 2021
Use cat() for categorization.
>Samwilson
(Add maintenance categories for MediaWiki version.)
>Samwilson
(Use cat() for categorization.)
Line 302: Line 302:
-- If the first arg is given, it'll be the manual override value.
-- If the first arg is given, it'll be the manual override value.
     if frame.args[1] ~= nil and mw.text.trim( frame.args[1] ) ~= "" then
     if frame.args[1] ~= nil and mw.text.trim( frame.args[1] ) ~= "" then
     return frame.args[1] .. '[[Category:Extensions with manual MediaWiki version]]'
     return frame.args[1] .. cat( 'Extensions with manual MediaWiki version' )
     end
     end
-- Otherwise, look it up from extension.json.
-- Otherwise, look it up from extension.json.
Line 310: Line 310:
end
end
-- If neither are given, just categorize.
-- If neither are given, just categorize.
return '[[Category:Extensions without MediaWiki version]]'
return cat( 'Extensions without MediaWiki version' )
end
end


Anonymous user