Zum Inhalt springen

Vorlage:Mbox/Doku: Unterschied zwischen den Versionen

Updating the doc since the namespace "Image" has been renamed to "File". And explaining more about the "demospace" parameter.
imported>Davidgothberg
(→‎Parameters: Reverting vandalism by Chumichumz.)
imported>Davidgothberg
(Updating the doc since the namespace "Image" has been renamed to "File". And explaining more about the "demospace" parameter.)
Zeile 10: Zeile 10:


=== Usage ===
=== Usage ===
(This documentation will be extended within some days.)


This template takes the same parameters as {{tl|ambox}} and {{tl|imbox}} etc. See full documentation there.  
This template takes the same parameters as {{tl|ambox}} and {{tl|imbox}} etc. See full documentation there.  
Zeile 17: Zeile 15:
Some of the boxes this template calls only handles images of max 52px width, thus that limitation also applies to this template or you will get ugly padding problems.
Some of the boxes this template calls only handles images of max 52px width, thus that limitation also applies to this template or you will get ugly padding problems.


This template optionally takes the "demospace" parameter as described at {{tl|namespace detect}}.
=== Demospace ===
 
This template optionally takes the "demospace" parameter as described at {{tl|namespace detect}}. That parameter is only for testing and demonstration purposes. If you want to lock your message box to one style then instead use one of the other mboxes directly.
 
Namespace "Image:" was renamed to "File:" on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands "demospace = image" which means the same thing as "demospace = file". But using "demospace = image" is now deprecated.


=== Parameters ===
=== Parameters ===
Zeile 25: Zeile 27:
<pre>
<pre>
{{mbox
{{mbox
| demospace = {{{demospace|}}} / main / talk / image / category / other
| demospace = {{{demospace|}}} / main / talk / file / category / other
| type  = speedy / delete / content / style / notice / move / protection
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[Image:Some image.svg|40px]]
| image = none / [[Image:Some image.svg|40px]]
Zeile 46: Zeile 48:
* {{tl|ambox}} – For article message boxes.
* {{tl|ambox}} – For article message boxes.
* {{tl|tmbox}} – For talk page message boxes.
* {{tl|tmbox}} – For talk page message boxes.
* {{tl|imbox}} – For image page message boxes.
* {{tl|imbox}} – For file (image) page message boxes.
* {{tl|cmbox}} – For category message boxes.
* {{tl|cmbox}} – For category message boxes.
* {{tl|ombox}} – For other pages message boxes.
* {{tl|ombox}} – For other pages message boxes.
Anonymer Benutzer