Template:MessageBox: Difference between revisions
Jump to navigation
Jump to search
(Added warning) |
m (Now accepts *imageSize*) |
||
Line 1: | Line 1: | ||
<noinclude>{{Warning|This template is included in a lot of pages/articles. Test your changes when you edit this template!|true}}</noinclude> | <noinclude>{{Warning|This template is included in a lot of pages/articles. Test your changes when you edit this template!|true}}</noinclude> | ||
<includeonly>{| cellspacing="0" cellpaddin="0" style="padding: 5px; width: 80%; margin: 2px auto 2px auto; border: 1px {{#if: {{{bordertype|}}} | {{{bordertype}}} | solid }} #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }}; background: #{{#if: {{{bgcolorhex|}}} | {{{bgcolorhex}}} | F9F9F9 }}; border-left: 10px solid #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }};" | <includeonly>{| cellspacing="0" cellpaddin="0" style="padding: 5px; width: 80%; margin: 2px auto 2px auto; border: 1px {{#if: {{{bordertype|}}} | {{{bordertype}}} | solid }} #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }}; background: #{{#if: {{{bgcolorhex|}}} | {{{bgcolorhex}}} | F9F9F9 }}; border-left: 10px solid #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }};" | ||
|style="width: 32px; vertical-align:top; {{#if: {{{image|}}} | | display: none; }}" rowspan="2" | [[{{{image}}}|link=]] | |style="width: 32px; vertical-align:top; {{#if: {{{image|}}} | | display: none; }}" rowspan="2" | [[{{{image}}}|link=|{{#if: {{{imageSize|}}}|{{{imageSize}}}}}]] | ||
|style="{{#if: {{{image|}}} | padding-left: 10px; }}" |{{#if: {{{title|}}}|'''{{{title}}}'''}} {{#if: {{{message|}}}|{{{message}}}}} | |style="{{#if: {{{image|}}} | padding-left: 10px; }}" |{{#if: {{{title|}}}|'''{{{title}}}'''}} {{#if: {{{message|}}}|{{{message}}}}} | ||
|- | |- | ||
|rowspan="1" style="padding-left: 10px;"|{{#if: {{{subtext|}}}|<hr style="background: #{{{bordercolorhex}}};"/>{{{subtext}}} }} | |rowspan="1" style="padding-left: 10px;"|{{#if: {{{subtext|}}}|<hr style="background: #{{{bordercolorhex}}};"/>{{{subtext}}} }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
'''Article message box''' | '''Article message box''' | ||
Line 16: | Line 15: | ||
bgcolorhex = F9F9F9 | | bgcolorhex = F9F9F9 | | ||
image = File:Dialog-warning.png | | image = File:Dialog-warning.png | | ||
title = | imageSize = 50px| -- make it bigger | ||
title = Warninga: | | |||
message = Test TEXT 1 2 3 | | message = Test TEXT 1 2 3 | | ||
subtext = More Text | | subtext = More Text | |
Revision as of 00:44, 20 April 2021
Article message box
{{MessageBox| bordercolorhex = FFADAD | bordertype = | bgcolorhex = F9F9F9 | image = File:Dialog-warning.png | imageSize = 50px| -- make it bigger title = Warninga: | message = Test TEXT 1 2 3 | subtext = More Text | }}