Template:Notification: Difference between revisions

From Katawa Shoujo Wiki

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>

Latest revision as of 19:00, 24 January 2017

{{{message}}}


Template documentation (for the above template, sometimes hidden or invisible)

Usage[edit source]

{{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=~~~~~
}}

will display:

This is a quote


This is my message (19:06, January 24, 2017 (UTC))


If center=yes

This is a quote
This is my message

Visit Template:Notification/doc to edit this text! (How does this work?)