Difference between revisions of "Template:Note"

From Northumberland Climbing
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
Line 36: Line 36:
 
<templatedata>
 
<templatedata>
 
{
 
{
"params": {
+
"params": {
"1": {
+
"1": {
"type": "content",
+
"type": "content",
"label": "Text",
+
"label": "Text",
"required": true
+
"required": true
},
+
},
"2": {
+
"2": {
"label": "Type",
+
"label": "Type",
"description": "One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.",
+
"description": "One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.",
"type": "line",
+
"type": "line",
"default": "info"
+
"default": "info"
},
+
},
"inline": {
+
"inline": {
"label": "Inline formatting",
+
"label": "Inline formatting",
"description": "Show the template without line breaks before and after it",
+
"description": "Show the template without line breaks before and after it",
"type": "line"
+
"type": "line"
}
+
}
},
+
},
"format": "inline",
+
"format": "inline",
"description": "Show a note in a box (e.g. a top-of-the-page warning)."
+
"description": "Show a note in a box (e.g. a top-of-the-page warning)."
 
}
 
}
 
</templatedata>
 
</templatedata>
 
}}
 
}}
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]

Revision as of 08:05, 30 July 2020

{{{1}}}
Template documentation

Usage

{{Note|Foo}}
{{Note|Foo|info}}
{{Note|Foo|reminder}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note}} <!--T:6--> 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
Text1

no description

Contentrequired
Type2

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

Default
info
Lineoptional
Inline formattinginline

Show the template without line breaks before and after it

Lineoptional