Difference between revisions of "Template:Note"
From Mashinky
(Notes template) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} |
− | |||
|gotcha=error | |gotcha=error | ||
|=info | |=info | ||
|#default={{{2|{{{type|}}}}}} | |#default={{{2|{{{type|}}}}}} | ||
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> | ||
− | | [[File:OOjs UI icon lightbulb- | + | | [[File:OOjs UI icon lightbulb-yellow.png|18px|Note|link=]] '''Note:''' }}<!-- |
− | --></ | + | --></includeonly><noinclude> |
− | + | == Usage == | |
− | < | + | Picking one of these options: |
− | == Usage == | ||
− | |||
<pre> | <pre> | ||
{{Note|Foo}} | {{Note|Foo}} | ||
Line 17: | Line 14: | ||
{{Note|Foo|warn}} | {{Note|Foo|warn}} | ||
{{Note|Foo|error}} | {{Note|Foo|error}} | ||
− | {{Note}} | + | {{Note}} Loose test |
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} | ||
</pre> | </pre> | ||
+ | |||
+ | Will produce these formatted notes: | ||
+ | |||
{{Note|Foo}} | {{Note|Foo}} | ||
{{Note|Foo|info}} | {{Note|Foo|info}} | ||
Line 26: | Line 26: | ||
{{Note|Foo|warn}} | {{Note|Foo|warn}} | ||
{{Note|Foo|error}} | {{Note|Foo|error}} | ||
− | {{Note}} | + | {{Note}} Loose test |
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} | ||
− | + | Don't forget to change Foo for your own text.</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 00:51, 31 December 2021
Usage
Picking one of these options:
{{Note|Foo}} {{Note|Foo|info}} {{Note|Foo|reminder}} {{Note|Foo|warn}} {{Note|Foo|error}} {{Note}} Loose test * Text {{Note|Foo|inline=1}}
Will produce these formatted notes:
Foo
Foo
Foo
Foo
Foo
Note: Loose test
- Text Foo
Don't forget to change Foo for your own text.