Template:Test: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{clear|}}} | <div style="clear: both;"></div> }}
{{#if: {{{clear|}}} | <div style="clear: both;"></div> }}
<div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}} dismissible-notice" 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: {{{border|1px solid black}}};}};">
<div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}} dismissible-notice" 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: {{{color|}}} | background-color: {{{color}}}; {{#if: {{{border|}}} | border: {{{border}}}; }} | border: 1px solid black; }}
">
   <div style="position: relative;">
   <div style="position: relative;">
     <div class="dismiss-button" style="position: absolute; top: -13px; right: -2px; cursor: pointer; padding: 5px;">×</div>
     <div class="dismiss-button" style="position: absolute; top: -12px; right: -3px; cursor: pointer; padding: 5px;">×</div>
     {{#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>
Line 11: Line 13:
This page is for testing out new templates or for making alterations to live templates without damaging them.
This page is for testing out new templates or for making alterations to live templates without damaging them.


{{test|style=background-color:#bdcca1;|b=This is a test|1=this is also a test}}
{{test|b=This is a test|1=this is also a test|color=white|border=5px dashed red}}




[[Category:Templates]]
[[Category:Templates]]