Template:Colored box: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
m (Protected "Template:Colored box": Excessive vandalism ([Edit=Allow only autoconfirmed users] (expires 02:17, 1 July 2021 (UTC)) [Move=Allow only autoconfirmed users] (expires 02:17, 1 July 2021 (UTC))))
 
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Colored box/style.css"/><div class="mw-tpl-colorbox" style="{{#if:{{{background-content-color|}}}| background-color: {{{background-content-color|#fff}}}; }} {{{style|}}};"><!--
+
<onlyinclude><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=]]&#32;}}<strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}">{{{title}}}</strong><!--
 
--><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=]]&#32;}}<strong style="{{#if:{{{title-color|}}}| color: {{{title-color|#000000}}}; }}">{{{title}}}</strong><!--
 
-->{{#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>}}
 
-->{{#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>}}
Line 5: Line 5:
 
--><div class="mw-tpl-colorbox-content">
 
--><div class="mw-tpl-colorbox-content">
 
{{{content}}}{{clr}}</div>
 
{{{content}}}{{clr}}</div>
</div><noinclude>
+
</div>
  +
</onlyinclude>
{{documentation}}
 
  +
  +
[[Category:Templates]]
  +
[[Category:Formatting]]
  +
<noinclude>
  +
<templatedata>
  +
{
  +
"params": {
  +
"background-content-color": {},
  +
"style": {},
  +
"background-title-color": {},
  +
"icon": {},
  +
"title-color": {},
  +
"title": {},
  +
"link": {},
  +
"link-color": {},
  +
"view-text": {},
  +
"content": {}
  +
}
  +
}
  +
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 21:49, 11 November 2022

{{{title}}}
{{{content}}}

No description.

Template parameters

ParameterDescriptionTypeStatus
background-content-colorbackground-content-color

no description

Unknownoptional
stylestyle

no description

Unknownoptional
background-title-colorbackground-title-color

no description

Unknownoptional
iconicon

no description

Unknownoptional
title-colortitle-color

no description

Unknownoptional
titletitle

no description

Unknownoptional
linklink

no description

Unknownoptional
link-colorlink-color

no description

Unknownoptional
view-textview-text

no description

Unknownoptional
contentcontent

no description

Unknownoptional