ထႅမ်းပလဵတ်ႉ:If mobile
This template uses TemplateStyles: |
Note that {{If mobile}} only works outside of the Template: namespace. |
This template detects whether it is being used on the mobile version of Wikipedia (en.m.wikipedia.org), and displays different content accordingly.
Rationale
[မႄးထတ်းငဝ်ႈငႃႇ]Some features work differently on the mobile website, such as slideshow galleries appearing as ordinary galleries. This template allows better presentation of such content, by e.g. having a "Slideshow" heading when a slideshow is shown, and a "Gallery" heading when a regular gallery is shown.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{If mobile|content for mobile website|content for desktop website}}
By default, <span>...</span>
tags are used to wrap the specified content. A different tag may be specified using |tag=
- E.g.
|tag=div
can be used if the content contains block-level elements.
တူဝ်ယၢင်ႇ
[မႄးထတ်းငဝ်ႈငႃႇ]ၸႂ်ႉတိုဝ်း ပၵတိ
[မႄးထတ်းငဝ်ႈငႃႇ]{{If mobile|A mobile user you are!|You are looking at the desktop site}}
Within the Template: namespace
[မႄးထတ်းငဝ်ႈငႃႇ]Note that the behaviour is different when within the Template: namespace! (e.g. on this documentation page)
You are currently viewing the {{If mobile|mobile website|desktop website}}.
- You are currently viewing the desktop websitemobile website.
|
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ ထႅမ်းပလဵတ်ႉ:If mobile/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (မႄးထတ်း | လွင်ႈပႅၵ်ႇပိူင်ႈ) လႄႈ testcases (သၢင်ႈ) ႁင်း ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ သႂ်ႇပိူင်ထၢၼ်ႈ ၵႃႈတီႈ ၼႃႈလိၵ်ႈၽႄ /doc လႄႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ။. |