Template:Note: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
Line 1:
<onlyinclude><templatestyles src="Note/styles.css" />
{{#switch: {{{2}}}
<div style="clear: both;"></div><div class={{#if: {{{2|}}}|{{{2}}}|"note"}}}>▼
| reminder-green =
[[File:OOjs UI icon lightbulb-yellow.svg]] '''Note: ''' {{{1}}}</div></onlyinclude>▼
<div style="clear: both;"></div><div class="note back-palegreen">
<noinclude><templatedata>▼
| reminder-yellow =
<div style="clear: both;"></div><div class="note back-yellow">
[[File:OOjs UI icon lightbulb-yellow.svg]] '''Note: ''' {{{1}}}</div>
| caution =
<div style="clear: both;"></div><div class="note back-orange>
[[File:OOjs UI icon alert-warning.svg]] '''Caution: ''' {{{1}}}</div>
| caution-red =
[[File:OOjs UI icon alert-warning.svg]] '''Caution: ''' {{{1}}}</div>
| caution-orange =
<div style="clear: both;"></div><div class="note back-orange>
[[File:OOjs UI icon alert-warning.svg]] '''Caution: ''' {{{1}}}</div>
| tip =
<div style="clear: both;"></div><div class="note back-clear>
[[File:Customer Service Icon.png|32px]] '''Tip: ''' {{{1}}}</div>
| warning =
<div style="clear: both;"></div><div class="note back-red>
[[File:OOjs_UI_icon_notice-destructive.svg]] '''Warning: ''' {{{1}}}</div>
| info =
<div style="clear: both;"></div><div class="note back-brown>
[[File:OOjs_UI_icon_reference_20_ac6600.svg]] '''Note: ''' {{{1}}}</div>
| info-blue =
<div style="clear: both;"></div><div class="note back-clear>
[[File:OOjs UI icon reference-progressive.svg]] '''Note: ''' {{{1}}}</div>
| #default =
<div style="clear: both;"></div><div class="note back-palegreen">
[[File:OOjs UI icon lightbulb-yellow.svg]] '''Note: ''' {{{1}}}</div>
}}</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|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|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 similar to that used on wikipedia|info-blue}}</pre>
{{Note|This is a clean less intrusive info box similar to that used on wikipedia|info-blue}}
<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}}
{
"params": {
Line 10 ⟶ 72:
"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>
| |||