Template:IsDesktop/doc

Note: This template must have the template type "Notice" in order to work properly. 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 )

Examples
 Collapsed by default only on mobile  Collapsed by default only on mobile

(On mobile, the collapsible above is collapsed by default,

and an "Expand" button should appear here on the right -->

while on desktop it is expanded by default)

Technical explanation
Certain template types behave differently on the mobile view (see Help:Template types on Community Central). The template type "Notice", which is intended for editor and maintenance notes, is totally stripped out on the mobile skin since it is mainly aimed for readers.

By combining this behavior with the  parser function, we can make the parser to render different Wikitext for desktop and for mobile.