پرش به محتوا

الگو:Trim/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as {{جا:trim}}, the resulting wikicode is "clean".

استفاده[ویرایش]

{{trim|text}} = text with any leading or trailing whitespace removed.

نمونه[ویرایش]

  • {{trim|abc}} ارائه می‌دهد: abc.

داده‌های الگو[ویرایش]

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Trim

The template trims whitespace from a string.

پارامترهای الگو

پارامترتوضیحاتنوعوضعیت
String1

The string to be trimmed of whitespace

رشتهضروری

جستارهای وایسته[ویرایش]