Difference between revisions of "Template:PortalSection/doc"
Jump to navigation
Jump to search
test>ITeachThem (→Syntax) |
test>ITeachThem |
||
| Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
| − | * Use <code><nowiki>{{PortalSection|width=|body=}}</nowiki></code> | + | * Use <code><nowiki>{{PortalSection|width=|text-color=|bgcolor=|body=}}</nowiki></code> |
| − | * Use <code><nowiki>{{portalsection|width=|body=}}</nowiki></code> instead with all of them in lowercase letters. | + | * Use <code><nowiki>{{portalsection|width=|text-color=|bgcolor=|body=}}</nowiki></code> instead with all of them in lowercase letters. |
==Example== | ==Example== | ||
| + | ===Complete template=== | ||
| + | * Using <code><nowiki>{{PortalSection|width=|text-color=red|bgcolor=grey|body=Portal Section}}</nowiki></code><br> | ||
| + | {{PortalSection|width=|text-color=red|bgcolor=grey|body=Portal Section}} | ||
| + | |||
| + | ===Without inserting an extra text colour and background colour=== | ||
* Using <code><nowiki>{{PortalSection|width=20em|body=PortalSection}}</nowiki></code> will show:<br>{{PortalSection|width=20em|body=PortalSection}} | * Using <code><nowiki>{{PortalSection|width=20em|body=PortalSection}}</nowiki></code> will show:<br>{{PortalSection|width=20em|body=PortalSection}} | ||
[[Category:Cross-browser compatibility templates]] | [[Category:Cross-browser compatibility templates]] | ||
Revision as of 16:42, 13 October 2013
| 40px | This is a documentation subpage for Template:PortalSection. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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
Complete template
- Using
{{PortalSection|width=|text-color=red|bgcolor=grey|body=Portal Section}}
Portal Section
Without inserting an extra text colour and background colour
- Using
{{PortalSection|width=20em|body=PortalSection}}will show:
PortalSection