Module:Random/doc: Difference between revisions

Content deleted Content added
m List: item > list in the syntax example
m Text list: similarly
Line 94:
The <code>text_list</code> function outputs a list in a random order, text-style. In other words, it is like the <code>list</code> function, but with a different separator before the last item.
 
&#123;{#invoke:random|itemtext_list|''list item 1''|''list item 2''|''list item 3''|...|sep=''separator''|conj=''conjunction''}}
 
The separator can be specified with either the {{para|sep}} or {{para|separator}} parameters; its default value is "{{int:comma-separator}}". The conjunction can be specified with either the {{para|conj}} or {{para|conjunction}} parameters; its default value is " and ". The separator and the conjunction can be specified with the same values as the separator in the [[#List|list function]].