Johnrdorazio
Joined August 15, 2020
Content deleted Content added
Johnrdorazio (talk | contribs) Tags: Mobile edit Mobile web edit |
Johnrdorazio (talk | contribs) Tags: Mobile edit Mobile web edit |
||
Line 57:
== Testing MobileDetect parser functions ==
=== Inline ===
Here is an inline string that should only show on mobile devices, using the <code>#mobileonly:</code> parser function with the second parameter set to true: {{#mobileonly:'''I am a MOBILE device!'''|true}}
Here is an inline string that should only show on desktop devices, using the <code>#nomobile:</code> parser function with the second parameter set to true: {{#nomobile:'''I am a DESKTOP device!'''|true}}
=== Block ===
Here is an html block-level element that should only show on mobile, using the <code>#mobileonly:</code> parser function:
{{#mobileonly: <div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A MOBILE DEVICE!</div> |0}}
And here is an html block-level element that should only show on desktop, using the <code>#nomobile:</code> parser function:
|