টেমপ্লেট:প্রথম শব্দ অপসারণ: সংশোধিত সংস্করণের মধ্যে পার্থক্য

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Rich Farmbrough (আলোচনা | অবদান)
সম্পাদনা সারাংশ নেই
imported>Peter coxhead
Constructing version which will handle 'accented characters'
১ নং লাইন: ১ নং লাইন:
{{#if:{{strfind short|{{{1|}}}| |1}}|{{str sub|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}|{{#expr:{{strlen_quick|{{{1|}}}}}-{{strfind short|{{{1|}}}| |1}} }}}}}}<noinclude>
{{#if:{{strfind short|{{{1|}}}| |1}}|{{substr any|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}|{{#expr:{{strlen_quick|{{{1|}}}}}-{{strfind short|{{{1|}}}| |1}} }}}}}}<noinclude>


{{Documentation}}
{{Documentation}}

১৪:২৪, ১২ মে ২০১১ তারিখে সংশোধিত সংস্করণ


টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

This template removes the first word of the first parameter. Use |1= for the first parameter if the string may contain an equals sign (=). By default, words are delimited by spaces, but the optional parameter |sep= can set the separator to any character.

ব্যবহার

One parameter (space as separator):

  • {{প্রথম শব্দ অপসারণ|string}}
  • {{প্রথম শব্দ অপসারণ|1=string}}

Two parameters (user-defined character as separator):

  • {{প্রথম শব্দ অপসারণ|string|sep=character}}
  • {{প্রথম শব্দ অপসারণ|1=string|sep=character}}

উদাহরণ

  • {{প্রথম শব্দ অপসারণ|Fôo bår bàz}} → bår bàz
  • {{প্রথম শব্দ অপসারণ| Fôo bår bàz}}
  • {{প্রথম শব্দ অপসারণ| a b}} → b
  • {{প্রথম শব্দ অপসারণ|Fôo-bår}} → Fôo-bår
  • {{প্রথম শব্দ অপসারণ|Fôo-bår bàz}} → bàz
  • {{প্রথম শব্দ অপসারণ|Fôo-bår bàz|sep=-}} → bàz
  • {{প্রথম শব্দ অপসারণ|34,000,500|sep=,}} → 34,000,500
  • {{প্রথম শব্দ অপসারণ|Hear ye, users|sep=,}} → ye, users
  • {{প্রথম শব্দ অপসারণ|1=len = a+b|sep==}} → = a+b

আরও দেখুন

টেমপ্লেট:স্ট্রিং-হ্যান্ডলিং টেমপ্লেট