Topic on Extension talk:MobileDetect

Tags <nomobile> <mobileonly> does not work in Templates

3
Summary by Sophivorus
  1. nomobile and #mobileonly parser functions introduced in version 2.4
Xsteeplol (talkcontribs)

I was trying to use this extension on my wiki (MW1.35) in a template to display different Main Page according to the device, but it seems not working.


I created Template:MP :

<nomobile>{{{1}}}<nomobile> <mobileonly>{{{2}}}</mobileonly>


When i use {{Template:MP|Main page for Desktop|Main page for Mobile}} it renders variables as plain text, and does not replace the content.

Sophivorus (talkcontribs)

Hi, I just introduced equivalent #nomobile and #mobileonly parser functions that should work on templates. Please download the latest version 2.4 and let me know of any issues!

WikiForMen (talkcontribs)
Reply to "Tags <nomobile> <mobileonly> does not work in Templates"