Difference between revisions of "Module:Extension"
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] .. ' | 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 ' | return cat( 'Extensions without MediaWiki version' ) | ||
end | end | ||