Template:Infobox/Startbox/doc
From Marvel Cinematic Universe Wiki
| This is a documentation subpage for Template:Infobox/Startbox. It contains usage information, categories and other content that is not part of the original template page. |
This template allow the opening of an infobox and to write the title inside it. It shall be accompanied with the {{Infobox/Endbox}} template.
Syntax
Basic syntax:
{{Infobox/Starbox}}
Full syntax with all optional parameters:
{{Infobox/Starbox|class=|width=|icon=|background=|color=|border-color=|text=}}
Parameters
All parameters are optional.
| Parameter | Example | Format | Purpose | Default value |
|---|---|---|---|---|
text |
lorem ipsum | infobox title text | {{PAGENAME}}
| |
class |
bordered | allows the table pattern with horizontal borders | no border | |
| large | allow the text to be above a title icon | the text doesn't cover the icon | ||
width |
20 | in em | infobox width | 25em |
icon |
hockey | title icon managed through Common.css (list) | no default icon | |
background |
#003399 | hexadecimal or any other standart format | title background color | #b32425 |
If the background parameter is present, the following parameters can be used as well:
| Parameter | Example | Format | Purpose | Default value |
|---|---|---|---|---|
color |
#003399 | hexadecimal or any other standart format | title text's color | Default title color |
border-color |
#003399 | hexadecimal or any other standart format | infobox's title border color | no visible border |
Examples
Minimal code (default colors, the default infobox title is the page's title):
Infobox/Startbox/doc
Lorem ipsum
{{Infobox/Startbox}}
Title as parameter:
Foo
Lorem ipsum
{{Infobox/Startbox|text=Foo}}
