ထႅမ်းပလဵတ်ႉ:deprecated lang param usage/documentation

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး
ၽိုၼ်လိၵ်ႈၵူႈမိုဝ်း တွၼ်ႈတႃႇထႅမ်းပလဵတ်ႉ:deprecated lang param usage[မႄးထတ်း]
တီႈၼႃႈလိၵ်ႈၼႆႉ ၶဝ်ႈပႃးဝႆႉ ၶေႃႈမုၼ်း လၢႆးၸႂ်ႉတိုဝ်းပိူင်ထၢၼ်ႈလွင်ႈၵွင်ႉသိုပ်ႇ interwiki လႄႈ ၸိူဝ်းပဵၼ် လွင်ႈၼႄပၼ် ထႅမ်းပလဵၵ်ႉ ၼၼ်ႉယဝ်ႉ။

This template should be used in conjunction with templates that accept the |lang= parameter as a deprecated alternative to |1= and have successfully eliminated all such usages. Use is as follows:

{{ {{#if:{{{lang|}}}|deprecated lang param usage|no deprecated lang param usage}}|lang={{{lang|}}}|<TEMPLATE-CALL>}}

If the lang parameter is in usage, this formats the output of the template call with the .deprecated CSS class (which by default displays the output in olive green), precedes it with the text "deprecated use of |lang= parameter", adds a tooltip "This template call uses the deprecated 'lang' parameter. Use '1' instead." and categorizes the page in Category:Pages using deprecated templates. Otherwise, the output is simply returned as normal.

Note: the space between the two sets of {{ at the beginning is mandatory, or else the parser will interpret it as { {{{, which will not work.

ပႃႇရႃႇမီႇတႃႇ[မႄးထတ်း]

  • |1=: The template call.
  • |lang=: Pass-through of the |lang= parameter.

တူၺ်းပႃး[မႄးထတ်း]