Template:Align/doc: Difference between revisions

m
22 revisions imported from wikipedia:Template:Align/doc
(→‎Examples: ==See also== *{{tl|Center}} *{{tl|Left}} *{{tl|Right}} *{{tl|Float right}})
m (22 revisions imported from wikipedia:Template:Align/doc)
 
(8 intermediate revisions by 8 users not shown)
Line 1:
{{Documentation subpage}}
{{High-use|120520}}
{{caution|'''Align Center does not function''' for [[WP:MOBILE|the mobile view and mobile applications]]. Be aware that more than half of the Wikipedia visitors are via mobile.}}
This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:
Line 9 ⟶ 10:
{| class="wikitable" width="500px"
|-
| <div style="padding-bottom:0.25em;">{{tlx|align|left|<nowiki>'''Hello world!'''</nowiki>}} produces this:<br/>
 
{{align|left|'''Hello world!'''}}
Line 20 ⟶ 21:
 
{{align|center|'''Hello world!'''}}
|-
|{{tlx|align|center|<nowiki>'''Hello world!'''|style=color:red</nowiki>}} produces this:<br/>
 
{{align|center|'''Hello world!'''|style=color:red}}
|}
 
==See also==
* {{tl|Centercenter block}}
* {{tl|Leftalign}}
* {{tl|center}}, {{tl|right}} and {{tl|left}}
*{{tl|Right}}
* {{tl|FloatImage rightframe}}
 
<includeonly>{{sandbox other||
[[Category:Positioning templates]]
}}</includeonly>