Template:Mobile: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Adjusting display of instructions) |
||
Line 4: | Line 4: | ||
</div></includeonly> | </div></includeonly> | ||
<noinclude>Simply insert this Template onto a page (wherever you want it) and it will generate a warning for mobile users + a redlink to create a mobile-optimized page. If you want, you can also include a single parameter to change the destination of the redlink. | <noinclude>Simply insert this Template onto a page (wherever you want it) and it will generate a warning for mobile users + a redlink to create a mobile-optimized page. If you want, you can also include a single parameter to change the destination of the redlink. | ||
<div style="display: | <div style="display:inline-block; width: 40%; min-width: 400px; margin-right: 20px; min-height: 20em; vertical-align: top;"> | ||
=== Default Usage: === | === Default Usage: === | ||
Let's assume we're using this on a character, named '''Joe Boggs'''', wiki page. | Let's assume we're using this on a character, named '''Joe Boggs'''', wiki page. | ||
Line 12: | Line 11: | ||
{{Mobile|Joe Boggs}} | {{Mobile|Joe Boggs}} | ||
</div> | </div> | ||
<div style="display: | <div style="display:inline-block; width: 40%; min-width: 400px; min-height: 20em; vertical-align: top;"> | ||
=== Parameter Usage: === | === Parameter Usage: === | ||
Let's assume we're using this on a page with a '''complicated name''' (e.g. Amity Auxiliary Craft) and we want to simplify | Let's assume we're using this on a page with a '''complicated name''' (e.g. Amity Auxiliary Craft) and we want to simplify it. | ||
<pre>{{Mobile|AmityAux}}</pre> | <pre>{{Mobile|AmityAux}}</pre> | ||
'''Generates:''' | '''Generates:''' | ||
{{Mobile|AmityAux}} | {{Mobile|AmityAux}} | ||
</div></noinclude> |
Revision as of 19:47, 5 October 2023
Simply insert this Template onto a page (wherever you want it) and it will generate a warning for mobile users + a redlink to create a mobile-optimized page. If you want, you can also include a single parameter to change the destination of the redlink.
Default Usage:
Let's assume we're using this on a character, named Joe Boggs', wiki page.
{{Mobile}}
Generates:
Mobile Optimized Page:
Joe Boggs/Mobile
Parameter Usage:
Let's assume we're using this on a page with a complicated name (e.g. Amity Auxiliary Craft) and we want to simplify it.
{{Mobile|AmityAux}}
Generates:
Mobile Optimized Page:
AmityAux/Mobile