Jump to navigation Jump to search

Module:Loop/doc: Difference between revisions

(Created page with "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: <code><nowiki>{{ #invoke:Loop | arguments | myArgumentName | [[Category:{{{myArgumentName$n$}}}]] }}</nowiki></code> resulting in effectively <code> <nowiki> {{#if: {{{myArgumentName1|}}}|[[Category:{{{myArgumentName1}}}]]| }} {{#if: {{{myArgumentName2|}}}|Category:{{{myArgumentNa...")
 
No edit summary
 
Line 11: Line 11:
</nowiki>
</nowiki>
</code>
</code>
[[Category:Synced to starfinderwiki]]
[[Category:Modules]]

Latest revision as of 23:07, 9 July 2024

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