Template:Note: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly><templatestyles src="Template:Note/styles.css" /><div class="note {{#ifeq:{{{inline|}}}|1|note-inline}} note-{{#switch: {{{2|{{{type|}}}}}} |
||
− | <includeonly> |
||
− | <templatestyles src="Template:Note/styles.css" /> |
||
− | <div class="note {{#ifeq:{{{inline|}}}|1|note-inline}}" note-{{#switch: {{{2|{{{type|}}}}}} |
||
|info=info |
|info=info |
||
|reminder=reminder |
|reminder=reminder |
||
Line 9: | Line 7: | ||
|error=error |
|error=error |
||
|info |
|info |
||
+ | }}">{{{1|{{{text|<code>ʕ •ᴥ•ʔ</code>}}}}}}[[Category:Notes]]</div></includeonly><noinclude> |
||
− | }}> |
||
+ | Notizen überall und für jeden. |
||
− | {{{1|{{{text}}}}}} |
||
+ | |||
− | </div> |
||
+ | Die Icons und das [[Template:Note/styles.css|Stylesheet]] wurden erfolgreich aus [https://www.mediawiki.org/wiki/Template:Note mediawiki] importiert. |
||
− | [[Category:Note]] |
||
+ | |||
− | </includeonly> |
||
+ | == Verwendung == |
||
− | <noinclude> |
||
+ | |||
− | {{Note|Everything default}} |
||
+ | <pre> |
||
− | {{Note|Inline|inline=1}} |
||
− | {{Note| |
+ | {{Note | Vorsicht! Das ist eine Notiz | warning }} |
+ | </pre> |
||
− | {{Note|Reminder note|type=reminder}} |
||
+ | |||
− | {{Note|Idea note|type=idea}} |
||
− | {{Note| |
+ | {{Note | Vorsicht! Das ist eine Notiz | warning }} |
+ | |||
− | {{Note|Warning note|type=warning}} |
||
+ | Die Notizen lassen sich auch inline setzen: |
||
− | {{Note|Error note|type=error}} |
||
+ | |||
− | </noinclude> |
||
+ | <pre> |
||
+ | * Meine |
||
+ | * tolle |
||
+ | * {{Note | Hinweis | inline=1 }} |
||
+ | * Liste |
||
+ | </pre> |
||
+ | |||
+ | * Meine |
||
+ | * tolle |
||
+ | * {{Note | Hinweis | inline=1 }} |
||
+ | * Liste |
||
+ | |||
+ | === Typen === |
||
+ | |||
+ | Es gibt auch lustige Farben und Bilder (<code>type</code> Parameter) |
||
+ | |||
+ | {{Note|(leer)|inline=1}} |
||
+ | {{Note|info|type=info|inline=1}} |
||
+ | |||
+ | {{Note|reminder|type=reminder|inline=1}} |
||
+ | {{Note|idea|type=idea|inline=1}} |
||
+ | |||
+ | {{Note|warning|type=warning|inline=1}} |
||
+ | {{Note|warn|type=warn|inline=1}} |
||
+ | |||
+ | {{Note|error|type=error|inline=1}} |
||
+ | <templatedata> |
||
+ | { |
||
+ | "params": { |
||
+ | "1": { |
||
+ | "aliases": [ |
||
+ | "text" |
||
+ | ], |
||
+ | "label": "Text", |
||
+ | "description": "Hinweistext", |
||
+ | "type": "content", |
||
+ | "required": true |
||
+ | }, |
||
+ | "2": { |
||
+ | "aliases": [ |
||
+ | "type" |
||
+ | ], |
||
+ | "label": "Type", |
||
+ | "description": "Art", |
||
+ | "type": "string", |
||
+ | "default": "info" |
||
+ | }, |
||
+ | "inline": { |
||
+ | "label": "Inline", |
||
+ | "example": "1", |
||
+ | "type": "boolean", |
||
+ | "default": "0" |
||
+ | }, |
||
+ | "type": { |
||
+ | "aliases": [ |
||
+ | "2" |
||
+ | ], |
||
+ | "label": "Type", |
||
+ | "description": "Art", |
||
+ | "type": "string", |
||
+ | "default": "info" |
||
+ | }, |
||
+ | "text": { |
||
+ | "aliases": [ |
||
+ | "1" |
||
+ | ], |
||
+ | "label": "Text", |
||
+ | "description": "Hinweistext", |
||
+ | "type": "content", |
||
+ | "required": true |
||
+ | } |
||
+ | }, |
||
+ | "description": "Notizen generieren" |
||
+ | } |
||
+ | </templatedata></noinclude> |
Latest revision as of 23:20, 14 February 2022
Notizen überall und für jeden.
Die Icons und das Stylesheet wurden erfolgreich aus mediawiki importiert.
Verwendung
{{Note | Vorsicht! Das ist eine Notiz | warning }}
Vorsicht! Das ist eine Notiz
Die Notizen lassen sich auch inline setzen:
* Meine * tolle * {{Note | Hinweis | inline=1 }} * Liste
- Meine
- tolle
- Hinweis
- Liste
Typen
Es gibt auch lustige Farben und Bilder (type
Parameter)
(leer)
info
reminder
idea
warning
warn
error
Notizen generieren
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 text | Hinweistext | Content | required |
Type | 2 type | Art
| String | optional |
Inline | inline | no description
| Boolean | optional |
Type | type 2 | Art
| String | optional |
Text | text 1 | Hinweistext | Content | required |