Template:Colored box: Difference between revisions
en>Krinkle Add class="mw-tpl-colorbox-title-text" to the title text |
en>Krinkle Add support for 'title-link' option. This is intended to make the entire heading box clickable. We can't add classes to page links in wikitext, but through CSS we can use flexbox to make the element grow to the available space |
||
Line 9: | Line 9: | ||
| background-color: {{{background-title-color|#eaecf0}}}; | | background-color: {{{background-title-color|#eaecf0}}}; | ||
}} | }} | ||
">{{#if:{{{icon|}}}|[[File:{{{icon}}}|20px|class=colorbox-title-icon|link=|alt=]] }}<!-- | {{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}" | ||
--> | ">{{#if: {{{icon|}}} | [[File:{{{icon}}}|20px|class=colorbox-title-icon|link={{{title-link|}}}|alt=]]  }}<!-- | ||
-->{{#if:{{{link|}}} | -->{{#if: {{{title-link|}}} | [[{{{title-link|}}}|<strong>{{{title}}}</strong>]] | <strong>{{{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> | |<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:{{{link2|}}} | |{{#if:{{{link2|}}} |
Revision as of 17:34, 6 September 2023
{{{title}}}
{{{content}}}
Lua error in Module:Documentation at line 144: message: type error in message cfg.container (string expected, got nil).