Template:IfDesktop/doc

Description
A simple if statement for detecting if the page is being displayed in desktop mode. This can be useful for getting around some of the limitations of mobile view by have 2 different bits of code for the 2 different views.

Note: Any desired use of = or | in the parameters will need to be replaced with = or | respectfully.

Syntax

 * 1
 * Code block to use for Desktop Mode viewers.


 * 2
 * Code block to use for Mobile Mode viewers.

Sample


results in