Template:Trim brackets/doc

This template trims leading and trailing square brackets and whitespace from a string. This is similar to delink, but it won't remove brackets from the middle of the string. The string should be passed as the first unnamed parameter or using 1 if your string contains any  signs. You may substitute this template - that is, if used as, the resulting wikicode is "clean".

Usage
= text with any leading or trailing square brackets removed (as long as text doesn't contain any  signs).

= text with any leading or trailing square brackets removed.

Example

 * "" produces "".

("" produces "abc, def, and ghi").
 * "" produces ""


 * "" produces "".

Template data
{       "description": "The template trims leading and trailing square brackets from a string.", "params": { "1": {                       "label": "String", "description": "The string to be trimmed", "type": "string", "required": true }       } }