User:Taylan: Difference between revisions

Jump to navigation Jump to search
552 bytes added ,  23 July 2023
no edit summary
No edit summary
No edit summary
Line 19: Line 19:


Unfinished wiki code meant for another page goes here.
Unfinished wiki code meant for another page goes here.
---
Example use of ArrayFunctions.  Imagine the template parameter <code><nowiki>{{{list}}}</nowiki></code> contains the value <code>Foo, Bar</code>.
Code:
<pre>
{{#af_join: {{#af_map: {{#af_split: {{{list}}} }} | x | * [[{{{x}}}]] }} | \n }}
</pre>
Result:
{{#af_join: {{#af_map: {{#af_split: Foo, Bar }} | x | * [[{{{x}}}]] }} | \n }}
Code:
<pre>
The list: {{#af_join: {{#af_map: {{#af_split: {{{list}}} }} | x | [[{{{x}}}]] }} | ,\s }}
</pre>
Result:
The list: {{#af_join: {{#af_map: {{#af_split: Foo, Bar }} | x | [[{{{x}}}]] }} | ,\s }}

Navigation menu