Template:IsDesktop/doc: Difference between revisions

ReisuDesign (talk | contribs)
Created page with "{{Documentation/Header}} :;Template copied from [https://obey-me.fandom.com/wiki/Template:IsDesktop Obey Me Wiki] <strong>Note: This template must have the template type "Notice" in order to work properly.</strong><br> This template allows showing different content for mobile skin and for desktop skin - not just selectively hiding content, but actually having different Wikitext. (See also #Technical explanation) ==Syntax== <pre> {{#if:{{IsDesktop}} | Content for de..."
 
ReisuDesign (talk | contribs)
No edit summary
Line 16: Line 16:
<pre>
<pre>
{{#if:{{IsDesktop}}
{{#if:{{IsDesktop}}
| You are now on desktop view. [{{fullurl:{{FULLPAGENAME}}|useskin=fandommobile}} <span class="wds-button">Switch to mobile view</span>]
| You are now on desktop view. [{{fullurl:{{FULLPAGENAME}}|mobileaction=toggle_view_mobile}} <span class="wds-button">Switch to mobile view</span>]
| You are now on mobile view. [{{fullurl:{{FULLPAGENAME}}|useskin=oasis}} <span class="wds-button">Switch to desktop view</span>]
| You are now on mobile view. [{{fullurl:{{FULLPAGENAME}}|desktopaction=toggle_view_desktop}} <span class="wds-button">Switch to desktop view</span>]
}}
}}
</pre>
</pre>
{{#if:{{IsDesktop}}
{{#if:{{IsDesktop}}
| You are now on desktop view. [{{fullurl:{{FULLPAGENAME}}|useskin=fandommobile}} <span class="wds-button">Switch to mobile view</span>]
| You are now on desktop view. [{{fullurl:{{FULLPAGENAME}}|mobileaction=toggle_view_mobile}} <span class="wds-button">Switch to mobile view</span>]
| You are now on mobile view. [{{fullurl:{{FULLPAGENAME}}|useskin=fandomdesktop}} <span class="wds-button">Switch to desktop view</span>]
| You are now on mobile view. [{{fullurl:{{FULLPAGENAME}}|desktopaction=toggle_view_desktop}} <span class="wds-button">Switch to desktop view</span>]
}}
}}