Jump to content

ထႅမ်းပလဵတ်ႉ:ASST/trim

လုၵ်ႉတီႈ ဝီႇၶီႇၶၢဝ်ႇ မႃး
[edit] ၽိုၼ်ၵႅမ်မိုဝ်း ထႅမ်းပလဵတ်ႉ

This subtemplate of {{ASST}} strips optional prefix Assistant: from a string. Meant to be used at option by other templates, not just by {{ASST}} and its subtemplates.

လွင်ႈၸႂ်ႉတိုဝ်း

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

Specify the string as unnamed parameter.

This template is designed so it can be substituted (via subst:) as well as transcluded.

If the parameter doesn't start with Assistant:, it's returned unchanged, otherwise the prefix is removed.

At this writing, this template is not used by {{ASST}} or any of its (other) subtemplates. However, it seemed naturally to group prefix? and trim under the same template; and of the likely choices, {{ASST}} is both the shortest-named and most generic.