Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
m (1 revision imported) |
Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
− | + | ||
− | <onlyinclude>{{#switch: | + | <onlyinclude>{{#switch: |
| = | | = | ||
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}} | {{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}} | ||
Line 7: | Line 7: | ||
|#default={{{2|}}} | |#default={{{2|}}} | ||
}} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div> | }} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div> | ||
− | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px| | + | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|<!--T:1--> Note|link=]] '''<!--T:2--> Note:''' }} |
| #default= | | #default= | ||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{documentation|content= | {{documentation|content= | ||
− | + | ||
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
− | + | ||
<pre> | <pre> | ||
{{Note|Foo}} | {{Note|Foo}} | ||
Line 21: | Line 21: | ||
{{Note|Foo|warn}} | {{Note|Foo|warn}} | ||
{{Note|Foo|error}} | {{Note|Foo|error}} | ||
− | {{Note}} | + | {{Note}} <!--T:6--> Loose test |
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} | ||
Line 30: | Line 30: | ||
{{Note|Foo|warn}} | {{Note|Foo|warn}} | ||
{{Note|Foo|error}} | {{Note|Foo|error}} | ||
− | {{Note}} | + | {{Note}} <!--T:4--> Loose test |
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} |
Revision as of 08:01, 30 July 2020
{{{1}}}
Template documentation
Usage
{{Note|Foo}} {{Note|Foo|info}} {{Note|Foo|reminder}} {{Note|Foo|warn}} {{Note|Foo|error}} {{Note}} <!--T:6--> Loose test * Text {{Note|Foo|inline=1}}
Foo
Foo
Foo
Foo
Foo
Note: Loose test
- Text Foo
Parameters
Show a note in a box (e.g. a top-of-the-page warning).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | no description | Content | required |
Type | 2 | One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.
| Line | optional |
Inline formatting | inline | Show the template without line breaks before and after it | Line | optional |
[[Category:Templates{{#translation:}}|Note]]