Template:Left/doc: Difference between revisions

From escforumwiki
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}}
<!-- Categories at the bottom of this page, please; interwikis to Wikidata. -->
<!-- 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, this template saves typing the following text (in a table):
With no input arguments, it saves typing the following text (in a table):
: <code><nowiki>style="text-align:left"|</nowiki></code>


<code><nowiki>style="text-align:left"|</nowiki></code>
To use, type <code><nowiki>{{left}}</nowiki></code> at the start of the table cell.


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>&lt;div style="float:left;">...</div&gt;</nowiki></code>


With an input argument, this template saves typing
To use, type <code><nowiki>{{left|content}}</nowiki></code> to left-align content.
 
<code><nowiki>&lt;div style="float:left;">...</div&gt;</nowiki></code>
 
To use, type: <code><nowiki>{{left|content}}</nowiki></code> to left-align content


== 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>{{basepage subpage
 
| <!-- Categories below this line please; interwikis to Wikidata. -->
<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

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

Example 2

See also