Template:Note: Difference between revisions

[unchecked revision][pending revision]
Content deleted Content added
No edit summary
No edit summary
Tag: 2017 source edit
 
(51 intermediate revisions by 2 users not shown)
Line 1:
<includeonly><templatestyles src="Note/styles.css" />
<onlyinclude>{{#switch:
{{#switch: {{{2}}}
| =
| reminder-green =
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}}
<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>
|gotcha=error
| reminder-yellow =
|=info
<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>
|#default={{{2|}}}
| caution =
}} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
<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 lightbulb-yellow.svg|18px|Note|link=]]&nbsp;'''Note:''' }}
| caution-red =
| #default=
<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>
{{Template:Note|noshift=1}}
| caution-orange =
}}</onlyinclude>
<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>
 
== | Usagetip ==
<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>
<pre>
| moved =
{{Note|Foo}}
<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>
{{Note|Foo|reminder}}
| warning =
{{Note|Foo|error}}
<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>
{{Note|Foo|gotcha}}
| dragons =
{{Note}} Loose test
<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 =
* Text {{Note|Foo|inline=1}}
<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>
</pre>
| info-blue =
{{Note|Foo}}
<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>
{{Note|Foo|reminder}}
| legend =
{{Note|Foo|error}}
<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>
{{Note|Foo|gotcha}}
| legend-clear =
{{Note}} Loose test
<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>
 
| legend-blue =
* Text {{Note|Foo|inline=1}}
<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 =
<templatedata>
<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;</div><div>{{{1}}}</div></div></div>
{
| clown =
"params": {
<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>
"1": {
| backpack =
"type": "content",
<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>
"label": "Text",
| tension =
"required": true
<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 =
"2": {
<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>
"label": "Type",
| hourglass =
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.",
<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>
"type": "line"
| 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>
"inline": {
| #default =
"label": "Inline formatting",
<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>
"description": "Show the template without line breaks before and after it",
}}</includeonly><noinclude>
"type": "line"
{{documentation}}</noinclude>
}
},
"format": "inline",
"description": "Show a note in a box (e.g. a top-of-the-page warning)."
}
</templatedata>