Difference between revisions of "Template:Note"

From Asmbly Wiki
(Created page with "<languages/> <onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note...")
 
 
Line 1: Line 1:
<languages/>
+
<onlyinclude><div role="note"
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
+
class="messagebox"
     |gotcha=error
+
style="{{#switch: {{{type}}}
     |warning=warn
+
     |error=background-color:#fee;border-color:#d33
     |notice=info
+
     |warning=background-color:#ffe;border-color:#fc3
     |=info
+
     |info=background-color:#eef;border-color:#33f
     |#default={{{2|{{{type|}}}}}}
+
     |note=background-color:#eee;border-color:#333
    }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{content|{{{text}}}}}}}}}</div>
+
     |#default=background-color:#eee;border-color:#333}}">
  | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }}<!--
+
    <p>{{{text}}}</p></div>
--></onlyinclude>
+
</onlyinclude>
 
{{documentation|content=
 
{{documentation|content=
<translate>
+
== Usage ==
== Usage == <!--T:3-->
+
You can choose the color with type, and use emoji or HTML styling in the text.
</translate>
+
 
 
<pre>
 
<pre>
 
{{Note|text=Foo}}
 
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
+
{{Note|type=note|text=👁️‍🗨️ Foo}}
{{Note|type=reminder|text=Foo}}
+
{{Note|type=info|text=ℹ️ Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
+
{{Note|type=warning|text=⚠️ Multiple<br><i>lines</i><br>of<br>text}}
{{Note|type=warn|text=Foo}}
+
{{Note|type=error|text=🛑 <b>Foo</b>}}
{{Note|type=error|text=Foo}}
 
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>
 
 
 
* Text {{Note|inline=1|text=Foo}}
 
 
</pre>
 
</pre>
 
{{Note|text=Foo}}
 
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
+
{{Note|type=note|text=👁️‍🗨️ Foo}}
{{Note|type=reminder|text=Foo}}
+
{{Note|type=info|text=ℹ️ Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
+
{{Note|type=warning|text=⚠️ Multiple<br><i>lines</i><br>of<br>text}}
{{Note|type=warn|text=Foo}}
+
{{Note|type=error|text=🛑 <b>Foo</b>}}
{{Note|type=error|text=Foo}}
 
{{Note}} <translate><!--T:4--> Loose test</translate>
 
 
 
* Text {{Note|inline=1|text=Foo}}
 
 
 
== Parameters ==
 
 
 
{{Note/doc}}
 
 
 
== See also ==
 
* {{tl|warn}}, shortcut for this template with <code>type=warning</code>.
 
* {{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 02:48, 14 June 2024

{{{text}}}