Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen

Adding the "Parameters" section.
imported>Davidgothberg
(Adding "Technical details", and doing some box margin testing.)
imported>Davidgothberg
(Adding the "Parameters" section.)
Zeile 1: Zeile 1:
{{fmbox | text = Some text.}}
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Zeile 38: Zeile 37:
}}
}}


=== Parameters ===
List of all parameters:
<pre>
{{imbox
| 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>
'''image'''
:'''No parameter''' = If no '''image''' parameter is given the template uses its default image.
:'''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:User-info.svg|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-top: 1em;</code>
'''textstyle'''
:An optional [[Cascading Style Sheets|CSS]] value used by the text cell. For example:
::<code>textstyle = font-size: 90%; text-align: center;</code>
'''text'''
:The message body text.


=== Technical details ===
=== Technical details ===
Zeile 83: Zeile 118:


</includeonly>
</includeonly>
{{fmbox | text = Some text.}}
Anonymer Benutzer