Johnrdorazio
Joined August 15, 2020
Content deleted Content added
Johnrdorazio (talk | contribs) Tags: Mobile edit Mobile web edit |
Johnrdorazio (talk | contribs) |
||
Line 39:
</syntaxhighlight>
== Testing MobileDetect parser tags ==
In this very moment you seem to be using a <mobileonly>mobile</mobileonly><nomobile>desktop</nomobile> device.
Here is
▲Here is a string that should only show on mobile devices: <mobileonly>**I AM A MOBILE DEVICE!**</mobileonly>
Here is
Here is an html block-level element that should only show on mobile, using the <code><mobileonly></code> parser tag:
<mobileonly>
<div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A MOBILE DEVICE!</div>
</mobileonly>
▲Here is a string that should only show on desktop devices: <nomobile>**I AM A DESKTOP DEVICE!**</nomobile>
▲Here is a block element that should only show on desktop, using the <code><nomobile></code> tag:
<nomobile>
<div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A DESKTOP DEVICE!</div>
</nomobile>
== Testing MobileDetect parser functions ==
Here is an inline string that should only show on mobile devices, using the <code>#mobileonly:</code> parser function: {{#mobileonly:'''I am a MOBILE device!'''}}
Here is an inline string that should only show on desktop devices, using the <code>#nomobile:</code> parser function: {{#nomobile:'''I am a DESKTOP device!'''}}
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> }}
And here is an html block-level element that should only show on desktop, using the <code>#nomobile:</code> parser function:
{{#nomobile: <div style="background-color:yellow;color:darkblue;font-weight:bold;text-align:center;">I AM A DESKTOP DEVICE!</div> }}
== Testing BibleGet tags ==
|