Template:InfoBox

From Gentoo Wiki
Jump to: navigation, search
[edit Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this page is widely used in our wiki, it is protected. Only staff members can change it. Use the discussion page to propose enhancements, fixes or voice your opinion.

Use this template to show a infobox in the top right corner.

Parameters

header (optional)
Adds a heading above the infobox. See also {{InfoBox header}}.
bodyclass (optional)
Adds an HTML class attribute to the entire template's HTML table, to allow for styling, etc.
border-c (optional)
border color (default=id-c)
border-s (optional)
border width in pixels (default=1)
float (optional)
left|right|none (default=left)
id (optional)
id image and/or text. Images should normally be scaled to x45px or less.
id-a (optional)
id horizontal alignment left/center/right/justify (default=center)
id-c (optional)
id background color (default=#d0d0d0)
id-fc (optional)
id font color (default=black)
id-h (optional)
id box height in pixels (default=45)
id-lh (optional)
id line height (default=1.25em)
id-op (optional)
id other CSS parameters
id-p (optional)
id cell padding (default=0 1px 0 0)
id-s (optional)
id text size in points (default=14)
id-w (optional)
id box width in pixels (default=45)
info-class (optional)
Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, etc.
info
info text and/or image
info-a (optional)
info horizontal alignment left/center/right/justify (default=left)
info-c (optional)
info background color (default=#e0e0e0)
info-fc (optional)
info font color (default=black)
info-lh (optional)
info line height (default=1.25em)
info-op (optional)
info other CSS parameters
info-p (optional)
info padding (default=0 4px 0 4px)
info-s (optional)
info text size in points (default=8)
category (optional)
first category
category2 (optional)
second category
category3 (optional)
third category
catmaskns (optional)
Mask the category for page in the given namespace (default: Template)

Usage

See the template's testcases:


Parameter: info
Wiki code
{{InfoBox stack
|{{InfoBox|info=Some text}}
}}

Main version Sandbox version

Some text
{{InfoBox stack}}
Parameter unnamed not defined. For correct usage see template's documention.


Parameter: info, id
Wiki code
{{InfoBox stack
|{{InfoBox|info=Some text|id=Some id}}
}}

Main version Sandbox version

Some id Some text
{{InfoBox stack}}
Parameter unnamed not defined. For correct usage see template's documention.

See also

External resources
Article status
Talk status
Userboxes
User spoken languages
Support templates
Note
The above documentation is transcluded from Template:InfoBox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Personal tools
Namespaces

Variants
Actions
Gentoo Websites logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Navigation
Toolbox
Categories