Module:Documentation: Difference between revisions
No edit summary |
No edit summary |
||
| Line 141: | Line 141: | ||
message = "'''This " .. pageType .. "'s documentation needs improving or additional information.'''\n" | message = "'''This " .. pageType .. "'s documentation needs improving or additional information.'''\n" | ||
if not args.nocat then | if not args.nocat then | ||
if mw.title.new( ' | if mw.title.new( 'Categoria:' .. pageType .. 's com má documentação' ).exists then | ||
category = '[[ | category = '[[Categoria:' .. pageType .. 's com má documentação]]' | ||
else | else | ||
category = '[[ | category = '[[Categoria:Páginas com má documentação]]' | ||
end | end | ||
end | end | ||
| Line 159: | Line 159: | ||
'<div style="margin:0.7em -1em -0.7em;background-color:#EAF4F9;border-top:1px solid #AAA;padding:0.8em 1em 0.7em;clear:both">\n', | '<div style="margin:0.7em -1em -0.7em;background-color:#EAF4F9;border-top:1px solid #AAA;padding:0.8em 1em 0.7em;clear:both">\n', | ||
'<div style="float:right">' .. mw.text.nowiki( '[' ) .. table.concat( links, ' | ' ) .. ']</div>\n', | '<div style="float:right">' .. mw.text.nowiki( '[' ) .. table.concat( links, ' | ' ) .. ']</div>\n', | ||
'<p style="margin:0"> | '<p style="margin:0">A documentação acima é transcluída de [[' .. docPage.fullText .. ']].</p>\n', | ||
'</div>\n' | '</div>\n' | ||
} ) | } ) | ||