Difference between revisions of "Template:PortalSection/doc"

From blackwiki
Jump to navigation Jump to search
test>ITeachThem
test>ITeachThem
Line 15: Line 15:
  
 
==Usage==
 
==Usage==
This template may be used in user pages.
+
This template may be used in user pages and/or in talk pages.
  
 
==Syntax==
 
==Syntax==

Revision as of 06:39, 29 October 2013

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

Description

This template draws a colourful margin in all four sides with text/image within it. This template consists of {{box-shadow}} and {{border-radius}}. In other words, this is a modified version of these templates. Someone could do without this template, but this template makes it much easier.

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 examples changes the text align.
  • 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=|body=}}

Usage

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

Syntax

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

Example

Excluding text colour and background colour

  • Using {{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 {{PortalSection|width=|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

  • Using {{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.