Template:Note: Difference between revisions
Lexisother (talk | contribs) Created page with "<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} |gotcha=error |=info |#default={{{2|{{{type|}}}}}} }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> | 18px|alt=Note|link= '''Note:''' }}<!-- --></onlyinclude> {{documentation|..." |
Lexisother (talk | contribs) Inline icons within the note |
||
Line 3: | Line 3: | ||
|=info | |=info | ||
|#default={{{2|{{{type|}}}}}} | |#default={{{2|{{{type|}}}}}} | ||
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">[[File:Ui note {{{2|{{{type|info}}}}}}.svg|24px]]{{{1|{{{text}}}}}}</div> | ||
| [[File:Ui note reminder.svg|18px|alt=Note|link=]] '''Note:''' }}<!-- | | [[File:Ui note reminder.svg|18px|alt=Note|link=]] '''Note:''' }}<!-- | ||
--></onlyinclude> | --></onlyinclude> |
Revision as of 14:10, 29 May 2023
Template documentation
Usage
{{Note|Foo}} {{Note|Foo|info}} {{Note|Foo|reminder}} {{Note|Foo|alert}} {{Note|Foo|error}} {{Note}} Loose test * Text {{Note|Foo|inline=1}}
Note: Loose test
- Text
Parameters
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Note
Show a note in a box (e.g. a top-of-the-page warning).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Inline formatting | inline | Show the template without line breaks before and after it.
| Boolean | optional |
Type | type 2 | One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon.
| String | optional |
Text | 1 text | Informative note. | Content | required |