ਫਰਮਾ:Shelf:Map/doc
ਦਿੱਖ
This is a documentation subpage for ਫਰਮਾ:Shelf:Map (see that page for the ਫਰਮਾ itself). It contains usage information, categories, and other content that are not part of the original ਫਰਮਾ page. |
Usage
[ਸੋਧੋ]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
[ਸੋਧੋ]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}}.