Template:Notification: Difference between revisions

imported>Schiffy
Created page with "{| class="Userbox" style="background:{{{bgcolor|yellow}}}; border: 2px solid {{{bordercolor|{{{bgcolor|darkorange}}}}}}; padding: .2em; margin-bottom: 2px; font-size: 95%; wid..."
 
imported>TheWallflower00
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
| {{#if:{{{quote|}}}|<font size=3><font color="{{{textcolor|{{{font|black}}}}}}">'''{{{quote}}}'''</font>
| {{#if:{{{quote|}}}|<font size=3><font color="{{{textcolor|{{{font|black}}}}}}">'''{{{quote}}}'''</font>
</font><br>}}{{#switch:{{{center|}}}|yes=<center><font color="{{{textcolor|{{{font|black}}}}}}">{{{message}}}</font></center>|#default=<font color="{{{textcolor|{{{font|black}}}}}}">{{{message}}} {{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}</font>}}
</font><br>}}{{#switch:{{{center|}}}|yes=<center><font color="{{{textcolor|{{{font|black}}}}}}">{{{message}}}</font></center>|#default=<font color="{{{textcolor|{{{font|black}}}}}}">{{{message}}} {{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}</font>}}
|}<noinclude>[[Category:Templates|Notification]]
|}
==Usage==
<noinclude><br clear="all">{{documentation}}</noinclude>
Directly for a specific page ''(not recommended)'':
<pre>
{{Notification
|bgcolor=
|bordercolor=''(optional)''
|image=''(without 'File:' tag)''
|imagewidth=''(in pixels, default 130)''
|textcolor=
|quote=
|center=''(for message only notifications, yes or no)''
|message=<nowiki>
|date=~~~~~
}}</nowiki></pre>
 
Or, for a new template:
 
<pre>
{{Notification
|bgcolor=
|bordercolor=''(optional)''
|image=''(without 'File:' tag)''
|imagewidth=''(in pixels, default 130)''
|textcolor=
|quote=
|center=''(for message only notifications, yes or no)''
|message=
<nowiki>{{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}
}}</nowiki></pre>
</noinclude>