الگو:Chop head and tail/doc

نسخهٔ تاریخ ‏۲۰ ژوئن ۲۰۱۹، ساعت ۱۱:۱۰ توسط الگو>Engineer (۱ نسخه واردشده)
(تفاوت) → نسخهٔ قدیمی‌تر | نمایش نسخهٔ فعلی (تفاوت) | نسخهٔ جدیدتر ← (تفاوت)


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 الگو:Chop head and tail.


Unlinking

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

{{Chop head and tail|[[Einstein]]|2}} results in الگو:Chop head and tail.

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


Limitations

See also


خطای اسکریپتی: پودمان «Navbox with collapsible groups» وجود ندارد.