Template:PortalSection

From AlliedModders Wiki
Jump to: navigation, search
{{{body}}}

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

  • 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:
{{PortalSection
| width = 
| text-color = 
| bgcolor = 
| text-align = 
| head = 
| body = 
}}

Usage

This template can actually be used for Portals, but can also be used in user pages and/or in talk pages.

Syntax

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

Examples

Excluding text colour and background colour
  • Using {{PortalSection|width=20em|body=Lorem ipsum...}} will show:
Lorem ipsum dolor sit amet, consectetur adipiscing 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 {{PortalSection|text-color=white|bgcolor=black|body=Lorem ipsum...}} will show:
Lorem ipsum dolor sit amet, consectetur adipiscing 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 {{PortalSection|width=60em|text-color=black|bgcolor=#FFFFDD|body=Lorem ipsum...}} will show
Lorem ipsum dolor sit amet, consectetur adipiscing 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 {{PortalSection|head=Example|body=Lorem ipsum...}} will show:
Example

Lorem ipsum dolor sit amet, consectetur adipiscing 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.Template:Main other