साँचा: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.
| पैरामीटर | विवरण | प्रकार | स्थिति | |
|---|---|---|---|---|
| Title | title | Title of the box.
| स्ट्रिंग | आवश्यक |
| Content | content | Content of the box.
| सामग्री | आवश्यक |
| Link | link | Wikipedia page title for editing the content.
| पृष्ठ का नाम | सुझावित |
| Title background color | background-title-color | Hexadecimal color code of the title bar background.
| स्ट्रिंग | सुझावित |
| Icon | icon | Filename of an icon file. Set width of 20px.
| फ़ाइल | वैकल्पिक |
| Title color | title-color | Hexadecimal color code of the title text.
| स्ट्रिंग | वैकल्पिक |
| Style | style | Additional CSS style for the container. | स्ट्रिंग | वैकल्पिक |
| Link color | link-color | Hexadecimal color code of the 'Edit' link.
| स्ट्रिंग | वैकल्पिक |
| Content background color | background-content-color | Hexadecimal color code of the box content background.
| स्ट्रिंग | वैकल्पिक |
| Link-text | Link-text | Default title: edit, can be changed
| अज्ञात | वैकल्पिक |
| background-color | background-color | कोई विवरण नहीं | अज्ञात | वैकल्पिक |
| Title background color on hover | background-title-color-hover | When hovering with the mouse, changes the background color of the title.
| अज्ञात | वैकल्पिक |
| title-color-hover | title-color-hover | कोई विवरण नहीं | अज्ञात | वैकल्पिक |
| 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
| स्ट्रिंग | वैकल्पिक |
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}}}}
| ऊपर दिए गए निर्देश साँचा:Colored box/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |