Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
(Created page with "<languages/> <onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css"...") |
(Undo revision 27711 by Israel.herrera (talk)) Tag: Undo |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} | <onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} | ||
|gotcha=error | |gotcha=error | ||
Line 5: | Line 4: | ||
|#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-20 fc3.svg|18px| | + | | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]] '''Note:''' }}<!-- |
--></onlyinclude> | --></onlyinclude> | ||
{{documentation|content= | {{documentation|content= | ||
− | + | ||
− | == Usage == | + | == Usage == |
− | |||
<pre> | <pre> | ||
{{Note|Foo}} | {{Note|Foo}} | ||
Line 17: | Line 15: | ||
{{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}} | ||
Line 26: | Line 24: | ||
{{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}} | ||
Line 35: | Line 33: | ||
}} | }} | ||
− | [[Category:Templates | + | [[Category:Templates|{{PAGENAME}}]] |
Latest revision as of 14:08, 30 March 2023
{{{text}}}