सामग्री पर जाएँ

साँचा:Shelf:Map

विकिपुस्तक से

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 its Shelf: prefix. Only used when providing a diagnostic message.

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

Template:Shelf:Check page