Template:Create parameter string
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
Script error: The function "navbox" does not exist.
The above documentation is transcluded from Template:Create parameter string/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |