Plantilia:Cmbox/dok

Manipud iti Wikipedia, ti nawaya nga ensiklopedia
Dagiti meta plantilia
ti kahon ti mensahe
plantiliakonteksto
{{Ambox}}artikulo
{{Cmbox}}kategoria
{{Imbox}}ladawan
{{Tmbox}}tungtungan
{{Fmbox}}sakaanan / paulo
{{Ombox}}dadduma a pampanid
{{Mbox}}automatiko a maduktalan
{{Asbox}}pungol nga artikulo
{{Dmbox}}panangilawlawag

Daytoy ti {{cmbox}} wenno meta plantilia ti kahon ti mensahe ti kategoria.

Daytoy ket naus-usar iti panagaramid kadagit plantilia ti kahon ti mensahe ara kadagiti panid ti kategoria. Daytoy ket mangited kadagiti nadumaduma a maris, agusar kadagiti kasisigud a ladawan no awan ti maited a parametro ti ladawan, ken adda pay dagiti dadduma a langa.

Daytoy a plantilia ket gangani a kapada ti {{ambox}} ken agusar kadagiti isu met laeng a parametro.

Panagusar[urnosen ti taudan]

Kas pagarigan ti nalaka a panagusar:

{{cmbox | text = Linaon a teksto.}}


Narikut a kaspagarigan:

{{cmbox
| type      = style
| image     = [[File:Emblem-question-yellow.svg|40px]]
| style     = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = Ti teksto ti bagi ti mensahe.
}}


Dagiti kita ti kahon ti mensahe ti kategoria[urnosen ti taudan]

Dagiti sumaganad a kas pagarigan ket agusar kadagiti sabali a parametro ti type ngem saan nga agusar kadagiti parametro ti ladawan, isu nga agusarda kadagiti kasisigud a ladawan para iti tunggal maysa a kita.


Dadduma a ladladawan[urnosen ti taudan]

Dagiti kasisigud a ladawan a maipakita iti ngato ket kaaduan a pangpalaka. Iti kaaduan dagiti kaso nasaysayaat a maitutop ti agusar kadagit inaisangayan a ladawan. Dagitoy a kas pagarigan ket agusar ti parametro ti image tapno mainaganan ti sabali a ladawan imbes a dagiti kasisigud a ladawan.


Espesial[urnosen ti taudan]

Adda met dagiti dadduma a kombinasion ti parametro.


Dagiti parametro[urnosen ti taudan]

List of all parameters:

{{cmbox
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| class = Ti naiduma a klase ti CSS tapno maipakat iti kahon
| style = Dagiti pateg ti CSS
| textstyle = Dagiti pateg ti CSS
| text  = Ti teksto ti bagi ti mensahe.
}}

type

If no type parameter is given, the template defaults to type notice. That means it gets a blue background.

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 is usually about right depending on the image height-to-width ratio (but the message box can handle images of any size).
For example: image = [[File:Sub-arrows.svg|40px]]
none = Means that no image is used.

imageright

No parameter = If no imageright parameter is given, no image is shown on the right side.
An image = Should be an image with usual wiki notation. 40px - 50px width is usually about right depending on the image height-to-width ratio (but the message box can handle images of any size).
For example: imageright = [[File:Nuvola apps bookcase.png|40px]]
Anything = Any other object that you want to show on the right side.

style

An optional CSS value used by the entire message box table. Without quotation marks " ".
For example: style = margin-bottom: 0.5em;

textstyle

An optional CSS value used by the text cell.
For example: textstyle = text-align: center;

text

The message body text.


Dagiti teknikal a salaysay[urnosen ti taudan]

If you need to use special characters in the text parameter then you need to escape them like this:

{{cmbox
| text  = <div>
Equal sign = and a start and end brace { } work fine as they are. 
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. 
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}


This template uses the cmbox CSS classes in MediaWiki:Common.css for most of its looks, thus it is fully skinnable.

Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use parser functions and special characters in parameters.

The default images for this meta-template are in PNG format instead of SVG format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for SVG images. The PNG images here have hand-optimised transparent background colour so they look good in all browsers. Note that SVG icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.

For more technical details see the tungtungan a panid. Since this template works almost exactly like the other mboxes, their talk pages and related pages might also contain more details (see the Kitaen pay ti paset dita baba).

Kitaen pay[urnosen ti taudan]

Adda dagiti nadumaduma a meta-plantilia iti pamilia ti mbox :

  • {{ambox}} – Para kadagiti kahon ti mensahe ti artikulo.
  • {{cmbox}} – Para kadagiti kahon ti mensahe ti kategoria.
  • {{imbox}} – Para kadagiti kahon ti mensahe ti papeles (ladawan).
  • {{mbox}} – Adda iti panagduktal ti nagan ti espasio, para kadagiti kahon ti mensahe nga inus-usar kadagiti nadumaduma a kita ti panid ken isunga makasapul nga agbaliw ti estilo depende iti panid a nakausaranna.
  • {{ombox}} – Para kadagiti kahon ti mensahe ti dadduma a pampanid.
  • {{tmbox}} – Para kadagiti kahon ti mensahe ti tungtungan a panid.

Asideg a mainaig kadagiti meta-plantilia:

  • {{asbox}} – Para kadagiti kahon ti mensahe ti pungol nga artikulo.
  • {{dmbox}} – Para kadagiti kahon ti mensahe ti panangilawlawag ken naiyasentar a pagsurotan.
  • {{fmbox}} – Para kadagiti kahon ti mensahe ti paulo ken baba.
  • Dagiti baw-ing − no adda, dagiti sabali a nagan daytoy a plantilia a mabalin a mausar