Template:Note: Difference between revisions
Jump to navigation
Jump to search
(use translation aware transclusion) |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
− | <languages/> |
||
⚫ | |||
|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}}}}}}</span>{{#ifeq:{{{inline|}}}|1||</div>}}<nowiki/> |
− | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px| |
+ | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]] '''Note:''' }}<!-- |
--></onlyinclude> |
--></onlyinclude> |
||
+ | |||
− | {{documentation|content= |
||
− | <translate> |
||
== Usage == <!--T:3--> |
== Usage == <!--T:3--> |
||
+ | |||
− | </translate> |
||
<pre> |
<pre> |
||
− | {{Note|Foo}} |
+ | {{Note|Foo (default)}} |
− | {{Note|Foo|info}} |
+ | {{Note|Foo ('info')|info}} |
− | {{Note|Foo|reminder}} |
+ | {{Note|Foo ('reminder')|reminder}} |
− | {{Note|Foo|warn}} |
+ | {{Note|Foo ('warn')|warn}} |
− | {{Note|Foo|error}} |
+ | {{Note|Foo ('error')|error}} |
− | {{Note}} |
+ | {{Note}} Loose test |
− | * Text {{Note|Foo|inline=1}} |
+ | * Text {{Note|Foo (with inline=1)|inline=1}} |
</pre> |
</pre> |
||
− | {{Note|Foo}} |
+ | {{Note|Foo (default)}} |
− | {{Note|Foo|info}} |
+ | {{Note|Foo ('info')|info}} |
− | {{Note|Foo|reminder}} |
+ | {{Note|Foo ('reminder')|reminder}} |
− | {{Note|Foo|warn}} |
+ | {{Note|Foo ('warn')|warn}} |
− | {{Note|Foo|error}} |
+ | {{Note|Foo ('error')|error}} |
− | {{Note}} |
+ | {{Note}} Loose test |
− | * Text {{Note|Foo|inline=1}} |
+ | * Text {{Note|Foo (with inline=1)|inline=1}} |
== Parameters == |
== Parameters == |
||
{{Note/doc}} |
{{Note/doc}} |
||
− | |||
− | }} |
||
− | [[Category:Templates{{#translation:}}|{{PAGENAME}}]] |
Latest revision as of 22:05, 9 February 2025
{{{text}}}
Usage
{{Note|Foo (default)}} {{Note|Foo ('info')|info}} {{Note|Foo ('reminder')|reminder}} {{Note|Foo ('warn')|warn}} {{Note|Foo ('error')|error}} {{Note}} Loose test * Text {{Note|Foo (with inline=1)|inline=1}}
Foo (default)
Foo ('info')
Foo ('reminder')
Foo ('warn')
Foo ('error')
Note: Loose test
- Text
Note:
Parameters
Show a note in a box (e.g. a top-of-the-page warning).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | type 2 | One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.
| String | optional |
Text | text 1 | no description | Content | required |
Inline formatting | inline | Show the template without line breaks before and after it | Boolean | optional |