Template:Colored box
{{{content}}}
| This template uses TemplateStyles: |
This template was imported from fr:Modèle:Boîte colorée
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
| title =
| icon =
| link =
| content =
| style =
| background-title-color =
| background-content-color =
| title-color =
| link-color =
| link-text =
}}
|
The colored box template is designed for portal and project pages. It is inspired by the Wikidata homepage.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Title of the box.
| String | required |
| Content | content | Content of the box.
| Content | required |
| Link | link | Wikipedia page title for editing the content.
| Page name | suggested |
| Title background color | background-title-color | Hexadecimal color code of the title bar background.
| String | suggested |
| Icon | icon | Filename of an icon file. Set width of 20px.
| File | optional |
| Title color | title-color | Hexadecimal color code of the title text.
| String | optional |
| Style | style | Additional CSS style for the container. | String | optional |
| Link color | link-color | Hexadecimal color code of the 'Edit' link.
| String | optional |
| Content background color | background-content-color | Hexadecimal color code of the box content background.
| String | optional |
| Link-text | Link-text | Default title: edit, can be changed
| Unknown | optional |
| background-color | background-color | no description | Unknown | optional |
| Title background color on hover | background-title-color-hover | When hovering with the mouse, changes the background color of the title.
| Unknown | optional |
| title-color-hover | title-color-hover | no description | Unknown | optional |
| Flex | flex | 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
| String | optional |
Example
{{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 is an online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read reference work in history, and has consistently been one of the 10 most popular websites. Created by Jimmy Wales and Larry Sanger on January 15, 2001, it is hosted by the Wikimedia Foundation, an American non-profit organization.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.