Jump to content

Template:Note: Difference between revisions

From pool
[checked revision][pending revision]
Content deleted Content added
No edit summary
No edit summary
Tag: 2017 source edit
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><templatestyles src="Note/styles.css" />
<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}}}"><div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon lightbulb-yellow.svg]] &nbsp;'''{{{3|Note: }}}''' {{{1}}}</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}}}"><div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon lightbulb-yellow.svg]] &nbsp;'''{{{3|Note: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon alert-warning.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon alert-warning.svg]] &nbsp;'''{{{3|Caution: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon alert-destructive.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon alert-destructive.svg]] &nbsp;'''{{{3|Caution: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon alert-warning.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Caution: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon alert-warning.svg]] &nbsp;'''{{{3|Caution: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:Customer Service Icon.png||30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Tip: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:Customer Service Icon.png|32px]] &nbsp;'''{{{3|Tip: }}}''' {{{1}}}</div>
| moved =
| moved =
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}>
<div style="clear: both;"></div><div class="note {{{4|back-clear-blue}}}><div style="float: left">[[File:301redirect.png|100px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Moved: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:301redirect.png|100px]] &nbsp;'''{{{3|Moved: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs_UI_icon_notice-destructive.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Warning: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
| dragons =
[[File:OOjs_UI_icon_notice-destructive.svg]] &nbsp;'''{{{3|Warning: }}}''' {{{1}}}</div>
<div style="clear: both;"></div><div class="note {{{4|back-red}}}><div style="float: left">[[File:Dragon.webp|100px]]</div><div style="min-height: 100px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Here be Dragons!}}}</strong>&nbsp;&nbsp;</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}}}><div style="float: left">[[File:OOjs_UI_icon_reference_20_ac6600.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs_UI_icon_reference_20_ac6600.svg]] &nbsp; {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon reference-progressive.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;{{{1}}}</div></div></div>
[[File:OOjs UI icon reference-progressive.svg]] &nbsp; {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon info.svg.png|35px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon info.svg.png|35px]] &nbsp;'''{{{3|Legend: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon info.svg.png|35px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
[[File:OOjs UI icon info.svg.png|35px]] &nbsp;'''{{{3|Legend: }}}''' {{{1}}}</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}}}><div style="float: left">[[File:OOjs UI icon info-progressive.svg.png|35px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Legend: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
| elephant =
[[File:OOjs UI icon info-progressive.svg.png|35px]] &nbsp;'''{{{3|Legend: }}}''' {{{1}}}</div>
<div style="clear: both;"></div><div class="note {{{4|back-pink}}}><div style="float: left">[[File:pink-elephant.png|35px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;{{{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="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</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="min-height: 60px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|&nbsp;}}}</strong>&nbsp;&nbsp;</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="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</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 style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</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="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</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="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|}}}</strong>&nbsp;&nbsp;</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}}}"><div style="float: left">[[File:OOjs UI icon lightbulb-yellow.svg|30px]]</div><div style="min-height: 35px;">&nbsp;<div style="flex-grow:0;flex-shrink:0;"><strong>{{{3|Note: }}}</strong>&nbsp;&nbsp;</div><div>{{{1}}}</div></div></div>
}}</includeonly><noinclude>
[[File:OOjs UI icon lightbulb-yellow.svg]] &nbsp;'''{{{3|Note: }}}''' {{{1}}}</div>
{{documentation}}</noinclude>
}}</onlyinclude>
<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>

Latest revision as of 16:20, 7 April 2026