The pages listed in this category are templates.
This page is part of OODA WIKI's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
This category is an index of templates which use TemplateStyles. It is automatically populated by {{Uses TemplateStyles}}.
Note that {{If mobile}} only works outside of the Template: namespace. |
This template detects whether it is being used on the mobile version of OODA WIKI (en.m.OODA WIKI.org), and displays different content accordingly. This should however NOT be relied upon. For instance; both versions of content will generally show up in things like search engines. You should generally AVOID using this template. If you need to adapt the layout of a page for mobile, then please use TemplateStyles and CSS.
Rationale
Some features work differently on the mobile website, such as slideshow galleries appearing as ordinary galleries. This template allows better presentation of such content, by e.g. having a "Slideshow" heading when a slideshow is shown, and a "Gallery" heading when a regular gallery is shown.
Usage
{{If mobile|content for mobile website|content for desktop website}}
By default, <span>...</span>
tags are used to wrap the specified content. A different tag may be specified using |tag=
- E.g.
|tag=div
can be used if the content contains block-level elements.
Example
Normal usage
{{If mobile|A mobile user you are!|You are looking at the desktop site}}
- WIKI.org/w/index.php?title=OODA WIKI:Sandbox&oldid=857234029 view on desktop website
- WIKI.org/w/index.php?title=OODA WIKI:Sandbox&oldid=857234029 view on mobile website
Within the Template: namespace
Note that the behaviour is different when within the Template: namespace! (e.g. on this documentation page)
You are currently viewing the {{If mobile|mobile website|desktop website}}.
- You are currently viewing the desktop websitemobile website.