Template:Infobox/Startbox: Difference between revisions

From Marvel Cinematic Universe Wiki
Content deleted Content added
Created page with "<includeonly><div class="infobox {{{class|}}}" {{#if:{{{width|}}}|style="width:{{{width}}}em"}}> <div class="entete {{#if:{{{icon|}}}|icon {{{icon|}}}}}" style="{{#if:{{{backg..."
 
No edit summary
 
Line 1: Line 1:
<includeonly><div class="infobox {{{class|}}}" {{#if:{{{width|}}}|style="width:{{{width}}}em"}}>
<includeonly><div class="infobox {{{class|}}}" {{#if:{{{width|}}}|style="width:{{{width}}}em"}}>
<div class="entete {{#if:{{{icon|}}}|icon {{{icon|}}}}}" style="{{#if:{{{background|}}} | background-color: {{{background}}}; }} {{#if:{{{border-color|}}} | border: 3px solid {{{border-color|}}}; box-sizing:border-box; }} {{#if:{{{color|}}} | color: {{{color}}}; }}">
<div class="header {{#if:{{{icon|}}}|icon {{{icon|}}}}}" style="{{#if:{{{background|}}} | background-color: {{{background}}}; }} {{#if:{{{border-color|}}} | border: 3px solid {{{border-color|}}}; box-sizing:border-box; }} {{#if:{{{color|}}} | color: {{{color}}}; }}">
<div>{{#if:{{{text|}}}|{{{text|}}}|{{PAGENAME}}}}
<div>{{#if:{{{text|}}}|{{{text|}}}|{{PAGENAME}}}}
</div>
</div>

Latest revision as of 16:47, 5 October 2017

Template documentation[view] [edit] [history] [purge]

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

Lorem ipsum

{{Infobox/Startbox}}

Title as parameter:

Foo

Lorem ipsum

{{Infobox/Startbox|text=Foo}}