Template:META Message: Difference between revisions

imported>Samueldr
Created page with "<noinclude> A templated message. Use of <code><table></code> is to allow vertical centering. === Preview === <pre><nowiki> {{Template:META Message}} </nowiki></pre> {{T..."
 
m Update with full template
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>{{Template}}
 
== About ==
 
A templated message.
A templated message.


Use of <code>&lt;table></code> is to allow vertical centering.
Use of <code>&lt;table></code> is to allow vertical centering.


=== Preview ===
== Usage ==


<pre><nowiki>
<pre><nowiki>
Line 10: Line 13:
</nowiki></pre>
</nowiki></pre>


{{Template:META Message}}
<pre><nowiki>
{{Template:META Message|heading=heading}}
</nowiki></pre>


<pre><nowiki>
<pre><nowiki>
Line 18: Line 23:
}}
}}
</nowiki></pre>
</nowiki></pre>
== Example ==
{{Template:META Message}}
{{Template:META Message|heading=heading}}


{{Template:META Message
{{Template:META Message
Line 24: Line 35:
}}
}}


</noinclude>
</noinclude><includeonly><div class="nixos-template-message"><table class="message-box" role="presentation"
<includeonly>
<div
  class="nixos-template-message"
   style="
   style="
     border: 1px solid {{{border|#A7D7F9}}};
     border: 1px solid {{{border|#A7D7F9}}};
     border-left-width: 5px;
     border-left-width: 5px;
     background: {{{background|#F6F6F6}}};
     background: {{{background|#F6F6F6}}};
    margin-bottom: 1ex;
   "
   "
>
>
  <table class="message-box" role="presentation">
     <tr>
     <tr>
       <td style="padding-left: 0.5em; padding-right: 0.5em;">{{{signal}}}</td>
       <td style="padding-left: 0.5em; padding-right: 0.5em; min-width: 64px;">{{{signal}}}</td>
       <td style="padding-right: 1em; width:100%;">
       <td style="padding-right: 1em; width:100%;">
         <div>'''{{{heading}}}'''</div>
         {{#if: {{{heading|}}}|<div>'''{{{heading}}}'''</div>|}}
         <div>{{{message}}}</div>
         <div>{{{message}}}</div>
       </td>
       </td>
     </tr>
     </tr>
   </table>
   </table></div></includeonly>
</div>
</includeonly>