• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Right

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,200 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 Tracking category
  • 5 See also

Description

It is to right align in-line 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:right"|

To use, type {{right}} at the start of the table cell. It will leave Category:Pages using right with no input arguments.

With an input argument, it saves typing:

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

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

Examples

Example 1

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

Example 2

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

Content1B
Content2

Tracking category

Pages, which use {{right}} without an argument, are added to the following:

  • Category:Pages using right with no input arguments (1)

See also

  • {{align}}
  • {{center}}, {{left}} and {{justify}}
  • {{Center block}}
  • {{Image frame}}
The above documentation is transcluded from Template:Right/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Right&oldid=29139"
Categories:
  • Pages using right with no input arguments
  • Positioning templates
  • Typing-aid templates
Last edited on 1 September 2021, at 03:06

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 1 September 2021, at 03:06.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop