الفرق بين المراجعتين لصفحة: «قالب:Str startswith»
المظهر
ar>Wikivahdat Trim parameters before passing to module as described by the documentation |
Wikivahdat (نقاش | مساهمات) ط مراجعة واحدة |
(لا فرق)
| |
المراجعة الحالية بتاريخ ٠٧:٣١، ٧ ديسمبر ٢٠٢٢
| Lua logo | هذا القالب يستعمل لوا: |
This is the {{Str startswith}} meta-template.
It returns "yes" if the second parameter is the start of the first parameter. Both parameters are trimmed before use.
Examples
{{Str startswith|foo (bar)|foo}}→ yes{{Str startswith|foo|bar}}→{{Str startswith|(bar)|foo (bar)}}→{{Str startswith|foo bar | foo }}→ yes
Border cases:
{{Str startswith}}→{{Str startswith||}}→{{Str startswith|| }}→{{Str startswith| |}}→