Module:IconList/doc

Revision as of 17:24, 28 November 2025 by LVL (talk | contribs) (Created page with "Parses a comma-separated list of names and converts them into icons using Module:Icon. ==Usage== <pre>{{#invoke:IconList|parse|INPUT_LIST|SIZE}}</pre> ==Functions== *<code>parse|INPUT_LIST|SIZE</code> **Splits a comma-separated string of names and renders them as a row of icons. **'''INPUT_LIST''': A list of names separated by commas (e.g., "Abrams, Bebop"). **'''SIZE''' (Optional): The size of the icons (e.g., "35px"). Defaults to 35px. ==Example== To generate a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:IconList

Parses a comma-separated list of names and converts them into icons using Module:Icon.

Usage

edit
{{#invoke:IconList|parse|INPUT_LIST|SIZE}}

Functions

edit
  • parse|INPUT_LIST|SIZE
    • Splits a comma-separated string of names and renders them as a row of icons.
    • INPUT_LIST: A list of names separated by commas (e.g., "Abrams, Bebop").
    • SIZE (Optional): The size of the icons (e.g., "35px"). Defaults to 35px.

Example

edit

To generate a list of heroes:

{{#invoke:IconList|parse|Abrams, Bebop, Seven}}

and it would return:

     

To change the size to 50px:

{{#invoke:IconList|parse|Abrams, Bebop, Seven|50px}}

and it would return: