Template:Portal box/doc
This is a documentation subpage for Template:Portal box. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
{{Portal box|header = header (required) |text = text (optional) |color = color (optional) |float = left/right/none (optional) |lang = (optional) |style = (optional) |header-style = (optional) |text-style = (optional) }}
Floatting display mode
The box is floating by default. When float=none
, the box will not float and will use available the page width:
When float
is not specified, the box will float on the right for LTR languages (like English) or on the left for RTL languages (like Arabic). If the language is not specified in the lang
parameter, it is determined internally from the current full page name using {{Langcode}}. You can specify a maximum width in style
for the box, such as style = max-width:50%;
.
Supported colors
Default
Yellow
Silver
Light grey
Orange
Pink
Gray
Grey
Cyan
Green
Blue
Don't use with active
text links in header
Purple
Violet
Don't use with active
text links in header
Red
Don't use with active
text links in header
Brown
Black