Template:Note: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly> <templatestyles src="Template:Note/styles.css" /> <div class="note"> Notiz </div> Category:Note </includeonly> <noinclude> </noinclude>") |
mNo edit summary |
||
(15 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> |
||
+ | |info=info |
||
− | <templatestyles src="Template:Note/styles.css" /> |
||
+ | |reminder=reminder |
||
− | <div class="note"> |
||
+ | |idea=reminder |
||
− | Notiz |
||
+ | |warn=warn |
||
− | </div> |
||
+ | |warning=warn |
||
− | [[Category:Note]] |
||
+ | |error=error |
||
− | </includeonly> |
||
+ | |info |
||
− | <noinclude> |
||
+ | }}">{{{1|{{{text|<code>ʕ •ᴥ•ʔ</code>}}}}}}[[Category:Notes]]</div></includeonly><noinclude> |
||
− | </noinclude> |
||
+ | Notizen überall und für jeden. |
||
+ | |||
+ | Die Icons und das [[Template:Note/styles.css|Stylesheet]] wurden erfolgreich aus [https://www.mediawiki.org/wiki/Template:Note mediawiki] importiert. |
||
+ | |||
+ | == Verwendung == |
||
+ | |||
+ | <pre> |
||
+ | {{Note | Vorsicht! Das ist eine Notiz | warning }} |
||
+ | </pre> |
||
+ | |||
+ | {{Note | Vorsicht! Das ist eine Notiz | warning }} |
||
+ | |||
+ | Die Notizen lassen sich auch inline setzen: |
||
+ | |||
+ | <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 |