Template:Wn/shn/Dialog/psub/doc
ဢၼ်ၼႆႉပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း ၽႄ တွၼ်ႈတႃႇ Template:Wn/shn/Dialog/psub (တူၺ်းၼႃႈလိၵ်ႈၼၼ်ႉ တွၼ်ႈတႃႇ template တူဝ်မၼ်း)။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမၼ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈၶွင် template ၼႃႈလိၵ်ႈ ငဝ်ႈတိုၼ်းမၼ်း။ |
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 edit
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).
{{Wn/shn/Dialog/psub|text=foo{{{bar}}}quux|n1=bar|v1=baz}}
would expand to
Lua error: Unmatched close-bracket at pattern character 16.
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.
{{Wn/shn/Dialog/psub|text=foo{{{bar}}}quux|n1=bar|v1=<>}}
would expand to
Lua error: Unmatched close-bracket at pattern character 16.
တူၺ်းပႃး edit
- pages using, or referring to, this template
- {{Wn/shn/Dialog/pipetrick}}
- {{Wn/shn/Dialog/rm subst}}
- Help:Dialog