සැකිල්ල:පොත් රාක්කය: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}}.