跳至內容

模板:Subjects/leaf

維基教科書,自由的教學讀本
文檔圖示 模板文檔[檢視] [編輯] [歷史] [清除快取]

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}}.