Module:Loop/doc

From 2d4chan
Revision as of 01:05, 14 February 2025 by 2d4fag (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Loop

This loop implementation loops over arguments in the form of somename1, somename2. It only expands wikitext afterwards which makes it safe to use with categories and other templates.

Usage: {{ #invoke:Loop | arguments | myArgumentName | [[Category:{{{myArgumentName$n$}}}]] }}

resulting in effectively {{#if: {{{myArgumentName1|}}}|[[Category:{{{myArgumentName1}}}]]| }} {{#if: {{{myArgumentName2|}}}|[[Category:{{{myArgumentName2}}}]]| }}...