Template:Colored box: Difference between revisions

From NFS Modding Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Colored box/style.css" />
<!-- based on Wikipedia Colored Box Template (https://en.wikipedia.org/wiki/Template:Colored_box), without requiring ParserFunctions extensions or other stuff the web admin doesn't know enough about yet -->
 
<!-- also influenced by TemplateStyles Colored Box template (https://www.mediawiki.org/wiki/Template:Colored_box), but doesn't require TemplateStyles -->
<div class="mw-tpl-colorbox {{{class|}}}" style="
<div style="box-shadow: 0 0 0.2em #999999; border-radius: 0.2em; margin: 0.5em 0.5em 1em 0.5em; background: {{{background-content-color|#f8f9fa}}}; {{{style|}}};">
{{#if: {{{background-content-color|}}}
  <div style="background: {{{background-title-color|#eaecf0}}}; border-radius: 0.2em 0.2em 0 0; padding: 0.5em 1em 0.5em 1em;; align-items: center;">
| background-color: {{{background-content-color|#fff}}}; color: #333;
    <div style="color: {{{title-color|#000000}}}; font-weight: bold; line-height: 20px;">{{{title}}}</div>
}}
  </div>
{{{style|}}}
   <div style="padding: 1em; padding-left: 1em;">
"><templatestyles src="Colored box/style.css"/><!--
<!---->{{{content}}}
--><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style="
  </div>
{{#if: {{{background-title-color|}}}
| background-color: {{{background-title-color|#eaecf0}}};
}}
{{#if: {{{title-color|}}} | color: {{{title-color|#000000}}}; }}"
">{{#if: {{{icon|}}} | [[File:{{{icon}}}|20px|class=mw-tpl-colorbox-title-icon|link={{{title-link|}}}|alt=]]&#32; }}<!--
-->{{#if: {{{title-link|}}} | [[{{{title-link|}}}|<strong>{{{title}}}</strong>]] | <strong>{{{title}}}</strong> }}<!--
-->{{#if: {{{view-link|{{{link|}}}}}}
|<div class="mw-tpl-colorbox-title-corner">[[{{{view-link|{{{link|}}}}}}|<span style="{{#if: {{{link-color|{{{title-color|}}}}}} | color: {{{link-color|{{{title-color|}}}}}}; }}">{{{view-text|view}}}</span>]]</div>
|{{#if: {{{view-extlink|{{{link2|}}}}}}
   |<div class="mw-tpl-colorbox-title-corner">[{{{view-extlink|{{{link2|}}}}}} <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}}}
</div>
</div>
</div><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 11:11, 31 July 2024

{{{title}}}

{{{content}}}