Template:Note/doc: Difference between revisions

From Danno's Rocket Wiki
m (20 revisions imported)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<templatedata>
== Usage ==
{
<pre>
"params": {
{{note|Fo333o}}
"inline": {
{{note|Foo|reminder}}
"label": "Inline formatting",
{{note|Foo|error}}
"description": "Show the template without line breaks before and after it",
{{note|Foo|gotcha}}
"type": "boolean"
{{tip|Foo}}
},
{{note}} Loose test
"text": {
{{tip}} Loose test
"aliases": [
</pre>
"1"
{{note|Foo}}
],
{{note|Foo|reminder}}
"label": "Text",
{{note|Foo|error}}
"type": "content",
{{note|Foo|gotcha}}
"required": true
{{tip|Foo}}
},
{{note}} Loose test
"type": {
 
"aliases": [
{{tip}} Loose test
"2"
<includeonly>
],
<!-- Categories go here, and interwikis go here -->
"label": "Type",
{{languages}}
"description": "One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.",
</includeonly>
"type": "line",
"default": "info"
}
},
"format": "inline",
"description": "Show a note in a box (e.g. a top-of-the-page warning).",
"paramOrder": [
"type",
"text",
"inline"
]
}
</templatedata>

Latest revision as of 23:23, 22 January 2021

<templatedata> { "params": { "inline": { "label": "Inline formatting", "description": "Show the template without line breaks before and after it", "type": "boolean" }, "text": { "aliases": [ "1" ], "label": "Text", "type": "content", "required": true }, "type": { "aliases": [ "2" ], "label": "Type", "description": "One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.", "type": "line", "default": "info" } }, "format": "inline", "description": "Show a note in a box (e.g. a top-of-the-page warning).", "paramOrder": [ "type", "text", "inline" ] } </templatedata>