ထႅမ်းပလဵတ်ႉ:Political party/doc
Appearance
ၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း လၢႆးၸႂ်ႉတိုဝ်း (documentation) ႁင်း တွၼ်ႈတႃႇ ၼႃႈလိၵ်ႈၽႄ (subpage) ထႅမ်းပလဵတ်ႉ:Political party ၼၼ်ႉယဝ်ႉ။ တီႈၼႃႈလိၵ်ႈဢၼ်ၼႆႉၼႆႉ မၼ်းတေၶဝ်ႈပႃးဝႆႉ လၢႆးၸႂ်ႉတိုဝ်း လႄႈ ၶေႃႈၶၢဝ်ႇဢၼ်ၵဵဝ်ႇၵပ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ ၶေႃႈမုၼ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၵဵဝ်ႇၵပ်း တင်း ထႅမ်းပလဵတ်ႉ page ၼၼ်ႉယဝ်ႉ။ |
Uses Lua: |
Template:Political party produces the short name or color of the provided political party.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{Political party|<party name>|<value requested>}}
ပႃႇရႃႇမီႇတႃႇ
[မႄးထတ်းငဝ်ႈငႃႇ]Parameter | Description |
---|---|
1 | The political party's name. If a party is not found, place a request at the talk page. |
2 | The value requested. Currently supported values are abbrev , color , and shortname .
|
error | Optional, this parameter will return the provided |error= value if the module does not contain the requested party or color.
|
Examples
[မႄးထတ်းငဝ်ႈငႃႇ]Here are some examples using the Labour Party (note that there are multiple potential input names):
["Labour and Co-operative"] = "Labour Party (UK)", ["Labour Co-operative"] = "Labour Party (UK)", ... ["Labour Party (Thailand)"] = {abbrev = "", color = "#FF0000", shortname = "",}, ["Labour Party (UK)"] = {abbrev = "Lab", color = "#E4003B", shortname = "Labour",},
{{Political party|Labour Party (UK)|abbrev}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Labour Party (UK)|shortname}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Labour and Co-operative|shortname}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Labour Co-operative|shortname}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Labour Party (UK)|color}}
→ ထႅမ်းပလဵတ်ႉ:Political party
If the party is not present in the module, or the shortname or abbreviation are not in the module, the input party name will be returned.
{{Political party|Not-a-party|abbrev}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Not-a-party|shortname}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Not-a-party|color}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|A test no values|shortname}}
→ ထႅမ်းပလဵတ်ႉ:Political party
Lua script error messages
[မႄးထတ်းငဝ်ႈငႃႇ]If either of the required parameters are not supplied, or the color does not exist in the module, an error will be returned.
{{Political party}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|A test no values}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|A test no values|color}}
→ ထႅမ်းပလဵတ်ႉ:Political party
To avoid generating a script error, use |error=value
. Note that this error value will also be passed if the party is not stored in the module.
{{Political party|A test no values|color|error=ERROR}}
→ ထႅမ်းပလဵတ်ႉ:Political party{{Political party|Not-a-party|color|error=ERROR}}
→ ထႅမ်းပလဵတ်ႉ:Political party
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]Tracking categories
[မႄးထတ်းငဝ်ႈငႃႇ]- Category:Pages using Political party with unknown party (0)
- Category:Pages using Political party with missing shortname (0)
- Category:Pages using Political party with missing color (0)