|
|
| Line 1: |
Line 1: |
| {{Module other|{{Module rating |p}}}}
| | - |
| {{high-risk|1000}}
| |
| {{Lua|Module:Arguments|Module:TableTools}}
| |
| <!-- Please place template categories where indicated at the bottom of this page -->
| |
| == Usage ==
| |
| [[Module:Separated entries]] serves as a template front-end to <code>[[Extension:Scribunto/Lua reference manual#mw.text.listToText|mw.text.listToText]]</code>. It takes [[w:variadic function|any number]] of positional parameters and [[w:concatenation|pieces them together]] with {{para|separator}}. {{para|conjunction}} can be optionally defined if a different separator is desired between the last and second last items. The starting positional parameter can be specified using {{para|start}}. Leading and trailing whitespace is stripped. To add deliberate leading and trailing whitespace, use the HTML escape code <code>&#32;</code> for a space and <code>&#10;</code> for a "newline". Separated entries does not raise any errors by design.
| |
| | |
| <nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''main''|separator=...}}
| |
| | |
| == Tests ==
| |
| [[Module:Separated entries/testcases]]: {{#invoke:Separated entries/testcases|run}}
| |
| | |
| <includeonly>{{Sandbox other||
| |
| <!-- Template Categories below this line, please -->
| |
| [[Category:Meta templates]]
| |
| }}</includeonly>
| |