ထႅမ်းပလဵတ်ႉ:Format item
Appearance
| This template uses Lua: |
This template transforms a given item using a given template.
တၢင်းၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{Format item | item = Item | template = TransformationTemplate | ... }}
TransformationTemplate is called with the parameters that the item has been created with, plus any additional parameters passed to {{Format item}}. Contents of the item take precedence over the additional parameters, unless the parameter name is prepended with important . If the parameter name collides with the parameters of {{Format item}} itself, prepend it with param . There is no need to combine ထႅမ်းပလဵတ်ႉ:Pre-wrapand important , though.
It is also possible to transform multiple items at once, but not with this template.
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]| Markup | Renders as |
|---|---|
{{Format item
| item = {{Item|name=Tom|animal=မဵဝ်း}}
| template = Show pet
}} |
Tom ၼႆႉ ပဵၼ် မဵဝ်း. |
{{Format item
| item = {{Item|name=Tom|animal=မဵဝ်း}}
| template = Show pet
| legs = 4
}} |
Tom ၼႆႉ ပဵၼ် မဵဝ်း ဢၼ်မီး 4 ၶႃ. |
{{Format item
| item = {{Item|name=Tom|animal=မဵဝ်း}}
| template = Show pet
| param legs = 4
}} |
Tom ၼႆႉ ပဵၼ် မဵဝ်း ဢၼ်မီး 4 ၶႃ. |
{{Format item
| item = {{Item|name=Tom|animal=မဵဝ်း}}
| template = Show pet
| animal = dog
}} |
Tom ၼႆႉ ပဵၼ် မဵဝ်း. |
{{Format item
| item = {{Item|name=Tom|animal=မဵဝ်း}}
| template = Show pet
| important animal = မႃ
}} |
Tom ၼႆႉ ပဵၼ် မႃ. |