Difference between revisions of "Template:Note"

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

Revision as of 06:42, 11 August 2020

{{{1}}}

{{documentation|content=

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