Template:Note: Difference between revisions
Appearance
IOTWD-813 Creation of Template:Note |
IOTWD-813 Creation of Template:Note |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<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 | |||
|warning=warn | |||
|notice=info | |||
|=info | |||
|#default={{{2|{{{type|}}}}}} | |||
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{#ifeq:{{{inline|}}}|1|{{{1|{{{content|{{{text}}}}}}}}}| | |||
{{{1|{{{content|{{{text}}}}}}}}}}}</div> | |||
| [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=<!--T:1--> Note|link=]] '''<!--T:2--> Note:''' }}<!-- | |||
--></onlyinclude> | |||
== Usage == <!--T:3--> | |||
<pre> | |||
{{Note|text=Foo}} | |||
{{Note|type=info|text=Foo}} | |||
{{Note|type=reminder|text=Foo}} | |||
{{Note|type=warn|text=Foo}} | |||
{{Note|type=error|text=Foo}} | |||
{{Note}} <!--T:6--> Loose test | |||
* Text {{Note|inline=1|text=Foo}} | |||
</pre> | |||
{{Note|text=Foo}} | |||
{{Note|type=info|text=Foo}} | |||
{{Note|type=reminder|text=Foo}} | |||
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}} | |||
{{Note|type=reminder|text= | |||
* Multiple paragraphs. | |||
Of text.}} | |||
{{Note|type=warn|text=Foo}} | |||
{{Note|type=error|text=Foo}} | |||
{{Note}} <!--T:4--> Loose test | |||
* Text {{Note|inline=1|text=Foo}} | |||
== Parameters == | |||
{{Note/doc}} | |||