Template:Wb/lad/Root subject
Wb/lad/Root subject
{{{description}}}
|
Subsections
|
Featured Books
|
This template is used on top-level subject pages to list books within that subject's respective category. Use {{Wb/lad/subject page}} for regular subjects.
Usage
editParameters, of which only the first is required:
- description: specifies the description of the subject area the page will cover
- featuredbooks: alternative to an automatically generated list, specifies a list of featured books in the sub-subjects of this top-level subject as an HTML unordered list (<ul><li>[[Book]]</li><li>[[Book2]]</li></ul>)
- namespace: optional, specifies which namespace should be searched through for books; defaults to the main namespace
- theme: optional, specifies the {{Wb/lad/Robox}} theme for the description box; defaults to 15
- theme2: optional, specifies the {{Wb/lad/Robox}} theme for the book box; defaults to 3
- icon: optional, specifies the logo displayed in the description box without the File: included; defaults to the Wikibooks logo
- iconwidth: optional, specifies the width of the logo displayed in the description box with px included; defaults to 45px
Copy-paste
editCommonly-used | Full |
---|---|
{{root subject |description= }} |
{{root subject |namespace= |theme= |theme2= |icon= |iconwidth= |featuredbooks= |description= }} |
Internals
editThis template itself contains only interface logic: default values for parameters, and code to allow certain parameters to be extracted for use with allbooks categories. Internal code to implement the page layout is in template {{Wb/lad/Root subject/core}}.
Parameter extraction uses the same arrangement as with {{Wb/lad/subject page}}. The string provided for extraction is fixed (there being no actual parent parameters by which to vary it) as /Books by subject/ — thus presenting each root subject as a child of single parent Wb/lad/Sujeto:Livros por sujeto. (Wb/lad/Sujeto:Livros por sujeto also uses this same "parameter extraction" scheme, presenting itself as having no parents, i.e., //.)