Template:Subjects/leaf2/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

This template does exploratory checks on a category to which the page has been added, for future use of allbook scategories; and if any such problems are detected, adds the page to Category:Attention needed (allbooks).

Usage[edit source]

The first parameter, {{{1}}}, is the name of the category the page has been added to. The second parameter, {{{2}}}, is the transcluded content of the subject page with the same name as the category. Three checks are performed:

  • Does the subject page exist? If it doesn't, the value of {{{2}}} will be unparsable.
  • Is the subject page formatted correctly for extracting parameters from it? If so, the value of {{{2}}} will be parsable.
  • Does the subject page associate itself with the category? This can be determined if the value of {{{2}}} is parsable.