ထႅမ်းပလဵတ်ႉ:Getalias2/doc
Appearance
ၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း လၢႆးၸႂ်ႉတိုဝ်း (documentation) ႁင်း တွၼ်ႈတႃႇ ၼႃႈလိၵ်ႈၽႄ (subpage) ထႅမ်းပလဵတ်ႉ:Getalias2 ၼၼ်ႉယဝ်ႉ။ တီႈၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းတေၶဝ်ႈပႃးဝႆႉ လၢႆးၸႂ်ႉတိုဝ်း လႄႈ ၶေႃႈၶၢဝ်ႇဢၼ်ၵဵဝ်ႇၵပ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ ၶေႃႈမုၼ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၵဵဝ်ႇၵပ်း တင်း ထႅမ်းပလဵတ်ႉ page ၼၼ်ႉယဝ်ႉ။ |
This is a more general version of {{Getalias}}, which can extract any parameter value from a country data template instead of just parameters named "... alias" or "... alias-...".
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]
→{{getalias2|United Kingdom|flag alias}}
Flag of the United Kingdom.svg
(the value of|flag alias=
in {{Country data United Kingdom}})
→{{getalias2|Georgia (U.S. state)|shortname alias}}
ထႅမ်းပလဵတ်ႉ:သဵၼ်ႈမၢႆ မိူင်း Georgia (U.S. state)
(the value of|shortname alias=
in {{Country data Georgia (U.S. state)}})
→{{getalias2|Nepal|border}}
(nothing, since
|border=
is set to nothing in {{Country data Nepal}})
→{{getalias2|Russia|border}}
{{{border}}}
(no|border=
parameter is defined in {{Country data Russia}})
→{{getalias2|Nepal|size}}
23x20px
(in {{Country data Nepal}}, the{{{size}}}
parameter is passed through with fallback value 23x20px)
→{{getalias2|Russia|size}}
(in {{Country data Russia}}, the
{{{size}}}
parameter is passed through with empty fallback value)
Usage with variant
[မႄးထတ်းငဝ်ႈငႃႇ]The |variant=
parameter can be used to extract a variant parameter value, and returns the main parameter value if the variant parameter is undefined:
→{{getalias2|United Kingdom|flag alias|variant=civil}}
Civil Ensign of the United Kingdom.svg
(the value of|flag alias-civil=
)
→{{getalias2|United Kingdom|flag alias|variant=foo}}
Flag of the United Kingdom.svg
(non-existent variant; returns the value of|flag alias=
as fallback)