Template:Mobile: Difference between revisions

m
Adjusting display of instructions
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:table;">
<div style="display:inline-block; width: 40%; min-width: 400px; margin-right: 20px; min-height: 20em; vertical-align: top;">
<div style="display:table-column;">
=== 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:table-column;">
<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 if.
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></div></noinclude>
</div></noinclude>