Difference between revisions of "Template:Note"
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
<onlyinclude>{{#switch:<translate></translate> | <onlyinclude>{{#switch:<translate></translate> | ||
| = | | = | ||
| − | {{#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|<translate><!--T:1--> Note</translate>|link=]] '''<translate><!--T:2--> Note:</translate>''' }} | | [[File:Bulbgraph.png|18px|<translate><!--T:1--> Note</translate>|link=]] '''<translate><!--T:2--> Note:</translate>''' }} | ||
| #default= | | #default= | ||
| − | + | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} | |
| − | |||
| − | |||
| − | |||
| − | |||
}}</onlyinclude> | }}</onlyinclude> | ||
| − | {{ | + | {{documentation|content= |
<translate> | <translate> | ||
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
| Line 27: | Line 23: | ||
{{note}} <translate><!--T:6--> Loose test</translate> | {{note}} <translate><!--T:6--> Loose test</translate> | ||
{{tip}} <translate><!--T:7--> Loose test</translate> | {{tip}} <translate><!--T:7--> Loose test</translate> | ||
| + | |||
| + | * Text {{note|Foo|inline=1}} | ||
</pre> | </pre> | ||
{{note|Foo}} | {{note|Foo}} | ||
| Line 36: | Line 34: | ||
{{tip}} <translate><!--T:5--> Loose test</translate> | {{tip}} <translate><!--T:5--> Loose test</translate> | ||
| + | |||
| + | * Text {{note|Foo|inline=1}} | ||
<templatedata> | <templatedata> | ||
| Line 48: | Line 48: | ||
"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/> {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}} [[Category:Templates{{#translation:}}|Note]]