Template:Note: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 1:
<onlyinclude>{{#switch:
<div style="display: inline-block;">
| =
<div class="suppwiki_box">
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}}
<p style="font-size: 120%; font-weight: bold;">
|gotcha=error
<span class="header_icon" aria-hidden="true" role="presentation">{{#far:sticky-note}}</span>
|=info
<span>Note: {{{1}}}</span>
|#default={{{2|}}}
</p>
}} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
</div>
| [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}
</div>
| #default=
<noinclude><templatedata>
{{Template:Note|noshift=1}}
}}</onlyinclude>
{{documentation|content=
 
== Usage ==
<pre>
{{Note|Foo}}
{{Note|Foo|reminder}}
{{Note|Foo|error}}
{{Note|Foo|gotcha}}
{{Note}} Loose test
 
* Text {{Note|Foo|inline=1}}
</divpre>
{{Note|Foo}}
{{Note|Foo|reminder}}
{{Note|Foo|error}}
{{Note|Foo|gotcha}}
{{Note}} Loose test
 
* Text {{Note|Foo|inline=1}}
 
<noinclude><templatedata>
{
"params": {
"1": {
"labeltype": "Note Textcontent",
"typelabel": "stringText",
"example": "Some of Einstein's Brain is un-accounted for..",
"type": "string",
"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"
}
},
"descriptionformat": "Show a Noteinline",
"description": "Show a note in a box (e.g. a top-of-the-page warning)."
}
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude>
 
}}