Template:Test/B: Difference between revisions
mNo edit summary |
mNo edit summary Tag: Reverted |
||
| 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 | --><div {{#if:{{{id|}}}|data-id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}} {{#if:{{#ifexist:User:{{USERNAME}}}}|dismissible-notice}}" | ||
style="width: {{#if:{{{width|}}}{{{width}}}|{{{width}}}|50%}};<!-- | |||
-->{{#switch:{{{align|center}}}|left=margin: 0.3em 0.3em 0.3em 0;|right=margin: 0.3em 0 0.3em auto;|#default=margin: 0.3em auto;}};<!-- | -->{{#switch:{{{align|center}}}|left=margin: 0.3em 0.3em 0.3em 0;|right=margin: 0.3em 0 0.3em auto;|#default=margin: 0.3em auto;}};<!-- | ||
-->padding: 0.5em; text-align: center; font-size: {{{font-size|1em}}}; {{{style}}};<!-- | -->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; }}"> | -->{{#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 | -->{{#if:{{#ifexist:User:{{USERNAME}}}}|<!-- show button only if user is logged in --> | ||
{{#if:{{{dismiss|}}}|{{#ifeq:{{{dismiss}}}|no||<div class="dismiss-button" style="position: absolute; top: -1.05rem; right: -0.25rem; cursor: pointer; padding: 5px; font-size: 21px;">×</div>}}|<div class="dismiss-button" style="position: absolute; top: -1.05rem; right: -0.25rem; cursor: pointer; padding: 5px; font-size: 21px;">×</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><!-- | ||
Revision as of 21:34, 13 April 2025
Description
This page is for testing out new templates or for making alterations to live templates without damaging them.
Testing new updates to Template:Notice.