الاستخدام

عدل

{{Chop head and tail|<الجملة>|<العدد>}} يزيل هذا القالب <عدد> الرموز من بداية ونهاية <الجملة>.

{{Chop head and tail|12345654321|3}} يعطي 45654.

ازالة وصلة

عدل
{{Chop head and tail|[[ألبرت أينشتاين]]|2}} يعطي ألبرت أينشتاين.

Because the default value of <number> is 2, this can be shortened to {{Chop head and tail|[[ألبرت أينشتاين]]}}.

Limitations

عدل
  • Expensive.
  • When used on strings with characters that carry a meaning in wiki-layout, this template will interpret the character as a layout instruction (bugzilla:12974). For example, {{Chop head and tail|[[123;456]]}} renders as
    123;456
  • Supports the character set as defined by {{Str index/getchar}}, so that e.g. {{Chop head and tail|[[نورنبرغ]]}} renders correctly as نورنبرغ. However, not all characters are in this set.