ထႅမ်းပလဵတ်ႉ:Trim brackets

လုၵ်ႉတီႈ ဝီႇၶီႇၽီးတီးယႃး ဢၼ်လွတ်ႈလႅဝ်းထၢင်ႇႁၢင်ႈ ၼၼ်ႉမႃး
Documentation icon ၽိုၼ်ၵႅမ်မိုဝ်းထႅမ်းပလဵတ်ႉ[တူၺ်း] [မႄးထတ်း] [ပိုၼ်း] [ၸၢင်း]
တူဝ်ယေႃႈ:

This template trims leading and trailing square brackets and whitespace from a string. This is similar to {{delink}}, but it won't remove brackets from the middle of the string. The string should be passed as the first unnamed parameter or using |1= if your string contains any = signs. You may substitute this template - that is, if used as {{subst:trim brackets}}, the resulting wikicode is "clean".

လွင်ႈၸႂ်ႉတိုဝ်း[မႄးထတ်းငဝ်ႈငႃႇ]

{{trim brackets|text}} = text with any leading or trailing square brackets removed (as long as text doesn't contain any = signs).

{{trim brackets|1=text}} = text with any leading or trailing square brackets removed.

တူဝ်ယၢင်ႇ[မႄးထတ်းငဝ်ႈငႃႇ]

  • "{{trim brackets|1= [[abc]], [[def]], and [[ghi]] }}" produces "abc]], def, and [[ghi"
    ("{{delink|1= [[abc]], [[def]], and [[ghi]] }}" produces "abc, def, and ghi").

ၶေႃႈမုၼ်းထႅမ်းပလဵတ်ႉ[မႄးထတ်းငဝ်ႈငႃႇ]

ၶေႃႈမုၼ်းၸိူဝ်းၽၢႆႇတႂ်ႈၼႆႉ ယိူင်းဢၢၼ်းဝႆႉတႃႇ ၶၢဝ်းမိူဝ်းၼႃႈသေ တီႈ ဝီႇၶီႇၽီးတီးယႃးတႆးၼႆႉၵေႃႈ တေၸၢင်ႈၸႂ်ႉမႃးလႆႈ ၶိူင်ႈၸႂ်ႉ ၼင်ႇ တူဝ်ထတ်းတႃႁၼ် (VisualEditor) ဢၼ်မီးတီႈ ဝီႇၶီႇၽီးတီးယႃးဢင်းၵိတ်ႉၼၼ်ႉလႄႈ ၸင်ႇလႆႈတမ်းၽႅၼ်ၵၢၼ်လၢႆးငၢၼ်း ၶေႃႈမုၼ်းထႅမ်းပလဵၵ်ႉ (TemplateData) ဢၼ်မီးၼင်ႇတီႈ ဢင်းၵိတ်ႉဝႆႉၼၼ်ႉသေၵေႃႈ လႆႈႁဵတ်းဝႆႉယဝ်ႉ။ ႁူမ်ႈဝႃႈ ဢမ်ႇပႆႇၸႂ်ႉ ၶိူင်ႈၸႂ်ႉၸိူဝ်းၼၼ်ႉသေတႃႉၵေႃႈ ၵဵဝ်ႇလူၺ်ႈ လွင်ႈတႅမ်ႈၽရူဝ်ႇၶႅမ်ႇ (computer programming) သေ သင်ၸိူဝ်ႉဝႃႈ ႁူႉပွင်ႇဝႆႉ ဢိတ်းဢွတ်းၵူၺ်းၵေႃႈ ႁႂ်ႈပေႃးႁၼ်လႆႈ ၸႅင်ႈလႅင်းပွင်ႇၸႂ်လီၼႆသေ ၸၢင်ႈဢဝ်ၸႂ်ႉလႆႈ ၼင်ႇႁူဝ်ႁုပ်ႈမၼ်းၼၼ်ႉယူႇ။

Trim brackets

The template trims leading and trailing square brackets from a string.

Template parameters[ၸတ်းၵၢၼ် ၶေႃႈမုၼ်းထႅမ်းပလဵၵ်ႉ]

Parameterၶေႃႈသပ်းလႅင်းTypeStatus
String1

The string to be trimmed

Stringrequired

တူၺ်းပႃး[မႄးထတ်းငဝ်ႈငႃႇ]

  • {{delink}}, which does nearly the exact same thing, but also removes balanced pairs of square brackets that aren't leading and trailing and has additional options.
  • {{trim}}