ထႅမ်းပလဵတ်ႉ:Dialog/psub/doc
ဢၼ်ၼႆႉပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း ၽႄ တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ:Dialog/psub (တူၺ်းၼႃႈလိၵ်ႈၼၼ်ႉ တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ တူဝ်မၼ်း)။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမၼ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈၶွင် ထႅမ်းပလဵတ်ႉ ၼႃႈလိၵ်ႈ ငဝ်ႈတိုၼ်းမၼ်း။ |
This is a dialog formatting template. It is meant for use on interactive dialog pages, and may involve interactions between wiki markup, html, and javascript. Please carefully test any edits before making them. |
This template simulates substitution of incoming dialog parameters for template parameters in a wiki text.
Usage
မႄးထတ်းSpecify the wiki text through template parameter text
. Specify the name and value of an incoming dialog parameter through template parameters nk
and vk
for integer k in the range from 1 to 20 (as of this writing).
{{Dialog/psub|text=foo{{{bar}}}quux|n1=bar|v1=baz}}
would expand to
foobazquux
Template parameters are only substituted for if their default value in text
does not contain any nested curly braces; thus, given markup {{{foo|{{{bar|quux}}}}}}
, incoming dialog parameter bar
would be substituted for, but not incoming dialog parameter foo
. (This faithfully reproduces a limitation of dialog substitution for incoming dialog parameters.)
Reserved dialog parameters are not automatically handled.
If the value substituted for a parameter contains certain characters with format meaning in wiki markup, those characters are not naively substituted in, but instead are replaced by wiki markup for calls to suitable character-substitution templates, just as dialog substitution does to preserve parse structure.
{{Dialog/psub|text=foo{{{bar}}}quux|n1=bar|v1=<>}}
would expand to
foo{{(\}}{{\)}}quux
တူၺ်းပႃး
မႄးထတ်း- pages using, or referring to, this template
- {{Dialog/pipetrick}}
- {{Dialog/rm subst}}
- လွင်ႈၸွႆႈထႅမ်:Dialog