Difference between revisions of "Template:Colored box"
From EVE RP Wiki
w:en>Tomybrz (←Created page with '<div style="box-shadow:0 0 0.2em #999999; border-radius:0.2em; margin:0.5em 0.5em 1em; background:{{{background-content-color|#FFF}}}; {{{style|}}};"> <!-- CSS f...') |
m (34 revisions imported) |
||
| (33 intermediate revisions by 20 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style=" | + | <templatestyles src="Colored box/style.css"/><div class="mw-tpl-colorbox" style="{{#if:{{{background-content-color|}}}| background-color: {{{background-content-color|#fff}}}; }} {{{style|}}};"><!-- |
| − | <!-- | + | --><div class="mw-tpl-colorbox-title" style="{{#if:{{{background-title-color|}}}|background-color:{{{background-title-color|#eaecf0}}};}}">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }}<strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}">{{{title}}}</strong><!-- |
| − | <div style=" | + | -->{{#if:{{{link|}}}|<div class="mw-tpl-colorbox-title-corner">[[{{{link}}}|<span style="{{#if:{{{link-color|{{{title-color|}}}}}}| color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div>}} |
| − | + | </div><!-- | |
| − | + | --><div class="mw-tpl-colorbox-content"> | |
| − | + | {{{content}}}{{clr}}</div> | |
| − | {{{ | ||
| − | {{#if:{{{link|}}}|<div | ||
</div><noinclude> | </div><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:57, 30 April 2021
{{{title}}}
{{{content}}}
Script error: No such module "Template translation".
| 32px | This template uses TemplateStyles: |
This template was imported from w:en:Template:Colored box
This template is for community pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Background-content-color | background-content-color | no description | Unknown | optional |
| Style | style | no description | Unknown | optional |
| Background-title-color | background-title-color | no description | Unknown | optional |
| Icon | icon | no description | File | suggested |
| Title-color | title-color | no description | Unknown | optional |
| Title | title | no description | Unknown | required |
| Link | link | no description | Page | optional |
| Link-color | link-color | no description | Unknown | optional |
| Content | content | no description | Unknown | required |
Examples
{{Colored box|title=TITLE|content=CONTENT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}