Template:Note: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
Line 1: Line 1:
  +
<languages/>
 
 
<onlyinclude>{{#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|}}}}}}
 
<onlyinclude>{{#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|}}}}}}
 
|gotcha=error
 
|gotcha=error
Line 7: Line 7:
 
| [[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|<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }}<!--
 
--></onlyinclude>
 
--></onlyinclude>
  +
{{documentation|content=
 
<translate>
 
 
== Usage == <!--T:3-->
 
== Usage == <!--T:3-->
  +
</translate>
 
 
<pre>
 
<pre>
 
{{Note|Foo}}
 
{{Note|Foo}}
Line 34: Line 33:
 
{{Note/doc}}
 
{{Note/doc}}
   
}}
 
 
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]
 
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]

Revision as of 22:02, 28 February 2021

{{{text}}}

Usage

{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>

* Text {{Note|Foo|inline=1}}
Foo
Foo
Foo
Foo
Foo

<translate> Note</translate> <translate> Note:</translate> <translate> Loose test</translate>

  • Text
    Foo

Parameters

Show a note in a box (e.g. a top-of-the-page warning).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Typetype 2

One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.

Default
info
Lineoptional
Texttext 1

no description

Contentrequired
Inline formattinginline

Show the template without line breaks before and after it

Booleanoptional

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