Jump to content

Template:Note: Difference between revisions

From Bath Wiki
Undo revision 17 by Pm2022 (talk) - wasn't needed
Add noinclude around docs
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
     |gotcha=error
     |gotcha=error
Line 8: Line 7:
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{#ifeq:{{{inline|}}}|1|{{{1|{{{content|{{{text}}}}}}}}}|
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{#ifeq:{{{inline|}}}|1|{{{1|{{{content|{{{text}}}}}}}}}|
{{{1|{{{content|{{{text}}}}}}}}}}}</div>
{{{1|{{{content|{{{text}}}}}}}}}}}</div>
   | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }}<!--
   | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=Note|link=]]&nbsp;'''Note:''' }}<!--
--></onlyinclude>
--></onlyinclude>
{{documentation|content=
 
<translate>
<noinclude>
== Usage == <!--T:3-->
== Usage ==
</translate>
 
<pre>
<pre>
{{Note|text=Foo}}
{{Note|text=Foo}}
Line 20: Line 19:
{{Note|type=warn|text=Foo}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>
{{Note}} Loose test


* Text {{Note|inline=1|text=Foo}}
* Text {{Note|inline=1|text=Foo}}
Line 34: Line 33:
{{Note|type=warn|text=Foo}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} <translate><!--T:4--> Loose test</translate>
{{Note}} Loose test


* Text {{Note|inline=1|text=Foo}}
* Text {{Note|inline=1|text=Foo}}
Line 40: Line 39:
== Parameters ==
== Parameters ==


{{Note/doc}}
* <code>Inline</code> (boolean) - Show the template without line breaks before and after it. Default 0
 
* <code>text</code> (content) - Informative note.
== See also ==
* <code>type</code> (string) - One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. Default "info"
* {{tl|warn}}, shortcut for this template with <code>type=warning</code>.
</noinclude>
* {{tl|mbox}}, and in particular the namespace-agnostic {{tl|ombox}}, which by default resembles a typical "info" template.
 
}}
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]

Latest revision as of 16:35, 3 June 2026

{{{text}}}


Usage

{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose test

* Text {{Note|inline=1|text=Foo}}
Foo
Foo
Foo
Multiple
lines
of
text
  • Multiple paragraphs.
Of text.
Foo
Foo

Note Note: Loose test

  • Text
    Foo

Parameters

  • Inline (boolean) - Show the template without line breaks before and after it. Default 0
  • text (content) - Informative note.
  • type (string) - One of “info”, “reminder”, “warn”, or “error”. This setting affects the color and icon. Default "info"