Template:If mobile
Sarna News

- VoidBreaker Review - How Clan Sea Fox Ended the Dark Age
- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Read more →
This template 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 BattleTechWiki, and displays different content accordingly.
Rationale[edit]
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[edit]
{{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.