Template:MessageBox: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(68 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpaddin="0" style="padding: 5px; margin: 0px auto 5px auto; width: 75%; border: 1px solid <noinclude>#FFADAD</noinclude><includeonly>{{{bordercolorhex}}}</includeonly>; background: <noinclude>#F2F2F2</noinclude><includeonly>{{#if: "{{{bgcolorhex}}}" | "{{{bgcolorhex}}}" | "#F9F9F9" }}</includeonly>;"
<noinclude>{{Warning|This template is included in a lot of pages/articles. Test your changes when you edit this template!|true}}</noinclude>
|style="width: 32px;" |<noinclude>[[File:Dialog-warning.png|link=]]</noinclude><includeonly>[[{{{image}}}|link=]]</includeonly>
<includeonly>{| cellspacing="0" cellpadding="0" style="padding: 5px; padding-left: 12px; padding-right: 12px; border-radius: 10px; width: 60%; margin: 6px auto 2px auto; border: 1px solid #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }}; background: transparent; border-left: 25px solid #{{#if: {{{bordercolorhex|}}} | {{{bordercolorhex}}} | CCCCCC }};"
|style="padding-left: 10px;" |<noinclude>'''Warning:''' Test TEXT 1 2 3</noinclude><includeonly>'''{{{title}}}''' {{{text}}}</includeonly>
|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}}}}}
|-
|-
|}
|rowspan="1" style="padding-left: 10px;"|{{#if: {{{subtext|}}}|<hr style="background: #{{{bordercolorhex}}};"/>{{{subtext}}} }}
|}</includeonly><noinclude>


'''Article message box'''


<noinclude>Article message box</noinclude>
<syntaxhighlight lang="lua">
 
{{MessageBox|
<noinclude><syntaxhighlight lang="lua">
   bordercolorhex = FFADAD |
{{Ambox|
  bordertype = |
   bordercolorhex = #FFADAD
   bgcolorhex = F9F9F9 |
   bgcolorhex = #F9F9F9
   image = File:Dialog-warning.png |
   image = File:Dialog-warning.png
  imageSize = 50px| -- make it bigger
   title = Warning:
   title = Warninga: |
   text = Test TEXT 1 2 3
   message = Test TEXT 1 2 3 |
  subtext = More Text |
 
}}
}}
</syntaxhighlight></noinclude>
</syntaxhighlight></noinclude>

Latest revision as of 13:55, 20 September 2021

Dialog-warning.png Warning: This template is included in a lot of pages/articles. Test your changes when you edit this template!


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 |
   
}}