Difference between revisions of "Template:Note"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "</translate>" to "")
m (Text replacement - "<!--T:(.*)-->" to "")
Line 7: Line 7:
 
     |#default={{{2|}}}
 
     |#default={{{2|}}}
 
     }} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
 
     }} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
   | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|<!--T:1--> Note|link=]]&nbsp;'''<!--T:2--> Note:''' }}
+
   | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px| Note|link=]]&nbsp;''' Note:''' }}
 
| #default=
 
| #default=
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
Line 13: Line 13:
 
{{documentation|content=
 
{{documentation|content=
  
== Usage == <!--T:3-->
+
== Usage ==  
  
 
<pre>
 
<pre>
Line 20: Line 20:
 
{{Note|Foo|error}}
 
{{Note|Foo|error}}
 
{{Note|Foo|gotcha}}
 
{{Note|Foo|gotcha}}
{{Note}} <!--T:6--> Loose test
+
{{Note}} Loose test
  
 
* Text {{Note|Foo|inline=1}}
 
* Text {{Note|Foo|inline=1}}
Line 28: Line 28:
 
{{Note|Foo|error}}
 
{{Note|Foo|error}}
 
{{Note|Foo|gotcha}}
 
{{Note|Foo|gotcha}}
{{Note}} <!--T:4--> Loose test
+
{{Note}} Loose test
  
 
* Text {{Note|Foo|inline=1}}
 
* Text {{Note|Foo|inline=1}}

Revision as of 14:33, 21 December 2019

{{{1}}}
Template documentation

Usage

{{Note|Foo}}
{{Note|Foo|reminder}}
{{Note|Foo|error}}
{{Note|Foo|gotcha}}
{{Note}}  Loose test

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

Note  Note: Loose test

  • Text
    Foo

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

no description

Contentrequired
Type2

'reminder', 'error', 'gotcha' or nothing. Will affect formatting.

Lineoptional
Inline formattinginline

Show the template without line breaks before and after it

Lineoptional