Template:Note/doc: Difference between revisions
(→Usage) |
m (Reverted edits by 79.175.120.39 (talk) to last revision by Shirayuki) |
||
Line 2: | Line 2: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{note| | {{note|Foo}} | ||
{{note|Foo|reminder}} | {{note|Foo|reminder}} | ||
{{note|Foo|error}} | {{note|Foo|error}} |
Revision as of 15:22, 27 September 2014
Template:Documentation subpage
Usage
{{note|Foo}} {{note|Foo|reminder}} {{note|Foo|error}} {{note|Foo|gotcha}} {{tip|Foo}} {{note}} Loose test {{tip}} Loose test
{{#switch:<translate></translate> | =
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
Foo
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} {{#switch:<translate></translate> | =
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
Foo
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} {{#switch:<translate></translate> | =
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
Foo
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} {{#switch:<translate></translate> | =
{{#if: {{#if:Foo|Foo|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
Foo
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} Template:Tip {{#switch:<translate></translate> | =
{{#if: {{#if:||{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />
{{{text}}}
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} Loose test
Template:Tip Loose test