I would like to make the following tiny, but I am not sure what will and will not break the functions.
{{#arraydefine:array-list | {{{array}}}}}
{{#ifeq: {{#arraysize:array-list}} | 1 |
{{{array}}} [[Category:{{{array}}} category]] |
{{#arrayprint:array-list||@@@@|<nowiki/>
* @@@@ [[Category:@@@@ category]]}}
}}
I am getting an array, then checking to see how many items there are. If there is one item, just print the array as a normal parameter with a category. If there are two or more, print the array as a list with each item getting its own category.
Right now it just looks bad. So, can someone please clean it up, and maybe offer better ways to write it?
Thank you in advance! Lady Aleena (talk) 06:16, 19 November 2017 (UTC)