Vorlage:Tmbox/Doku: Unterschied zwischen den Versionen
Adding more documentation since people are asking about the functionality at the talk page.
imported>Davidgothberg (→Talk page message box types: Added: "Note that the vast majority of talk page message boxes are expected to use the "notice" type and thus will look like before.") |
imported>Davidgothberg (Adding more documentation since people are asking about the functionality at the talk page.) |
||
Zeile 48: | Zeile 48: | ||
Alternative suggestions for these styles might be available at the {{tl|tmbox/sandbox}}. To discuss these boxes and to see or make other examples go to the [[Template talk:Ombox|talk page]]. | Alternative suggestions for these styles might be available at the {{tl|tmbox/sandbox}}. To discuss these boxes and to see or make other examples go to the [[Template talk:Ombox|talk page]]. | ||
=== Usage === | |||
Simple usage example: | |||
<pre> | |||
{{tmbox | text = Some text.}} | |||
</pre> | |||
{{tmbox | text = Some text.}} | |||
Complex example: | |||
<pre> | |||
{{tmbox | |||
| type = style | |||
| image = [[Image:Emblem-question-yellow.svg|40px]] | |||
| style = width: 400px; | |||
| textstyle = color: red; font-weight: bold; font-style: italic; | |||
| text = The message body text. | |||
}} | |||
</pre> | |||
{{tmbox | |||
| type = style | |||
| image = [[Image:Emblem-question-yellow.svg|40px]] | |||
| style = width: 400px; | |||
| textstyle = color: red; font-weight: bold; font-style: italic; | |||
| text = The message body text. | |||
}} | |||
=== Parameters === | |||
List of all parameters: | |||
<pre> | |||
{{tmbox | |||
| type = speedy / delete / content / style / notice / move / protection | |||
| image = none / [[Image:Some image.svg|40px]] | |||
| imageright = [[Image:Some image.svg|40px]] | |||
| style = CSS value | |||
| textstyle = CSS value | |||
| text = The message body text. | |||
}} | |||
</pre> | |||
'''type''' | |||
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a gray border. | |||
'''image''' | |||
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter. | |||
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: | |||
::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code> | |||
:'''none''' = Means that no image is used. | |||
'''imageright''' | |||
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side. | |||
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: | |||
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code> | |||
:'''Anything''' = Any other object that you want to show on the right side. | |||
'''style''' | |||
:An optional [[Cascading Style Sheets|CSS]] value used by the entire message box table. Without quotation marks <code>" "</code>. For example: | |||
::<code>style = margin-bottom: 0.5em;</code> | |||
'''textstyle''' | |||
:An optional [[Cascading Style Sheets|CSS]] value used by the text cell. For example: | |||
::<code>textstyle = text-align: center;</code> | |||
'''text''' | |||
:The message body text. | |||
=== Technical details === | === Technical details === |