Template:Note: Difference between revisions
Appearance
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) 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> |
|||
| ⚫ | |||
| [[File:OOjs UI icon lightbulb-yellow.svg|18px|Note|link=]] '''Note:''' }} |
|||
| ⚫ | |||
| #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}} |
|||
| ⚫ | |||
{{Note|Foo}} |
|||
{{Note|Foo|reminder}} |
|||
{{Note|Foo|error}} |
|||
{{Note|Foo|gotcha}} |
|||
{{Note}} Loose test |
|||
* Text {{Note|Foo|inline=1}} |
|||
| ⚫ | |||
{ |
{ |
||
"params": { |
"params": { |
||
"1": { |
"1": { |
||
" |
"label": "Note Text", |
||
"example": "Some of Einstein's Brain is un-accounted for..", |
|||
" |
"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" |
|||
} |
} |
||
}, |
}, |
||
" |
"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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Note Text | 1 | no description
| String | required |