Template:Note: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
 
 
<onlyinclude>{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" />{{#ifeq:{{{inline|}}}|1||<div class="note-wrapper">}}<span 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" />{{#ifeq:{{{inline|}}}|1||<div class="note-wrapper">}}<span role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
 
|gotcha=error
 
|gotcha=error
Line 32: Line 31:
   
 
{{Note/doc}}
 
{{Note/doc}}
 
[[Category:Templates]]
 

Latest revision as of 05:48, 4 March 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