Икона за документација Документација за предлошка[преглед] [уреди] [историја] [превчитај]

Ова е {{mbox}} или метапредлошка multi namespace message box.

Овој метапредлошка се користи за создавање на предлошки кои се користат во неколку типови на страници и имаат потреба да го променат својот стил во зависност на која страница се користат. Во зависност од детектираниот тип на страница оваа предлошка се користи со еден од следниве предлошки {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} и {{ombox}}.

Да напоменеме дека оваа предлошка треба да се користи за испишување на пораки за кои навистина има потреба да го променат својот стил. Повеќето пораки немаат потреба за ова и во тој случај треба да се користи некој од следниве предлошки: {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} или {{ombox}}. 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.

Начин на користење уреди

Оваа предлошка ги има истите параметри како и предлошките {{ambox}}, {{imbox}}, .... Погл. целосна докуметација за нив.

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}}.

(This documentation will be extended within some days.)

Параметри уреди

Листа на сите параметри:

{{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 value
| textstyle = CSS value
| 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. For documentation on the small parameters see {{tmbox}}.

Поврзано уреди

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.