Template:List to categories

From Ring of Brodgar
Revision as of 10:06, 14 July 2023 by MvGulik (talk | contribs) (+Leading & Trailing category-naming options. (+Switched to Error template usage).)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
  • Multiple Category Assignment Template.
  • Input: String containing target category names.
  • Fixed delimiter: Comma.
{{List to categories|Category1, Category2, ...}}


  • Has optional options for leading & trailing category name-parts.
  • When using the leading or trailing option there are the following caveats:
    • The target category names in the list need to be properly capitalized.
    • The raw-list needs to be processed first by a {{List normalize|<initial-raw-list>}} call.
    • Additional category-name spacing should be specified in the leading/trailing part with a underscore character (instead of a normal/real space-character).
{{List to categories|{{List normalize|Category1, Category2, ...}}|leading_part|trailing_text}}


  • Initial source: salemthegame.wiki
  • Code optimized for: Lowest expansion depth. [1]
    • Doc page includes some raw, commented-out, lead/trail option debugging results & notes.