This template was originally fr:Modèle:Boîte colorée; this version is from English Wikipedia (2024).

Usage and parameters

தொகு

The |title= and |content= parameters are required.

Using Wikicode Using Visual Editor
Click on "Edit source" and insert the following syntax

Basic parameters

{{Colored box
| title =
| icon =
| link =
| content =
}}

Full parameter set

{{Colored box
| background-content-color =
| background-title-color =
| style = 
| icon =
| title =
| title-color = 
| link =
| link-color =
| link-text =
| content =
}}

Template Data

தொகு
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Colored box

The colored box template is designed for portal and project pages. It is inspired by the Wikidata homepage.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Title of the box.

Example
Selection
Stringrequired
Contentcontent

Content of the box.

Example
{{clr}}{{Template:Colored box/Sample}}
Contentrequired
Linklink

Wikipedia page title for editing the content.

Example
Template:Colored box/Sample
Page namesuggested
Title background colorbackground-title-color

Hexadecimal color code of the title bar background.

Default
#339966
Example
#447FF5
Stringsuggested
Iconicon

Name of an icon file.

Example
Circle-icons-chat.svg
Fileoptional
Title colortitle-color

Hexadecimal color code of the title text.

Default
#FFFFFF
Example
#339966
Stringoptional
Stylestyle

Additional CSS style for the container.

Stringoptional
Link colorlink-color

Hexadecimal color code of the 'Edit' link.

Default
#999999
Example
#339966
Stringoptional
Content background colorbackground-content-color

Hexadecimal color code of the box content background.

Default
#F8F9FA
Example
#339966
Stringoptional
Link-textLink-text

Default title: edit, can be changed

Default
edit
Unknownoptional
background-colorbackground-color

no description

Unknownoptional
Title background color on hoverbackground-title-color-hover

When hovering with the mouse, changes the background color of the title.

Default
{{{background-title-color}}}
Unknownoptional
title-color-hovertitle-color-hover

no description

Unknownoptional
Flexflex

Integration into the dynamic column/row grid. The first number indicates the proportion at which the box can expand, the second indicates the proportion at which it can shrink, the third indicates the minimum width in px/em of the box

Default
0 1 auto
Stringoptional
Center titlecenter

If specified, it allows centering the title.

Unknownoptional
  • {{Colored box|icon=OOjs UI icon logo-wikipedia-invert.svg|background-title-color=#36c|title=Wikipedia|title-color=#fff|background-content-color=#eaf3ff|content={{Template:Colored box/Sample}}}}
Wikipedia
விக்கிமூலம் ஓர் இலவச இணைய நூலகம் ஆகும். விக்கிமீடியா அறக்கட்டளை நடத்தும் விக்கித் திட்டங்களுள் இதுவும் ஒன்று. இது கட்டற்ற உள்ளடக்கம் (பகிர்வுரிமம்) கொண்ட மூல நூல்களின் இணையத் தொகுப்பாகும்.


"https://ta.wikisource.org/w/index.php?title=வார்ப்புரு:Colored_box/doc&oldid=1635585" இலிருந்து மீள்விக்கப்பட்டது