Template:Note: Difference between revisions
Appearance
| [unchecked revision] | [pending revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb cooper (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (27 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
< |
<includeonly><templatestyles src="Note/styles.css" /> |
||
{{#switch: {{{2}}} |
{{#switch: {{{2}}} |
||
| reminder-green = |
| reminder-green = |
||
<div style="clear: both;"></div><div class="note {{{4|back-palegreen}}}"> |
<div style="clear: both;"></div><div class="note {{{4|back-palegreen}}}"> |
||
[[File:OOjs UI icon lightbulb-yellow.svg]] |
<div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| reminder-yellow = |
| reminder-yellow = |
||
<div style="clear: both;"></div><div class="note {{{4|back-yellow}}}"> |
<div style="clear: both;"></div><div class="note {{{4|back-yellow}}}"> |
||
[[File:OOjs UI icon lightbulb-yellow.svg]] |
<div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| caution = |
| caution = |
||
<div style="clear: both;"></div><div class="note {{{4|back-orange}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-orange}}}> |
||
[[File:OOjs UI icon alert-warning.svg]] |
<div style="float: left">[[File:OOjs UI icon alert-warning.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| caution-red = |
| caution-red = |
||
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
||
[[File:OOjs UI icon alert-destructive.svg]] |
<div style="float: left">[[File:OOjs UI icon alert-destructive.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| caution-orange = |
| caution-orange = |
||
<div style="clear: both;"></div><div class="note {{{4|back-orange}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-orange}}}> |
||
[[File:OOjs UI icon alert-warning.svg]] |
<div style="float: left">[[File:OOjs UI icon alert-warning.svg|30px]]</div> <div> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| tip = |
| tip = |
||
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
||
[[File:Customer Service Icon.png| |
<div style="float: left">[[File:Customer Service Icon.png||30px]]</div> <div> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Tip: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| moved = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
|||
<div style="float: left">[[File:301redirect.png|100px]]</div> <div> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Moved: }}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| warning = |
| warning = |
||
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
||
[[File:OOjs_UI_icon_notice-destructive.svg]] |
<div style="float: left">[[File:OOjs_UI_icon_notice-destructive.svg|30px]]</div> <div> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Warning: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| dragons = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
|||
<div style="float: left">[[File:Dragon.webp|100px]]</div><div style="height: 100px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Here be Dragons!}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| info = |
| info = |
||
<div style="clear: both;"></div><div class="note {{{4|back-brown}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-brown}}}> |
||
[[File:OOjs_UI_icon_reference_20_ac6600.svg]] {{{1}}}</div> |
<div style="float: left">[[File:OOjs_UI_icon_reference_20_ac6600.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| info-blue = |
| info-blue = |
||
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
||
[[File:OOjs UI icon reference-progressive.svg]] {{{1}}}</div> |
<div style="float: left">[[File:OOjs UI icon reference-progressive.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> {{{1}}}</div></div></div> |
||
| legend = |
| legend = |
||
<div style="clear: both;"></div><div class="note {{{4|back-lightgrey}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-lightgrey}}}> |
||
[[File:OOjs UI icon info.svg.png|35px]] |
<div style="float: left">[[File:OOjs UI icon info.svg.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| legend-clear = |
| legend-clear = |
||
<div style="clear: both;"></div><div class="note {{{4|back-clear-black}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-clear-black}}}> |
||
[[File:OOjs UI icon info.svg.png|35px]] |
<div style="float: left">[[File:OOjs UI icon info.svg.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| legend-blue = |
| legend-blue = |
||
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}> |
||
[[File:OOjs UI icon info-progressive.svg.png|35px]] |
<div style="float: left">[[File:OOjs UI icon info-progressive.svg.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
| elephant = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-pink}}}> |
|||
<div style="float: left">[[File:pink-elephant.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> {{{1}}}</div></div></div> |
|||
| clown = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-cyan-sky-boarder}}}> |
|||
<div style="float: left">[[File:clown-icon.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| backpack = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-yellow-teal-boarder}}}> |
|||
<div style="float: left">[[File:backpack-icon.jpg|60px]]</div><div style="height: 60px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3| }}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| tension = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-red}}}> |
|||
<div style="float: left">[[File:tension-icon.png|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| crystalball = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-lavender-purple-boarder}}}> |
|||
<div style="float: left">[[File:crystal-ball-icon.png|35px]]</div><div> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| hourglass = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-green-darkgreen-boarder}}}> |
|||
<div style="float: left">[[File:Hourglass-icon.svg|35px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| breadcrumbs = |
|||
<div style="clear: both;"></div><div class="note {{{4|back-clear-black}}}> |
|||
<div style="float: left">[[File:breadcrumb-trail.png|100px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong> </div><div>{{{1}}}</div></div></div> |
|||
| #default = |
| #default = |
||
<div style="clear: both;"></div><div class="note {{{4|back-palegreen}}}"> |
<div style="clear: both;"></div><div class="note {{{4|back-palegreen}}}"> |
||
[[File:OOjs UI icon lightbulb-yellow.svg]] |
<div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="height: 35px;"> <div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong> </div><div>{{{1}}}</div></div></div> |
||
}}</includeonly><noinclude> |
|||
}}</onlyinclude> |
|||
<noinclude> |
{{documentation}}</noinclude> |
||
== Usage == |
|||
<pre>{{Note|This is with a blue green background the default}}</pre> |
|||
{{Note|This is with a blue green background the default}} |
|||
<pre>{{Note|This is with a better yellower background|reminder-yellow}}</pre> |
|||
{{Note|This is with a better yellower background|reminder-yellow}} |
|||
<pre>{{Note|This is a brown info box the same as used on mediawiki|info}}</pre> |
|||
{{Note|This is a brown info box the same as used on mediawiki|info}} |
|||
<pre>{{Note|This is a clean less intrusive info box|info-blue}}</pre> |
|||
{{Note|This is a clean less intrusive info box|info-blue}} |
|||
<pre>{{Note|Careful with this action, this is a caution by default in orange|caution}}</pre> |
|||
{{Note|Careful with this action, this is a caution by default in orange|caution}} |
|||
<pre>{{Note|Careful with this action, this is a caution in red if you prefer|caution-red}}</pre> |
|||
{{Note|Careful with this action, this is a caution in red if you prefer|caution-red}} |
|||
<pre>{{Note|A warning message!|warning}}</pre> |
|||
{{Note|A warning message!|warning}} |
|||
<pre>{{Note|This a a tech support helpful suggestion or tip . . .|tip}}</pre> |
|||
{{Note|This a a tech support helpful suggestion or tip . . .|tip}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Note Text", |
|||
"example": "Some of Einstein's Brain is un-accounted for..", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"2": { |
|||
"label": "Icon or Background Color", |
|||
"description": "Optional Change the Icon or Background Color", |
|||
"example": "caution, warning, tip, info, info-blue, reminder-yellow, caution-red", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": "Show a Note", |
|||
"paramOrder": [ |
|||
"1", |
|||
"2" |
|||
], |
|||
"format": "inline" |
|||
} |
|||
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude> |
|||
Revision as of 13:07, 7 April 2026
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
| This template uses TemplateStyles: |
Usage
{{Note|This is with a blue green background the default}}
{{Note|This is with a better yellower background|reminder-yellow}}
{{Note|This is a brown info box the same as used on mediawiki|info}}
{{Note|This is a clean less intrusive info box|info-blue}}
{{Note|Careful with this action, this is a caution by default in orange|caution}}
{{Note|Careful with this action, this is a caution in red if you prefer|caution-red}}
{{Note|A warning message!|warning}}
{{Note||dragons}}
{{Note|Stop, proceed with great caution|dragons|Dragons:}}
{{Note|This is a strong start to my story|elephant}}
{{Note|You know what is definitely not going to happen|crystalball}}
{{Note|If I can get you laughing we will all be smarter|clown}}
{{Note|Let me load you up with expectations|backpack}}
{{Note|There is one thing I can never tell you|tension}}
{{Note|Just wait for a long time while I tell you lots and lots and lots of unnecessary details|hourglass}}
{{Note|Let me drop some clues for you to follow . . . |breadcrumbs}}
Show a Note
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Note Text | 1 | no description
| String | required |
| Icon or Background Color | 2 | Optional Change the Icon or Background Color
| String | optional |
| Option to change leading text | 3 | no description
| String | optional |
| Option to change CSS Class | 4 | no description
| String | optional |