Aller au contenu

Talɣa:Ombox/antam

Zɣ Wikipedia

Other pages message box. This template is usually not used directly, but is more often used as a metatemplate to build other templates.

Paramètres du modèle[Modifier les données du modèle]

ParamètreDescriptionTypeÉtat
Text of the boxtext

The text to be displayed inside the box; if you need to use special characters then use <nowiki>{{ombox}}</nowiki>.

Exemple
Hello, I am a box created using <nowiki>{{ombox}}</nowiki>.
Contenuobligatoire
Type of box to displaytype

The type of box that will be displayed (image, border thickness, colour, appearance). Examples from highest priority to lowest: "speedy", "delete", "content", "style", "notice", "move", and "protection".

Valeurs suggérées
speedy delete content style notice move protection
Par défaut
notice
Exemple
notice
Chaînesuggéré
Imageimage

The image to be displayed inside the box. This can be chosen automatically by setting the "type" parameter. Displays on the *left*. This should be given as a file wikilink, just as if you were adding an image on its own, with the size, typically 40–50px.

Exemple
[[File:Some image.svg|40px]]
Contenufacultatif
Image to the rightimageright

The image to be displayed to the *right* of the text. This should be given as a file wikilink, just as if you were adding an image on its own, with the size, typically 40–50px.

Exemple
[[File:Some image.svg|40px]]
Contenufacultatif
CSS style for entire boxstyle

Inline CSS styles, which will be applied to the *entire* box. Without quotation marks " " but with the ending semicolons ;.

Exemple
text-align: center; style = margin-bottom: 0.5em;
Chaînefacultatif
CSS style for texttextstyle

Inline CSS styles, which will only be applied to the text itself. Without quotation marks " " but with the ending semicolons ;.

Exemple
text-align: center; text-color: red;
Chaînefacultatif
Plain external links?plainlinks

Typically, external links have an arrow icon next to them, but in message boxes, this is suppressed by default. Set this to "no" to restore the usual appearance of an external link.

Valeurs suggérées
no
Exemple
no
Inconnufacultatif
Small?small

If set to "yes", the box becomes a small right floating message box. This also makes the default images smaller.

Valeurs suggérées
yes
Exemple
yes
Inconnufacultatif
Small imagesmallimage

A small image to be used. Displays on the left. Only use this parameter if "small" is set. If not set, “image” will be used anyway. Size 30px is about right. “none" = Means that no image is used. This overrides any image fed to image, when "small=yes".

Exemple
[[File:Some image.svg|30px]], none
Inconnufacultatif
Small image to the rightsmallimageright

A small image to be used. Displays on the right. Only use this parameter if "small" is set. If not set, “image” will be used anyway. Size 30px is about right. “none" = Means that no image is used. This overrides any image fed to imageright, when "small=yes".

Exemple
[[File:Some image.svg|30px]]
Contenufacultatif
Shorter textsmalltext

A shorter version of the message body text. Will display if “small=yes". Falls back to the "text" parameter if not used.

Exemple
Hi, I'm a summary!
Contenufacultatif