User:CosmicHeart/PortalSection/doc

See also {{box-shadow}} and {{border-radius}}

Description

edit

This template creates a box, with a colourful margin in all four sides with text/image within it. This template takes help from {{box-shadow}} and {{border-radius}}. Use this template to make your user page more attractive.

Notes

edit
  • This template will always show the table in the center.
  • You could only change the colour of the text and the background, not the border.
  • The text must be inserted within/after the title body, e.g. body=[Put your text here].
  • The text align is normally left unless you change it. None of the example changes the text align.
  • The heading will be ignored if not mentioned or if empty.
  • The texts in the heading will always be at the center.
  • You must not change any of the coding of this template, rather leave a message on its talk page if you disagree with anything.
  • Remember that this template uses {{box-shadow}} and {{border-radius}}.
  • The full code is shown below:
{{User:ITeachThem/PortalSection
 |width=
 |text-color=
 |bgcolor=
 |text-align=
 |head=
 |body=
}}

Usage

edit

This template may be used in user pages and/or in talk pages.

Syntax

edit
  • Use {{User:ITeachThem/PortalSection|width=|text-color=|bgcolor=|text-align=|head=|body=}}
  • Use {{User:ITeachThem/portalsection|width=|text-color=|bgcolor=|text-align=|head=|body=}} instead with all of them in lowercase letters.

Example

edit
Excluding text colour and background colour
  • Using {{User:ITeachThem/PortalSection|width=20em|body=Lorem ipsum...}} will show:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Excluding the width
  • Using {{User:ITeachThem/PortalSection|text-color=white|bgcolor=black|body=Lorem ipsum...}} will show:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Complete template without heading
  • Using {{User:ITeachThem/PortalSection|width=60em|text-color=black|bgcolor=#FFFFDD|body=Lorem ipsum...}} will show
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Simple template with the heading
  • Using {{User:ITeachThem/PortalSection|head=Example|body=Lorem ipsum...}} will show:
Example

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

See also

edit