Difference between revisions of "Template:Note"

From Mashinky
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
+
<includeonly>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <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
 
     |=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-20 fc3.svg|18px|<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }}<!--
+
   | [[File:OOjs UI icon lightbulb-yellow.png|18px|Note|link=]]&nbsp;'''Note:''' }}<!--
--></onlyinclude>
+
--></includeonly><noinclude>
 +
== Usage ==
 +
Picking one of these options:
 +
<pre>
 +
{{Note|Foo}}
 +
{{Note|Foo|info}}
 +
{{Note|Foo|reminder}}
 +
{{Note|Foo|warn}}
 +
{{Note|Foo|error}}
 +
{{Note}} Loose test
 +
 
 +
* Text {{Note|Foo|inline=1}}
 +
</pre>
 +
 
 +
Will produce these formatted notes:
 +
 
 +
{{Note|Foo}}
 +
{{Note|Foo|info}}
 +
{{Note|Foo|reminder}}
 +
{{Note|Foo|warn}}
 +
{{Note|Foo|error}}
 +
{{Note}} Loose test
 +
 
 +
* 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 Note: Loose test

  • Text
    Foo

Don't forget to change Foo for your own text.