Template:Notice: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Created template.)
 
(Made a better {{Notice}} template.)
 
Line 1: Line 1:
{| style="background-color: white; border: 1px solid #aaa; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2); border-left: 10px solid #1E90FF; margin: 0 auto;" class="{{{class|notice_tpl}}}"
{{Mbox
| [[File:{{{image|Ambox notice.png}}}|link=|40x40px]]
| name      = Notice
|style="padding:0 1em"| {{{1|This is a notification template. To use it in any page, place <code><nowiki>{{notice|Text of the notice}}</nowiki></code> in the page.<br>It is possible to customize the icon image, like so: <code><nowiki>{{notice|Text of the notice|image=Another_icon.png}}</nowiki></code>.}}}
| demospace  = {{{demospace|}}}
|}<noinclude>
| style     = {{#if:{{{style|}}} |{{{style}}} }}
{{documentation}}
| subst      = <includeonly>{{subst:substcheck}}</includeonly>
| type      = notice
| image      = {{#if:{{{image|}}} |[[File:{{{image}}}|40px|Notice|alt={{{imagealt|}}}]]}}
| small      = {{{small|}}}
| smallimage = {{#if:{{{image|}}} |[[File:{{{image}}}|30px|Notice|alt={{{imagealt|}}}]]}}
| imageright = {{#if:{{{imageright|}}} |{{{imageright}}} |{{#if:{{{shortcut|{{{shortcut1|}}}}}} |{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} }}
| textstyle  = {{{textstyle|text-align: {{#if:{{{center|}}}|center|{{{align|left}}}}};}}}
| text      = {{#if:{{{header|{{{heading|{{{title|}}}}}}}}} |<div style="{{{headstyle|text-align: {{#if:{{{center|}}}|center|left}};}}}">'''{{{header|{{{heading|{{{title|}}}}}}}}}'''</div>}}<!--
            -->{{{text|{{{content|{{{reason|{{{1}}}}}}}}}}}}
}}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 16:30, 15 April 2024