Template:Notification/doc: Difference between revisions

imported>TheWallflower00
Created page with "==Usage== Directly for a specific page ''(not recommended)'': <pre> {{Notification |bgcolor= |bordercolor=''(optional)'' |image=''(without 'File:' tag)'' |imagewidth=''(in pix..."
 
imported>TheWallflower00
No edit summary
 
Line 1: Line 1:
==Usage==
==Usage==
Directly for a specific page ''(not recommended)'':
<pre>
<pre>
{{Notification
{{Notification
|bgcolor=
|bgcolor=yellow
|bordercolor=''(optional)''
|bordercolor=green
|image=''(without 'File:' tag)''
|image=Example.jpg
|imagewidth=''(in pixels, default 130)''
|imagewidth=120
|textcolor=
|textcolor=black
|quote=
|quote=This is a quote
|center=''(for message only notifications, yes or no)''
|center=no
|message=<nowiki>
|message=This is my message
|date=~~~~~
|date=~~~~~
}}</nowiki></pre>
}}
</pre>


Or, for a new template:  
will display:
{{Notification
|bgcolor=yellow
|bordercolor=green
|image=Example.jpg
|imagewidth=120
|textcolor=black
|quote=This is a quote
|center=no
|message=This is my message
|date=19:06, January 24, 2017 (UTC)
}}


<pre>
If '''center=yes'''
{{Notification
{{Notification
|bgcolor=
|bgcolor=yellow
|bordercolor=''(optional)''
|bordercolor=green
|image=''(without 'File:' tag)''
|image=Example.jpg
|imagewidth=''(in pixels, default 130)''
|imagewidth=120
|textcolor=
|textcolor=black
|quote=
|quote=This is a quote
|center=''(for message only notifications, yes or no)''
|center=yes
|message=
|message=This is my message
<nowiki>{{#if:{{{date|}}}|<small>''({{{date}}})''</small>}}
|date=19:06, January 24, 2017 (UTC)
}}</nowiki></pre>
}}
</noinclude>