Template:Note: Difference between revisions
Appearance
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude><templatestyles src="Note/styles.css" /> |
<onlyinclude><templatestyles src="Note/styles.css" /> |
||
{{#switch: {{{2}}} |
|||
| ⚫ | |||
| reminder-green = |
|||
| ⚫ | |||
<div style="clear: both;"></div><div class="note back-palegreen"> |
|||
| ⚫ | |||
| ⚫ | |||
| 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": { |
"params": { |
||
| Line 10: | Line 72: | ||
"type": "string", |
"type": "string", |
||
"required": true |
"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" |
"description": "Show a Note", |
||
"paramOrder": [ |
|||
"1", |
|||
"2" |
|||
], |
|||
"format": "inline" |
|||
} |
} |
||
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude> |
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude> |
||
Revision as of 13:47, 5 March 2020
Usage
{{Note|This is with a blue green background the default}}
{{Note|This is with a better yellower background|reminder-yellow}}
{{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|This is a brown info box the same as used on mediawiki|info}}
{{Note|This is a clean less intrusive info box similar to that used on wikipedia|info-blue}}
{{Note|A warning message!|warning}}
{{Note|This a a tech support helpful suggestion or tip . . .|tip}}
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 |