Template:Note: Difference between revisions

Add colors back (removed from MW)
imported>FrozenPlum
(A (temporary) note template to add to pages that are draft/in-progress, or when certain things needs a note etc.)
 
imported>FrozenPlum
(Add colors back (removed from MW))
 
(5 intermediate revisions by the same user not shown)
Line 1:
<onlyinclude><includeonly>{{#if:{{{1|{{{text|}}}}}}|
{{{!}} class="{{#switch: {{{2|{{{type|info}}}}}}|info=messagebox|reminder|warn=warningbox|error=errorbox|}}" style="{{#if:{{{inline|}}}|| display:block; width:100%auto;}} padding:5px 25px 5px 5px; margin:0.5em 0; overflow:hidden; {{#switch:{{{2|{{{type|info}}}}}}|info=background-color: #f6f6f6; border: 1px solid #ccc; |reminder|warn=border: 1px solid #fde29b; background-color: #fdf1d1;|error=border:1px solid #fac5c5; background-color:#fae3e3;|}}">
{{!}}-
{{!}}style="width:25px;"{{!}}{{#switch: {{{2|{{{type|info}}}}}}|info=[[File:OOjs_UI_icon_information-progressive.svg|20px]]|reminder=[[File:OOjs_UI_icon_lightbulb-yellow.svg|20px]]|warn=[[File:OOjs_UI_icon_alert-warning.svg|20px]]|error=[[File:OOjs_UI_icon_notice-destructive.svg|20px]]|}}
{{!}}{{#if:{{{1|{{{text|Example}}}}}}|{{{1|{{{text|Example}}}}}}|}}
{{!}}}<!--
-->|[[File:OOjs_UI_icon_lightbulb-yellow.svg|15px]] '''Note:''' {{{1|{{{text|}}}}}}}}<!--/includeonly></onlyinclude>
{{Documentation}}
--><noinclude>
== Usage ==
<pre>
{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}
</pre>
{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}
 
[[Category:Templates]]
</noinclude>
Anonymous user