Template:Left/doc: Difference between revisions
Jump to navigation
Jump to search
en>Hyacinth →See also: *{{tl|Image frame}} |
en>Milker No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | <!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --> | ||
== Description == | |||
It is to '''left''' align elements on a page. The only parameter is the content to be aligned. | |||
== Usage == | == Usage == | ||
With no input arguments, | With no input arguments, it saves typing the following text (in a table): | ||
: <code><nowiki>style="text-align:left"|</nowiki></code> | |||
<code><nowiki> | To use, type <code><nowiki>{{left}}</nowiki></code> at the start of the table cell. | ||
With an input argument, this template saves typing: | |||
: <code><nowiki><div style="float:left;">...</div></nowiki></code> | |||
To use, type <code><nowiki>{{left|content}}</nowiki></code> to left-align content. | |||
To use, type | |||
== Examples == | == Examples == | ||
===Example 1=== | === Example 1 === | ||
{{col-begin}} | {{col-begin}} | ||
{{col-break}} | {{col-break}} | ||
Line 33: | Line 34: | ||
|} | |} | ||
{{col-end}} | {{col-end}} | ||
===Example 2=== | |||
=== Example 2 === | |||
{{col-begin}} | {{col-begin}} | ||
{{col-break}} | {{col-break}} | ||
Line 57: | Line 59: | ||
*{{tl|Image frame}} | *{{tl|Image frame}} | ||
<includeonly>{{ | |||
<includeonly>{{sandbox other|| | |||
[[Category:Positioning templates]] | <!-- Add categories below this line, and interwikis at Wikidata --> | ||
[[Category:Typing-aid templates]] | [[{{ns:Category}}:Positioning templates]] | ||
[[{{ns:Category}}:Typing-aid templates]] | |||
}}</includeonly> | }}</includeonly> |
Revision as of 14:27, 7 January 2020
This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
Description
It is to left align elements on a page. The only parameter is the content to be aligned.
Usage
With no input arguments, it saves typing the following text (in a table):
style="text-align:left"|
To use, type {{left}}
at the start of the table cell.
With an input argument, this template saves typing:
<div style="float:left;">...</div>
To use, type {{left|content}}
to left-align content.
Examples
Example 1
{| class="wikitable" style="width:30em; text-align:center" !colspan="4"| Header text |- | {{Left}} Left1 || Center1 || Center2 || {{Left}} Left2 |} |
|
Example 2
{| class="wikitable" style="width:30em; text-align:center" !colspan="4"| Header text |- | {{Left|Left1}} || Center1 || Center2 || {{Left|Left2}} |} |
|
See also
- {{align}}
- {{center}} and {{right}}, which use div tags instead of modifying cell properties.
- {{float left}}
- {{Image frame}}