Difference between revisions of "Template:Note"

From Mashinky
Jump to: navigation, search
(Notes template)
 
 
(3 intermediate revisions by 2 users 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>
{{documentation|content=
+
== Usage ==
<translate>
+
Picking one of these options:
== Usage == <!--T:3-->
 
</translate>
 
 
<pre>
 
<pre>
 
{{Note|Foo}}
 
{{Note|Foo}}
Line 17: Line 14:
 
{{Note|Foo|warn}}
 
{{Note|Foo|warn}}
 
{{Note|Foo|error}}
 
{{Note|Foo|error}}
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>
+
{{Note}} Loose test
  
 
* Text {{Note|Foo|inline=1}}
 
* Text {{Note|Foo|inline=1}}
 
</pre>
 
</pre>
 +
 +
Will produce these formatted notes:
 +
 
{{Note|Foo}}
 
{{Note|Foo}}
 
{{Note|Foo|info}}
 
{{Note|Foo|info}}
Line 26: Line 26:
 
{{Note|Foo|warn}}
 
{{Note|Foo|warn}}
 
{{Note|Foo|error}}
 
{{Note|Foo|error}}
{{Note}} <translate><!--T:4--> Loose test</translate>
+
{{Note}} Loose test
  
 
* Text {{Note|Foo|inline=1}}
 
* Text {{Note|Foo|inline=1}}
  
== Parameters ==
+
Don't forget to change Foo for your own text.</noinclude>
 
 
{{Note/doc}}
 
 
 
}}
 
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]
 

Latest revision as of 01: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.