Module:Documentation: Difference between revisions
m Replaced content with "-- <nowiki> local dependencyList = require( 'Module:DependencyList' ) local yn = require( 'Module:Yesno' ) local p = {} function p.doc( frame ) local title = mw.title..." Tag: Replaced |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
:tag( 'td' ) | :tag( 'td' ) | ||
:css( 'width', '40px' ) | :css( 'width', '40px' ) | ||
:wikitext( '[[File: | :wikitext( '[[File:Template-info.png|35px|center|link=]]' ) | ||
:done() | :done() | ||
:tag( 'td' ) | :tag( 'td' ) | ||
| Line 41: | Line 41: | ||
if title.namespace == 10 then -- Template namespace | if title.namespace == 10 then -- Template namespace | ||
cats = '[[Category:Template documentation|' .. title.baseText .. ']]' | cats = '[[Category:Template documentation|' .. title.baseText .. ']]' | ||
ret2 = addDependencyList and dependencyList._main() or '' | ret2 = addDependencyList and dependencyList._main(nil, args.category, args.isUsed) or '' | ||
elseif title.namespace == 116 then -- Calculator namespace | elseif title.namespace == 116 then -- Calculator namespace | ||
cats = '' | cats = '' | ||
ret2 = addDependencyList and dependencyList._main() or '' | ret2 = addDependencyList and dependencyList._main(nil, args.category, args.isUsed) or '' | ||
elseif title.namespace == 828 then -- Module namespace | elseif title.namespace == 828 then -- Module namespace | ||
cats = '[[Category:Module documentation|' .. title.baseText .. ']]' | cats = '[[Category:Module documentation|' .. title.baseText .. ']]' | ||
ret2 = addDependencyList and dependencyList._main() or '' | ret2 = addDependencyList and dependencyList._main(nil, args.category, args.isUsed) or '' | ||
else | else | ||
cats = '' | cats = '' | ||
| Line 83: | Line 83: | ||
:done() | :done() | ||
ret3 = addDependencyList and dependencyList._main() or '' | ret3 = addDependencyList and dependencyList._main(nil, args.category, args.isUsed) or '' | ||
return ret1 .. tostring( ret2 ) .. '<div class="documentation-content">' .. ret3 | return ret1 .. tostring( ret2 ) .. '<div class="documentation-content">' .. ret3 | ||