Template:Note: Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
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: Line 1:
{{#if:{{{1|{{{text|}}}}}}|
<onlyinclude><includeonly>{{#if:{{{1|{{{text|}}}}}}|
{{{!}} class="{{#switch: {{{2|{{{type|info}}}}}}|info=messagebox|reminder|warn=warningbox|error=errorbox|}}" style="{{#if:{{{inline|}}}||width:100%;}} padding:5px 25px 5px 5px; margin:0.5em 0; overflow:hidden;">
{{{!}} class="{{#switch: {{{2|{{{type|info}}}}}}|info=messagebox|reminder|warn=warningbox|error=errorbox|}}" style="{{#if:{{{inline|}}}|| display:block; width: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]]|}}
{{!}}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}}}}}}|}}
{{!}}{{#if:{{{1|{{{text|Example}}}}}}|{{{1|{{{text|Example}}}}}}|}}
{{!}}}<!--
{{!}}}<!--
-->|[[File:OOjs_UI_icon_lightbulb-yellow.svg|15px]] '''Note:''' {{{1|{{{text|}}}}}}}}<!--
-->|[[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>

Latest revision as of 17:35, 25 January 2023

[view | edit | purge]Template Documentation

Creates a variety of notes or notices depending on parameters set.

Usage

{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}

Note: Some stuff

Some info
A reminder
Warn me
This causes an error
[view | edit | purge]The above documentation is transcluded from Template:Note/doc.