Template:Note/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 39: | Line 39: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"type": "content" | "type": "content", | ||
"label": "Text", | |||
"required": true | |||
}, | }, | ||
"2": {} | "2": { | ||
"label": "Type", | |||
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", | |||
"type": "string" | |||
} | |||
}, | }, | ||
"format": "inline" | "format": "inline", | ||
"description": "Show a note in a box (e.g. a top-of-the-page warning)." | |||
} | } | ||
</templatedata> | </templatedata> |
Revision as of 05:30, 28 March 2018
<languages/> {{#switch: | =
{{#if: {{#if:|{{{1}}}|{{#if:demo|demo|}} }} |
| Note Note: }}
| #default=
{{ Template:TNTN |1={{#if:|}} |2= |demo=demo }}
}} {{ Template:TNTN |content=
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" />
| <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" />
| <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" />
| <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" />
| <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" />
| <translate> Note</translate> <translate> Note:</translate> }}
| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
}} Loose test
Template:Tip Loose test
<templatedata> { "params": { "1": { "type": "content", "label": "Text", "required": true }, "2": { "label": "Type", "description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.", "type": "string" } }, "format": "inline", "description": "Show a note in a box (e.g. a top-of-the-page warning)." } </templatedata>
}} [[Category:Templates{{#translation:}}|Note/en]]