Template:Mbox

This template takes the positional parameters inputted, strips beginning and ending blanks and newlines, and creates a parameter string from the parameters using {{!}}.

This eliminates the need to have some kind of stripping template for every positional parameter - which makes the template easier to read and maintain. It also allows the positional parameters to be entered, one per line, which if you have a lot of positional parameters, makes the template easier to read and update than one long line of parameters stringed together.

The parameter string returned can be used as positional parameter input.

This template was initially created for use by the search prefixes template.

Usage

{{Create parameter string |aaa |bbbb |cc }}

returns the string:

aaa|bbbb|cc

Limits

limited to 30 parameters or less


See also

template:search prefixes

Description of all string templates