Template:Note: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
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
|=info
|=info
|#default={{{2|{{{type|}}}}}}
|#default={{{2|{{{type|}}}}}}
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</span>{{#ifeq:{{{inline|}}}|1||</div>}}
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</span>{{#ifeq:{{{inline|}}}|1||</div>}}<nowiki/>
| [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}<!--
| [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}<!--
--></onlyinclude>
--></onlyinclude>
Line 11: Line 10:


<pre>
<pre>
{{Note|Foo}}
{{Note|Foo (default)}}
{{Note|Foo|info}}
{{Note|Foo ('info')|info}}
{{Note|Foo|reminder}}
{{Note|Foo ('reminder')|reminder}}
{{Note|Foo|warn}}
{{Note|Foo ('warn')|warn}}
{{Note|Foo|error}}
{{Note|Foo ('error')|error}}
{{Note}} Loose test
{{Note}} Loose test


* Text {{Note|Foo|inline=1}}
* Text {{Note|Foo (with inline=1)|inline=1}}
</pre>
</pre>
{{Note|Foo}}
{{Note|Foo (default)}}
{{Note|Foo|info}}
{{Note|Foo ('info')|info}}
{{Note|Foo|reminder}}
{{Note|Foo ('reminder')|reminder}}
{{Note|Foo|warn}}
{{Note|Foo ('warn')|warn}}
{{Note|Foo|error}}
{{Note|Foo ('error')|error}}
{{Note}} Loose test
{{Note}} Loose test


* Text {{Note|Foo|inline=1}}
* Text {{Note|Foo (with inline=1)|inline=1}}


== Parameters ==
== Parameters ==
Line 33: Line 32:
{{Note/doc}}
{{Note/doc}}


[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates]]
[[Category:Formatting]]

Latest revision as of 02:56, 24 October 2025

{{{text}}}

Usage

{{Note|Foo (default)}}
{{Note|Foo ('info')|info}}
{{Note|Foo ('reminder')|reminder}}
{{Note|Foo ('warn')|warn}}
{{Note|Foo ('error')|error}}
{{Note}} Loose test

* Text {{Note|Foo (with inline=1)|inline=1}}
Foo (default)
Foo ('info')
Foo ('reminder')
Foo ('warn')
Foo ('error')

Note Note: Loose test

  • Text Note Note:

Parameters

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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Typetype 2

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

Suggested values
info reminder warn error
Default
info
Stringoptional
Texttext 1

no description

Contentrequired
Inline formattinginline

Show the template without line breaks before and after it

Booleanoptional