Template:Notice: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div  
<div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}}" style="width: {{#if:{{{width|}}}{{{width}}}|{{{width}}}|50%}}; margin: {{#switch:{{{align|center}}}|left=0 auto 0 0|right=0 0 0 auto|#default=auto}}; padding: 0.5em; text-align: center; font-size: {{{font-size|1em}}}; {{{style}}}; {{#if:{{{border|}}}|border: 1px solid black;}};">
  {{#if:{{{id|}}}|id="{{{id}}}"}}  
  class="notice hide-for-print {{{class|curved}}}"  
  style="
    width: {{#if:{{{width|}}}{{{width}}}|{{{width}}}|50%}};
    margin: {{#switch:{{{align|center}}}|left=0 auto 0 0|right=0 0 0 auto|#default=auto}};
    padding: 0.5em;
    text-align: center;
    font-size: {{{font-size|1em}}};
    {{#if:{{{border|}}}|border: {{{border}}};}}
    {{{style}}}
  "
>
   {{#if:{{{b|}}}|<div class="notice-main-text" style="font-weight:bold;">{{{b}}}</div>}}
   {{#if:{{{b|}}}|<div class="notice-main-text" style="font-weight:bold;">{{{b}}}</div>}}
   <div class="{{#if:{{{b|}}}|hide-for-multinotice|notice-main-text}}" style="white-space: normal;">{{{1}}}</div>
   <div class="{{#if:{{{b|}}}|hide-for-multinotice|notice-main-text}}" style="white-space: normal;">{{{1}}}</div>