Template:Note: Difference between revisions

From Bay Area Structural Heart Wiki
No edit summary
No edit summary
Line 1: Line 1:
<languages/>
 
<onlyinclude>{{#switch:<translate></translate>
<onlyinclude>{{#switch:
| =
| =
{{#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|}}}}}}
{{#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|}}}}}}
Line 7: Line 7:
     |#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-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}
| #default=
| #default=
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}}</onlyinclude>
}}</onlyinclude>
{{documentation|content=
{{documentation|content=
<translate>
== Usage ==
== Usage == <!--T:3-->
</translate>
<pre>
<pre>
{{Note|Foo}}
{{Note|Foo}}
Line 21: Line 19:
{{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}}
Line 30: Line 28:
{{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}}
Line 39: Line 37:


}}
}}
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]

Revision as of 18:49, 21 January 2021

{{#switch: | =

{{#if: {{#if:||{{#if:demo|demo|}} }} | <templatestyles src="Note/styles.css" />

{{{text}}}
 | Note Note: }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}

}} Template:Documentation