Template:Note: Difference between revisions
Appearance
Add noinclude around docs |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} | <onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} | ||
|gotcha=error | |gotcha=error | ||
| Line 8: | Line 7: | ||
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{#ifeq:{{{inline|}}}|1|{{{1|{{{content|{{{text}}}}}}}}}| | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{#ifeq:{{{inline|}}}|1|{{{1|{{{content|{{{text}}}}}}}}}| | ||
{{{1|{{{content|{{{text}}}}}}}}}}}</div> | {{{1|{{{content|{{{text}}}}}}}}}}}</div> | ||
| [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt= | | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=Note|link=]] '''Note:''' }}<!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
< | <noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Note|text=Foo}} | {{Note|text=Foo}} | ||
| Line 20: | Line 19: | ||
{{Note|type=warn|text=Foo}} | {{Note|type=warn|text=Foo}} | ||
{{Note|type=error|text=Foo}} | {{Note|type=error|text=Foo}} | ||
{{Note}} | {{Note}} Loose test | ||
* Text {{Note|inline=1|text=Foo}} | * Text {{Note|inline=1|text=Foo}} | ||
| Line 34: | Line 33: | ||
{{Note|type=warn|text=Foo}} | {{Note|type=warn|text=Foo}} | ||
{{Note|type=error|text=Foo}} | {{Note|type=error|text=Foo}} | ||
{{Note}} | {{Note}} Loose test | ||
* Text {{Note|inline=1|text=Foo}} | * Text {{Note|inline=1|text=Foo}} | ||
| Line 40: | Line 39: | ||
== Parameters == | == Parameters == | ||
* <code>Inline</code> (boolean) - Show the template without line breaks before and after it. Default 0 | |||
* <code>text</code> (content) - Informative note. | |||
* <code>type</code> (string) - One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. Default "info" | |||
* | </noinclude> | ||
* | |||
Latest revision as of 16:35, 3 June 2026
{{{text}}}
Usage
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose test
* Text {{Note|inline=1|text=Foo}}
Foo
Foo
Foo
Multiple
lines
of
text
lines
of
text
- Multiple paragraphs.
Foo
Foo
Note: Loose test
- Text Foo
Parameters
Inline(boolean) - Show the template without line breaks before and after it. Default 0text(content) - Informative note.type(string) - One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. Default "info"