Difference between revisions of "Template:Align/doc"
Jump to navigation
Jump to search
blackwiki>Addbot m (Bot: Migrating interwiki links, now provided by Wikidata on d:q14443338) |
blackwiki>Sardanaphalus m (<br/>s to ensure output appears below the "...produces this:" lines) |
||
| Line 3: | Line 3: | ||
{{tlx|align|''position''|''content''}} | {{tlx|align|''position''|''content''}} | ||
| − | |||
== Examples == | == Examples == | ||
| Line 9: | Line 8: | ||
{| class="wikitable" width="500px" | {| class="wikitable" width="500px" | ||
|- | |- | ||
| − | |{{tlx|align|left|<nowiki>'''Hello world!'''</nowiki>}} produces this: | + | | <div style="padding-bottom:0.25em;">{{tlx|align|left|<nowiki>'''Hello world!'''</nowiki>}} produces this:<br/> |
{{align|left|'''Hello world!'''}} | {{align|left|'''Hello world!'''}} | ||
|- | |- | ||
| − | |{{tlx|align|right|<nowiki>'''Hello world!'''</nowiki>}} produces this: | + | |{{tlx|align|right|<nowiki>'''Hello world!'''</nowiki>}} produces this:<br/> |
{{align|right|'''Hello world!'''}} | {{align|right|'''Hello world!'''}} | ||
|- | |- | ||
| − | |{{tlx|align|center|<nowiki>'''Hello world!'''</nowiki>}} produces this: | + | |{{tlx|align|center|<nowiki>'''Hello world!'''</nowiki>}} produces this:<br/> |
{{align|center|'''Hello world!'''}} | {{align|center|'''Hello world!'''}} | ||
|} | |} | ||
| − | <includeonly>[[Category:Wikipedia formatting and function templates | + | <includeonly> |
| + | [[Category:Wikipedia formatting and function templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 15:47, 1 February 2014
| File:Edit-copy green.svg | This is a documentation subpage for Template:Align. It contains usage information, categories and other content that is not part of the original template page. |
This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:
{{align|position|content}}
Examples
{{align|right|'''Hello world!'''}} produces this:Hello world!
|
{{align|center|'''Hello world!'''}} produces this:Hello world!
|