Jump to content

Template:Note: Difference between revisions

From pool
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<div style="display: inline-block;">
<onlyinclude>{{#switch:
<div class="suppwiki_box">
| =
<p style="font-size: 120%; font-weight: bold;">
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}}
<span class="header_icon" aria-hidden="true" role="presentation">[[File:OOjs UI icon lightbulb-yellow.svg]]</span>
|gotcha=error
<span>Note: {{{1}}}</span>
|=info
</p>
|#default={{{2|}}}
</div>
}} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
</div>
| [[File:OOjs UI icon lightbulb-yellow.svg|18px|Note|link=]]&nbsp;'''Note:''' }}
<noinclude><templatedata>
| #default=
{{Template:Note|noshift=1}}
}}</onlyinclude>

== Usage ==
<pre>
{{Note|Foo}}
{{Note|Foo|reminder}}
{{Note|Foo|error}}
{{Note|Foo|gotcha}}
{{Note}} Loose test

* Text {{Note|Foo|inline=1}}
</pre>
{{Note|Foo}}
{{Note|Foo|reminder}}
{{Note|Foo|error}}
{{Note|Foo|gotcha}}
{{Note}} Loose test

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

<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"type": "content",
"label": "Note Text",
"example": "Some of Einstein's Brain is un-accounted for..",
"label": "Text",
"type": "string",
"required": true
"required": true
},
"2": {
"label": "Type",
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.",
"type": "line"
},
"inline": {
"label": "Inline formatting",
"description": "Show the template without line breaks before and after it",
"type": "line"
}
}
},
},
"format": "inline",
"description": "Show a Note"
"description": "Show a note in a box (e.g. a top-of-the-page warning)."
}
}
</templatedata>
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude>

Revision as of 17:12, 2 March 2020

Note: {{{1}}}

Show a Note

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Note Text1

no description

Example
Some of Einstein's Brain is un-accounted for..
Stringrequired