Template:Note: Difference between revisions

From Bay Area Structural Heart Wiki
No edit summary
No edit summary
Line 1: Line 1:
 
    <span style="border:1px; border-style:solid; border-radius: 7px;
<onlyinclude>
  border-color:#ddffdd; background-color:#f2fff2; padding:0.1em;
{{#switch:
     margin:0.1em; display:
| =
     inline-block;">[[File:Bulbgraph.png|18px|Note|link=]] '''Note:''' {{{1|}}}</span><noinclude>
{{#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|}}}}}}
  == Usage ==
     |gotcha=error
  Lightbulb Note:
    |=info
    <pre><nowiki>
    |#default={{{2|{{{type|}}}}}}
    {{Note|Your note text}}
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div>
    </nowiki></pre>
  | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}
    </noinclude>
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}}</onlyinclude>
{{documentation|content=
== Usage ==
<pre>
{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} Loose test
 
* Text {{Note|Foo|inline=1}}
</pre>
{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} Loose test
 
* Text {{Note|Foo|inline=1}}
 
== Parameters ==
 
{{Note/doc}}
 
}}
[[Category:Documentation]]

Revision as of 19:38, 21 January 2021

   Note Note:  
  == Usage ==
  Lightbulb Note:
    {{Note|Your note text}}