Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Chabadpedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Separated entries/doc
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Module other|{{Module rating|p}}{{used in system}}{{Lua|Module:Arguments|Module:TableTools}}|{{high-use}}{{Lua|Module:Separated entries}}}} <!-- Please, place template categories where indicated at the bottom of this page. --> == Usage == [[Module:Separated entries]] and {{tl|Separated entries}} serve as a template front-end to <code>[[mw:Extension:Scribunto/Lua reference manual#mw.text.listToText|mw.text.listToText]]</code>. They take [[Variadic function|any number]] of positional parameters and [[Concatenation|piece 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 entity <code>&#32;</code> for a space and <code>&#10;</code> for a "newline". Separated entries does not raise any errors by design. <syntaxhighlight lang="wikitext">{{#invoke:separated entries|main|separator=...}}</syntaxhighlight> For more complex cases β such as selecting the parameters to list, or preprocessing them, or omitting the last parameters β {{mfl|params|list_values}} is available. The following two examples with β + β as delimiter and β ... β as conjunction produce a similar result: # <syntaxhighlight lang="wikitext" inline>{{#invoke:separated entries|main|separator= + |conjunction= ... }}</syntaxhighlight> # <syntaxhighlight lang="wikitext" inline>{{#invoke:params|sequential|squeezing|trimming_values|setting|i/l| + | ... |list_values}}</syntaxhighlight> == See also == * {{Template link|Enum}} * {{Template link|Br separated entries}} * {{mfl|params|list_values}} <includeonly>{{Sandbox other|| <!-- Template categories below this line, please. --> [[Category:Template metamodules]] }}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to Chabadpedia are considered to be released under the GNU Free Documentation License 1.3 or later (see
Chabadpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Lua
(
edit
)
Template:Mfl
(
edit
)
Template:Module function link
(
edit
)
Template:Module other
(
edit
)
Template:Module rating
(
edit
)
Template:Para
(
edit
)
Template:Sandbox other
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Template:Used in system
(
edit
)
Module:Arguments
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
view source
) (protected)
Module:Message box/ombox.css
(
edit
)
Module:Separated entries
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/S
(
edit
)
Module:Yesno
(
edit
)