模板:Subjects/leaf
本模板已应用于over 2,500页面。 为避免大规模的破坏及不必要的服务器负荷,任何改动均应先在模板的沙盒、测试样例页面或您自己的用户页测试,经过测试后即可一次性改动本模板。为尊重其他用户,任何改动在生效前都应先在讨论页讨论。 |
This template adds the current page (presumed to be the main page of a book) to a specified subject category, and tries to add it to the allbooks categories of that subject and all that subject's ancestors.
使用
编辑本模板用两个参数,一个是必需参数,一个是可选参数。
1
— 必需。Names the subject to add the book to.diagnose
— 可选。If blank, error conditions result only in addition of the book to hidden Category:Attention needed (allbooks). If non-blank, diagnostic messages are also generated, with suggested remedies and buttons for effecting them.
Only addition to the named subject, Category:{{{1}}}
, is done within this template; population of allbooks categories is delegated to {{Subjects/0}}.
上述文档嵌入自Template:Subjects/leaf/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |