Template:Separated entries/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{lua|Module:Concat}}
{{Documentation subpage}}
 
{{Lua|Module:Concat}}


The '''concat''' template is used to create a list of items delimited by a separator string.
The '''concat''' template is used to create a list of items delimited by a separator string.
Line 26: Line 28:
| <code><nowiki>{{concat|sep=&amp;#32;+&amp;#32;|A|B|C}}</nowiki></code> || {{concat|sep=&#32;+&#32;|A|B|C}}
| <code><nowiki>{{concat|sep=&amp;#32;+&amp;#32;|A|B|C}}</nowiki></code> || {{concat|sep=&#32;+&#32;|A|B|C}}
|}
|}
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
{{Documentation categories|
<!-- Categories and interwikis go here. -->
[[Category:List templates]]
[[Category:List templates]]
</includeonly>
}}
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 11:09, 1 December 2020

This subpage provides documentation for Template:Separated entries.

Lua logo

This template uses the following modules:

The concat template is used to create a list of items delimited by a separator string.

Usage

{{concat|item1|item2|item3|item4|item5|...}}

The sep parameter can be used to define the item separator string, which defaults to a comma followed by a space.

Examples

Code Result
{{concat|A}} A
{{concat|A|B}} AB
{{concat|A|B|C|D|E}} ABCDE
{{concat| | |C}} C
{{concat| |B| |D}} BD
{{concat|3=C|A|4=D|B}} ABCD
{{concat|sep=&#32;+&#32;|A|B|C}} ABC