Template:InfoboxStart

From Istaria Lexica

(Redirected from Template:InfoBoxStart)
Template documentation (for the template shown above, sometimes hidden or invisible)

Description[edit]

This Non-standalone template is used for templates to preformat the outer frame and ensures therefore the uniqueness over the whole wiki. It is based on a table and provides basic border coloring and formatting, headline coloring and formatting and so on.

Syntax[edit]

For more information about the mediawiki table functionality and syntax, please refer to http://www.mediawiki.org/wiki/Help:Tables. Be sure to close the table by using the Template:InfoboxEnd template. Formatting columns and rows is possible as usual.

{{InfoBoxStart|class=|style=}}
|-
! A table header
|-
| A table row
|-
{{InfoboxEnd}}

Parameters[edit]

{{InfoBoxStart
| class       = add one or more CSS classes to the <table> tag. Use blanks inbetween each class.
| style       = add one or more CSS styles to the <table> tag.
}}

Examples[edit]

Use a width[edit]

{{InfoBoxStart|style=width:70%}}
|-
! A table header on 70% width
|-
| A table row
|-
{{InfoboxEnd}}

Results in:

A table header on 70% width
A table row

Draw a fat orange border, use a 20px radius[edit]

{{InfoBoxStart|style=width:70%;border:5px solid orange;border-bottom-right-radius:20px;border-bottom-left-radius:20px}}
|-
! A table header on 70% width
|-
| A table row
|-
{{InfoboxEnd}}

Results in:

A table header on 70% width
A table row

Create a collapsible box using classes[edit]

{{InfoBoxStart|class=mw-collapsible mw-collapsed}}
|-
! A table header
|-
| A table row 
|-
| Another table row 
|-
| Yet another table row 
|-
{{InfoboxEnd}}

Results in:

A table header
A table row
Another table row
Yet another table row



Visit InfoboxStart/doc to edit this text. (How to: document correctly)