• ႁူဝ်ႁႅၵ်ႈ
  • ရၼ်ႇတမ်ႇ
  • ႁိမ်းၸမ်
  • လွၵ်ႉၶဝ်ႈ
  • ၵၢၼ်လိူၵ်ႈၶၼ်
Donate Now If Wikipedia is useful to you, please give today.
  • ၵဵဝ်ႇၵပ်း ဝီႇၶီႇၽီးတီးယႃး
  • ၶေႃႈထဵင်
ဝီႇၶီႇၽီးတီးယႃး

ထႅမ်းပလဵတ်ႉ:If mobile

  • ၽႃႇသႃႇ
  • ပႂ်ႉတူၺ်း
  • မႄးထတ်း

ၽိုၼ်ၵႅမ်မိုဝ်း ထႅမ်းပလဵတ်ႉ[တူၺ်း] [ထတ်း] [ပိုၼ်း] [ၸၢင်း]
CSSThis template uses TemplateStyles:
  • Template:If mobile/styles.css (sandbox)
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.

လမ်းၼႂ်း

  • 1 Rationale
  • 2 လွင်ႈၸႂ်ႉတိုဝ်း
  • 3 တူဝ်ယၢင်ႇ
    • 3.1 ၸႂ်ႉတိုဝ်း ပၵတိ
    • 3.2 Within the Template: namespace

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}}

  • view on desktop website
  • view on mobile website

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.
  • View on desktop website
  • View on mobile website
  • v
  • t
  • e
Namespace and pagename-detecting templates
Namespace
Particular
  • Main other
  • Talk other
  • Category other
  • Draft other
  • File other
    • Is Commons
  • Help other
  • Module other
  • Portal other
  • Template other
  • User other
  • Wikipedia other
  • Single namespace
  • If talkspace of
  • If usertalk of
More generic
  • Namespace detect
  • Namespace detect showall
  • Main talk other
    • Main talk other flex
  • Talkspace detect
Pagename
When on basepage
Detects and acts according to whether it is on a basepage or on any subpage (that is, a ../.. subpage).
When pagename is
For pattern matching on the pagename.
Module:Page
Can take apart and put together pagenames in several ways.
IP-talk
Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
IP-user other
For detecting IP-user pages.
Subpage other
Pagename has an after-slash part (not in mainspace)
Sandbox other
Page is subpage /sandbox (template space)
Testcases other
Page is subpage /testcases (template space)
Rootpage other
Page is rootpage (vs. /subpage) (template space)
Others
Stub other
Detects whether it is on a page with a stub template or not.
If preview
Detects whether page is viewed as a preview or not.
If IP
Displays different content to IP users and logged-in users.
If autoconfirmed
Displays different content to autoconfirmed and non-autoconfirmed users.
If extended confirmed
Displays different content to extended confirmed and non-extended confirmed users.
If administrator
Displays content only to admins.
If mobile
Displays different content to mobile users and desktop users.
If checkuser
Displays content only to checkusers.
Noscript
Detects whether page is viewed with a JavaScript-capable client or not.
  • Wikipedia:Namespace
  • Wikipedia:Page name
  • Magic words
  • ParserFunctions
ၽိုၼ်ၵႅမ်မိုဝ်း တီႈၽၢႆႇၼိူဝ်ၼႆႉ ပဵၼ် ဢၼ် ထွၼ်ဢွၵ်ႇ မႃးတီႈ ထႅမ်းပလဵတ်ႉ:If mobile/doc။ (ထတ်း | ပိုၼ်း)
ၽူႈမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ တီႈၼႂ်း ၼႃႈလိၵ်ႈ sandbox (ထတ်း | ပိူင်ႈ) လႄႈ testcases (သၢင်ႈ) ၶွင် ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ လႆႈယူႇ။
ထႅမ်ပိူင်ထၢၼ်ႈ သႂ်ႇၸူးတီႈ ၼႃႈလိၵ်ႈၽႄ /doc ။ ၼႃႈလိၵ်ႈၽႄ ၶွင် ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ.
ဢဝ်ၶိုၼ်းမႃးတီႈ "https://shn.wikipedia.org/w/index.php?title=ထႅမ်းပလဵတ်ႉ:If_mobile&oldid=60776"
Last edited on 18 ၸုၼ်ႇ 2023, at 07:42

Languages

    • العربية
    • Авар
    • تۆرکجه
    • Беларуская (тарашкевіца)
    • বাংলা
    • Bosanski
    • Deutsch
    • Ελληνικά
    • English
    • فارسی
    • Bahasa Indonesia
    • Jawa
    • ಕನ್ನಡ
    • 한국어
    • Кыргызча
    • Монгол
    • Bahasa Melayu
    • မြန်မာဘာသာ
    • ਪੰਜਾਬੀ
    • Română
    • Русиньскый
    • سنڌي
    • Slovenščina
    • Türkçe
    • اردو
    • Oʻzbekcha / ўзбекча
    • Tiếng Việt
    • 中文
    • 粵語
    ဝီႇၶီႇၽီးတီးယႃး
    • Wikimedia Foundation
    • Powered by MediaWiki
    • ၼႃႈ​လိၵ်ႈၼႆ့ မႄးမႃး​ဝႆႉ ၼင်ႇ​ၵမ်း​လိုၼ်း​သုတ်း မိူဝ်ႈ ဝၼ်း​တီႈ 18 ၸုၼ်ႇ 2023 ၶၢဝ်းယၢမ်း 07:42
    • ၸိူဝ်းၶဝ်ႈပႃးဝႆႉၼႆႉ မၼ်းတေၸၢင်ႈၸႂ်ႉလႆႈ ၵႃႈတီႈ မ်ႂ CC BY-SA 4.0
    • လၵ်း​ၼမ်း လွင်ႈ​ႁူမ်ႇ​လူမ်ႈ သုၼ်ႇ​လဵဝ်
    • ၵဵဝ်ႇၵပ်း ဝီႇၶီႇၽီးတီးယႃး
    • ၶေႃႈထဵင်
    • Code of Conduct
    • ၽူႈၶူင်သၢင်ႈ
    • သဵၼ်ႈသၢႆမၢႆ
    • ၶေႃႈပိုၼ်ၽၢဝ်ႇ ၶူၵ်ႉၶီး
    • ၶေႃႈၽၢင်ႉလွင်ႈၸႂ်ႉတိုဝ်း
    • ၶွမ်း