Vorlage:Cmbox/Doku: Unterschied zwischen den Versionen
imported>Davidgothberg (Copying and adapting doc from ambox. Intermediate save.) |
imported>Davidgothberg (More documentation. Ouch, only found two other images both of move type for the "Other images" examples. Intermediate save.) |
||
Zeile 58: | Zeile 58: | ||
{{cmbox | {{cmbox | ||
| type = content | | type = content | ||
| text = content | | text = type=<u>content</u> – Major warnings and problems, such as {{tl|CategorisationDisputedPeople}}. | ||
}} | }} | ||
{{cmbox | {{cmbox | ||
| type = style | | type = style | ||
| text = style | | text = type=<u>style</u> – Minor warnings and problems, such as {{tl|popcat}}. | ||
}} | }} | ||
{{cmbox | {{cmbox | ||
| type = notice | | type = notice | ||
| text = notice | | text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. | ||
}} | }} | ||
{{cmbox | {{cmbox | ||
| type = move | | type = move | ||
| text = move | | text = type=<u>move</u> – Move, merge and split messages and proposals, such as {{tl|CatDiffuse}} and {{tl|categoryredirect}}. | ||
}} | }} | ||
{{cmbox | {{cmbox | ||
| type = protection | | type = protection | ||
| text = protection | | text = type=<u>protection</u> – Protection templates such as {{tl|pp-semi-protected}} when shown on a category page. | ||
}} | }} | ||
==== Other images ==== | |||
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the '''image''' parameter to specify an image other than the default images. | |||
{{cmbox | |||
| type = move | |||
| image = [[Image:Sub-arrows.svg|40px]] | |||
| text = type = move <br> image = <nowiki>[[Image:Sub-arrows.svg|40px]]</nowiki> <br> This image can be used for {{tl|verylarge}}. | |||
}} | |||
{{cmbox | |||
| type = move | |||
| image = [[Image:Redirect arrow.svg|52px]] | |||
| text = type = move <br> image = <nowiki>[[Image:Redirect arrow.svg|52px]]</nowiki> <br> This image is used for {{tl|categoryredirect}}. | |||
}} | |||
=== Technical details === | === Technical details === |
Version vom 9. Mai 2008, 20:55 Uhr
Dies ist eine nachgeordnete Seite der Dokumentation von Vorlage:Cmbox. Sie enthält Informationen zur Verwendung, Kategorisierung und zu anderem Inhalt, der nicht Bestandteil der originalen Vorlage-Seite ist. |
This is the {{cmbox}} or category message box meta-template.
It is used to create message box templates for category pages, such as {{CatDiffuse}} etc. It offers several different colours, uses default images if no image parameter is given and it has some other features.
This template works exactly like {{ambox}} and uses the same parameters, see full documentation there.
Suggested style standard
The styles of category space message boxes and the usage of this template is currently being standardised and discussed on the talk page of this template. Thus don't use this meta-template for real category message boxes yet, but feel free to use it for testing.
When this template is used to build actual category message boxes they should contain the same (long) texts as before, with links to explanations and they can use more specific images than the default images shown here.
Usage
Simple usage example:
{{cmbox | text = Some text.}}
Some text. |
Complex example:
{{cmbox | type = style | image = [[Image:Emblem-question-yellow.svg|38px]] | style = width: 400px; color: red; font-weight: bold; font-style: italic; | text = The message body text. }}
The message body text. |
Category message box types
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
type=speedy – Speedy deletion templates such as {{db-catempty}}. |
type=delete – Deletion templates such as {{cfd}}. |
type=content – Major warnings and problems, such as {{CategorisationDisputedPeople}}. |
type=style – Minor warnings and problems, such as {{popcat}}. |
type=notice – Notices and messages of any kind, both permanent and temporary. |
type=move – Move, merge and split messages and proposals, such as {{CatDiffuse}} and {{categoryredirect}}. |
type=protection – Protection templates such as {{pp-semi-protected}} when shown on a category page. |
Other images
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.
type = move image = [[Image:Sub-arrows.svg|40px]] This image can be used for {{verylarge}}. |
type = move image = [[Image:Redirect arrow.svg|52px]] This image is used for {{categoryredirect}}. |
Technical details
This template currently uses hard coded styles. Later it will use CSS classes enabling it to be skinned.
See also
- {{ambox}} – The meta-template for article message boxes.
- {{imbox}} – The meta-template for image space message boxes.