টেমপ্লেট:First word: সংশোধিত সংস্করণের মধ্যে পার্থক্য
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
imported>Smith609 Use Template:Strfind_short, which supports strings up to 99 characters in length and has better performance metrics |
try to suppress trailing whitespace |
||
১ নং লাইন: | ১ নং লাইন: | ||
{{#ifeq:{{strfind short|{{{1|}}}| |1}}|0|{{{1|}}}|{{trunc|{{{1|}}}|{{strfind short|{{{1|}}}| |1}} |
{{#ifeq:{{strfind short|{{{1|}}}| |1}}|0|{{{1|}}}|{{trunc|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}}}}}<noinclude>{{documentation}}</noinclude> |
১৩:৫৩, ১২ ফেব্রুয়ারি ২০১১ তারিখে সংশোধিত সংস্করণ
ব্যবহৃত লুয়া: |
ব্যবহার
Returns the first word of the first parameter. By default, words are delimited by spaces, but optional parameter sep=/ can set the word separator to slash (or any other character). The parameter should not have leading spaces, unless the word separator, sep, is set to another character.
উদাহরণ
- {{first word|Foo bar baz}} → Foo
- {{first word|Foo}} → Foo
- {{first word|Foo-bar-baz}} → Foo-bar-baz
- {{first word|Foo-bar-baz|sep=- }} → Foo-bar-baz
- {{first word|34,000,500|sep=, }} → 34,000,500
- {{first word|1=len = a+b |sep== }} → len
- {{first word|Hear ye, users |sep=, }} → Hear
আরও দেখুন
টেমপ্লেট:String-handling templates
উপরোক্ত নথিটি টেমপ্লেট:First word/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |