Difference between revisions of "Template:Note"
From Tycoon Gaming
(Created page with "<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch: {{{2|{...") |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|=info | |=info | ||
|#default={{{2|{{{type|}}}}}} | |#default={{{2|{{{type|}}}}}} | ||
− | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div>|'''Note:'''}} | + | }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> |
− | </onlyinclude> | + | |'''Note:''' }}<!-- |
+ | --></onlyinclude> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Line 17: | Line 18: | ||
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} | ||
</pre> | </pre> | ||
− | {{Note| | + | {{Note|Default}} |
− | {{Note| | + | {{Note|Information (info)|info}} |
− | {{Note| | + | {{Note|Reminder (reminder)|reminder}} |
− | {{Note| | + | {{Note|Warning (warn)|warn}} |
− | {{Note| | + | {{Note|Error (error)|error}} |
{{Note}} Loose test | {{Note}} Loose test | ||
* Text {{Note|Foo|inline=1}} | * Text {{Note|Foo|inline=1}} | ||
− | == Parameters == | + | ===Parameters:=== |
− | + | type: One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. | Default: info | |
− | + | text: Text to Show | Default: - | |
− | + | inline: 0 = false, 1 = true | Default: False | |
− | |||
</noinclude> | </noinclude> |
Latest revision as of 13:10, 12 April 2022
{{{text}}}
Usage
{{Note|Foo}} {{Note|Foo|info}} {{Note|Foo|reminder}} {{Note|Foo|warn}} {{Note|Foo|error}} {{Note}} Loose test * Text {{Note|Foo|inline=1}}
Default
Information (info)
Reminder (reminder)
Warning (warn)
Error (error)
Note: Loose test
- Text Foo
Parameters:
type: One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. | Default: info text: Text to Show | Default: - inline: 0 = false, 1 = true | Default: False