Template:Infobox/Startbox/doc: Difference between revisions

From Marvel Cinematic Universe Wiki
Content deleted Content added
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- Please place categories and interwikis where indicated at the bottom of this page -->
<!-- Please place categories and interwikis where indicated at the bottom of this page -->


This template allow the opening of an infobox and to write the title inside it. It shall be accompanied by the {{tl|Infobox/Endbox}} template.
This template allow the opening of an infobox and to write the title inside it. It shall be accompanied with the {{tl|Infobox/Endbox}} template.


== Syntax ==
== Syntax ==
Line 16: Line 16:


{| class="wikitable centre"
{| class="wikitable centre"
|+ Paramèters
|+ Parameters
|-
|-
! scope=col | Parameter
! scope=col | Parameter
Line 30: Line 30:
| <var>large</var> || || allow the text to be above a title icon || the text doesn't cover the icon
| <var>large</var> || || allow the text to be above a title icon || the text doesn't cover the icon
|-
|-
| <code>width</code> || <var>20</var> || [[wikipedia:em|em]] || infobox width || 25em
| <code>width</code> || <var>20</var> || in [[wikipedia:em|em]] || infobox width || 25em
|-
|-
| <code>icon</code> || <var>hockey</var> || || title icon managed through Common.css ([[Wiki project:Infobox/Pictogram|list]]) || no default icon
| <code>icon</code> || <var>hockey</var> || || title icon managed through Common.css ([[Wiki project:Infobox/Pictogram|list]]) || no default icon
Line 41: Line 41:


{| class="wikitable centre"
{| class="wikitable centre"
|+ Paramèters
|+ Parameters
|-
|-
! scope=col | Parameter
! scope=col | Parameter

Latest revision as of 13:24, 9 October 2017

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.

Parameters
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:

Parameters
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}}