Template:Left/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} <!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{High-use}} {{Commons Import}} == De..." |
Caleb Cooper (talk | contribs) |
||
| Line 19: | Line 19: | ||
== Examples == |
== Examples == |
||
For examples see wikipedia page [[wikipedia:Template:Left]] |
|||
=== Example 1 === |
|||
{{col-begin}} |
|||
{{col-break}} |
|||
<pre style="overflow:auto"> |
|||
{| class="wikitable" style="width:30em; text-align:center" |
|||
!colspan="4"| Header text |
|||
|- |
|||
| {{Left}} Content1A <br/> Content1B || Content2 |
|||
|} |
|||
</pre> |
|||
{{col-break|gap=2em}} |
|||
{| class="wikitable" style="width:30em; text-align:center" |
|||
!colspan="4"| Header text |
|||
|- |
|||
| {{Left}} Content1A <br/> Content1B || Content2 |
|||
|} |
|||
{{col-end}} |
|||
=== Example 2 === |
|||
{{col-begin}} |
|||
{{col-break}} |
|||
<pre style="overflow:auto"> |
|||
{| class="wikitable" style="width:30em; text-align:center" |
|||
!colspan="4"| Header text |
|||
|- |
|||
| {{Left|Content1A}} <br/> Content1B || Content2 |
|||
|} |
|||
</pre> |
|||
{{col-break|gap=2em}} |
|||
{| class="wikitable" style="width:30em; text-align:center" |
|||
!colspan="4"| Header text |
|||
|- |
|||
| {{Left|Content1A}} <br/> Content1B || Content2 |
|||
|} |
|||
{{col-end}} |
|||
==Tracking category== |
==Tracking category== |
||
Latest revision as of 15:36, 20 October 2020
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
Description
It is to left align elements on a page. The only parameter is the content to be aligned. See also Template:Align for more options and flexibility.
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. It will leave Category:Pages using left with no arguments.
With an input argument, it saves typing:
<div style="float:left;">...</div>
To use, type {{left|content}} to align contents.
Examples
For examples see wikipedia page wikipedia:Template:Left
Tracking category
See also
- {{align}}
- {{center}}, {{right}} and {{left}}
- {{float center}}, {{float right}} and {{float left}}
- {{Image frame}}