Template:Mbox

Usage

{{Chop head and tail|<string>|<number>}}

This template removes <number> characters from the start and end of <string>.

{{Chop head and tail|12345654321|3}} gives Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len.


Unlinking

This template can be used to "unlink" a linked parameter.

{{Chop head and tail|[[Einstein]]|2}} results in Template:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ lenTemplate:Str ≥ len.

Because the default value of <number> is 2, this can be shortened to {{Chop head and tail|[[Einstein]]}}.


Limitations

See also

Description of all string templates