Template:Note: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
 
|#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:''' }}<!--
 
--></onlyinclude>
 
--></onlyinclude>
   

Revision as of 23:04, 28 February 2021

{{{text}}}

Usage

{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} Loose test

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

Note Note: Loose test

  • 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