Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen

Updating the doc with the new "type=warning".
imported>Davidgothberg
(Adding description of the new "id" parameter. And adding "See also" {{dmbox}}.)
imported>Davidgothberg
(Updating the doc with the new "type=warning".)
Zeile 42: Zeile 42:
=== Footer and header message box types ===
=== Footer and header message box types ===


The following examples use different '''type''' parameters but use no image parameters thus they use the default image.
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
 
{{fmbox
| type = warning
| text = type=<u>warning</u> – Warning notices such as [[MediaWiki:Revision-info]] and [[MediaWiki:Protectedpagewarning]]. <br /> Note: What colours this type should have is still being discussed at the [[Template talk:Fmbox#New type?|talk page]].
}}


{{fmbox
{{fmbox
Zeile 48: Zeile 53:
| text = type=<u>editnotice</u> – Transparent background for [[Wikipedia:Editnotice|editnotices]].
| text = type=<u>editnotice</u> – Transparent background for [[Wikipedia:Editnotice|editnotices]].
}}
}}
{{fmbox
{{fmbox
| type = system
| type = system
Zeile 89: Zeile 95:
<pre>
<pre>
{{fmbox
{{fmbox
| type  = system / editnotice
| type  = system / editnotice / warning
| image = none / [[Image:Some image.svg|40px]]
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
Zeile 104: Zeile 110:


'''image'''
'''image'''
:'''No parameter''' = If no '''image''' parameter is given the template uses its default 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:  
:'''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>
::<code><nowiki>image = [[Image:User-info.svg|40px]]</nowiki></code>
Anonymer Benutzer