• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Left/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Left
This is the template sandbox page for Template:Left (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 9,800 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.

Contents

  • 1 Description
  • 2 Usage
  • 3 Examples
    • 3.1 Example 1
    • 3.2 Example 2
  • 4 TemplateData
  • 5 See also

Description

edit

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

edit
Note: If you trying to align a table column (left, center, or right) use Template:Table alignment.

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, it saves typing:

<div style="float:left;">...</div>

To use, type {{left|content}} to align contents.

Examples

edit

Example 1

edit
{| class="wikitable" style="width:30em; text-align:center"
!colspan="4"| Header text
|-
| {{Left}} Content1A <br/> Content1B || Content2
|}
Header text
Content1A
Content1B
Content2

Example 2

edit
{| class="wikitable" style="width:30em; text-align:center"
!colspan="4"| Header text
|-
| {{Left|Content1A}} <br/> Content1B || Content2
|}
Header text
Content1A

Content1B
Content2

TemplateData

edit

Left aligns elements on a page

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

Content to be left aligned

Contentoptional

See also

edit
  • {{align}}
  • {{center}}, {{right}} and {{justify}}
  • {{Center block}}
  • {{Image frame}}
  • {{Table alignment}} - to align whole columns in tables.
The above documentation is transcluded from Template:Left/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Left/sandbox&oldid=668269512"
Last edited on 23 June 2015, at 10:23

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 23 June 2015, at 10:23 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop