Extension:Add Article to Category/zh

The Add Article to Category extension adds the ability to add an inputbox (for create new article) to each category page. The content of new page will contain "[[category:]]" automatically.

代码

 * ArticleToCategory.php

ENDFORM; $wgOut->addHTML($temp2); return true; }

演示

 * I Don't Like Exams (MediaWiki 1.19.0)

微调
If you want the option to not have the box on some pages, see Extension talk:Add Article to Category

参见

 * SimpleForms categorisation example - uses SimpleForms extension to categorise article directly without editing