قالب:Chop head and tail/شرح

من ويكيبيديا، الموسوعه الحره
هذه صفحة توثيق فرعية تخص قالب:Chop head and tail.
تحتوي هذه الصفحة على معلومات و تصنيف ومحتويات أخرى تتعلق بشرح القالب ولا تعتبر جزءا منه.
للاطلاع على صفحة القالب نفسه، انظر قالب:Chop head and tail.

الاستخدام[تعديل]

{{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.