Difference between revisions of "Template:Note/en"
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
<onlyinclude>{{#switch: | <onlyinclude>{{#switch: | ||
| = | | = | ||
| − | {{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch:{{{2|}}} | + | {{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}} |
|gotcha=error | |gotcha=error | ||
|=info | |=info | ||
|#default={{{2|}}} | |#default={{{2|}}} | ||
| − | }} | + | }} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div> |
| [[File:Bulbgraph.png|18px|Note|link=]] '''Note:''' }} | | [[File:Bulbgraph.png|18px|Note|link=]] '''Note:''' }} | ||
| #default= | | #default= | ||
| − | + | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} | |
| − | |||
| − | |||
| − | |||
| − | |||
}}</onlyinclude> | }}</onlyinclude> | ||
| − | {{ | + | {{documentation|content= |
== Usage == | == Usage == | ||
<pre> | <pre> | ||
| Line 25: | Line 21: | ||
{{note}} Loose test | {{note}} Loose test | ||
{{tip}} Loose test | {{tip}} Loose test | ||
| + | |||
| + | * Text {{note|Foo|inline=1}} | ||
</pre> | </pre> | ||
{{note|Foo}} | {{note|Foo}} | ||
| Line 34: | Line 32: | ||
{{tip}} Loose test | {{tip}} Loose test | ||
| + | |||
| + | * Text {{note|Foo|inline=1}} | ||
<templatedata> | <templatedata> | ||
| Line 46: | Line 46: | ||
"label": "Type", | "label": "Type", | ||
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", | "description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", | ||
| − | "type": " | + | "type": "line" |
| + | }, | ||
| + | "inline": { | ||
| + | "label": "Inline formatting", | ||
| + | "description": "Show the template without line breaks before and after it", | ||
| + | "type": "line" | ||
} | } | ||
}, | }, | ||
Latest revision as of 14:52, 9 May 2019
<languages/>
<templatestyles src="Note/styles.css" />
{{{1}}}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}} [[Category:Templates{{#translation:}}|Note/en]]