Difference between revisions of "Template:PortalSection/doc"

From blackwiki
Jump to navigation Jump to search
test>ITeachThem
test>ITeachThem
Line 15: Line 15:
  
 
===Excluding the width===
 
===Excluding the width===
* Using <code><nowiki>{{PortalSection|width=|text-color=blue|bgcolor=black|body=PortalSection}}</nowiki></code> will show:<br>
+
* Using <code><nowiki>{{PortalSection|width=|text-color=white|bgcolor=black|body=PortalSection}}</nowiki></code> will show:<br>
{{PortalSection|width=|text-color=red|bgcolor=grey|body=PortalSection}}
+
{{PortalSection|width=|text-color=white|bgcolor=black|body=PortalSection}}
  
 
===Complete template===
 
===Complete template===
 
* Using <code><nowiki>{{PortalSection|width=20em|text-color=blue|bgcolor=black|body=PortalSection}}</nowiki></code> will show:<br>
 
* Using <code><nowiki>{{PortalSection|width=20em|text-color=blue|bgcolor=black|body=PortalSection}}</nowiki></code> will show:<br>
{{PortalSection|width=20em|text-color=red|bgcolor=grey|body=PortalSection}}
+
{{PortalSection|width=20em|text-color=white|bgcolor=black|body=PortalSection}}
  
  
 
[[Category:Cross-browser compatibility templates]]
 
[[Category:Cross-browser compatibility templates]]

Revision as of 16:51, 13 October 2013

Description

This template draws a colourful margin in all four sides with text/image within it.

Usage

This template may be used in user pages.

Syntax

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

Example

Excluding text colour and background colour

  • Using {{PortalSection|width=20em|body=PortalSection}} will show:

PortalSection

Excluding the width

  • Using {{PortalSection|width=|text-color=white|bgcolor=black|body=PortalSection}} will show:
PortalSection

Complete template

  • Using {{PortalSection|width=20em|text-color=blue|bgcolor=black|body=PortalSection}} will show:
PortalSection