Template:Shelf:Map/doc
Appearance
This is a documentation subpage for Template:Shelf:Map It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]This template applies a template to each element of a list, one by one, if the list is short enough. Meant for a list of ancestors of a shelf.
1
— the name of the template to be applied.2
— the list.diagnose
— optional — if not provided, or if non-blank, the template provides diagnostic messages if it detects a problem; if provided and blank, no diagnostic messages.shelf
— the name of the shelf, without itsShelf:
prefix. Only used when providing a diagnostic message.
Internals
[edit source]Applies the template using Module:TScope#drop, passing an element of the list as first unnamed parameter.
There is no need for this template to support any list length greater than the maximum number of ancestors per shelf. As of this writing, it supports up to list length 16.
The key templates that use this one, as of this writing, are {{Shelf:Category/display}}, {{Shelf:Allbooks category/display}}, and {{Shelves/leaf}}.