Vorlage:Mbox/Doku: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
imported>Obradovic Goran
imported>Davidgothberg
(Mention that {{ombox}} now has small style, and added a "See also" link to {{fmbox}}.)
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 16: Zeile 18:


This template optionally takes the "demospace" parameter as described at {{tl|namespace detect}}.
This template optionally takes the "demospace" parameter as described at {{tl|namespace detect}}.
(This documentation will be extended within some days.)


=== Parameters ===
=== Parameters ===
Zeile 29: Zeile 29:
| 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]]
| style = CSS value
| style = CSS values
| textstyle = CSS value
| textstyle = CSS values
| text  = The message body text.  
| text  = The message body text.  
| small = {{{small|}}} / yes
| small = {{{small|}}} / yes
Zeile 39: Zeile 39:
</pre>
</pre>


Note: The small parameters only have effect when the template is on a talk page. For documentation on the small parameters see {{tl|tmbox}}.
Note: The small parameters only have effect when the template is on a talk page or an "other" page. For documentation on the small parameters see {{tl|tmbox}} or {{tl|ombox}}.


=== See also ===
=== See also ===
Zeile 50: Zeile 50:
* {{tl|ombox}} – For other pages message boxes.
* {{tl|ombox}} – For other pages message boxes.
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
* {{tl|fmbox}} – For header and footer message boxes.


<includeonly>
<includeonly>

Version vom 16. September 2008, 14:37 Uhr

This is the {{mbox}} or multi namespace message box meta-template.

This meta-template is used to build message box templates that are used on several types of pages and thus need to change style depending on what page they are used on. Based on page type detected it uses one of {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} and {{ombox}}.

Note that this template should only be used for message boxes that really need to adapt their style. Most message boxes do not need this and should use one of {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} or {{ombox}} directly. Using those templates directly means that your template will look the same on its template page and at any other place you show it, which makes it clear on what kind of pages it is supposed to be used. It also gives you access to any extra features those templates offer, and it saves some server load.

Usage

(This documentation will be extended within some days.)

This template takes the same parameters as {{ambox}} and {{imbox}} etc. See full documentation there.

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 {{namespace detect}}.

Parameters

List of all parameters:

{{mbox
| demospace = {{{demospace|}}} / main / talk / image / category / other
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS values
| textstyle  = CSS values
| text  = The message body text. 
| small = {{{small|}}} / yes
| smallimage = none / [[Image:Some image.svg|30px]]
| smallimageright = none / [[Image:Some image.svg|30px]]
| smalltext  = A shorter message body text.
}}

Note: The small parameters only have effect when the template is on a talk page or an "other" page. For documentation on the small parameters see {{tmbox}} or {{ombox}}.

See also

There are several meta-templates in the mbox family:

  • {{ambox}} – For article message boxes.
  • {{tmbox}} – For talk page message boxes.
  • {{imbox}} – For image page message boxes.
  • {{cmbox}} – For category message boxes.
  • {{ombox}} – For other pages message boxes.
  • {{mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
  • {{fmbox}} – For header and footer message boxes.