Plantilla:Caixa lateral/ús
Aquesta és una subpàgina de documentació per a la Plantilla:Caixa lateral Té la informació d'ús, les categories i qualsevol altre contingut que no forma part essencial del codi de la plantilla. |
Aquesta plantilla utilitza una crida a un mòdul de tipus Lua, nom que li ve del llenguatge Lua que utilitza. Per tant, si volguéssiu modificar-la, abans hauríeu d'estar familiaritzats amb aquest llenguatge i les funcions de l'extensió Scribunto. Vegeu com fer proves de plantilles.
Aquesta plantilla utilitza el següent mòdul: |
Aquesta plantilla és una meta-plantilla que es pot fer servir per crear caixes flotants amb una millor presentació.
Utilització
[modifica]Paràmetre (en català) | Paràmetre (en anglès) | Explicació |
---|---|---|
|text= |
text que es mostrarà a la caixa. | |
|imatge= |
|image= |
imatge (o algun altre contingut). |
|imatge_dreta= |
|imageright= |
imatge (o algun altre contingut) que es mostrarà a la dreta de la caixa, en una cel·la diferent de la taula. |
|posició= |
|position= |
si s'especifica esquerra (o left ), situa la caixa a l'esquerra de la pàgina en comptes de a la dreta (que és la posició per defecte). Altre posició és centre (o center ).
|
|estil= |
|style= |
estils a aplicar a la caixa. |
|estil_de_text= |
|textstyle= |
estils a aplicar només a les cel·les amb text. |
|dalt= |
|above= |
contingut que apareixerà en la cel·la de dalt que ocuparà tota l'amplada de la caixa. |
|estil_de_dalt= |
|abovestyle= |
estil a aplicar a la cel·la de dalt. |
|sota= |
|below = |
contingut que apareixerà sota la/es darrera/es cel·la/es, en una nova fila que ocuparà tota l'amplada de la caixa. |
Exemples
[modifica]Sense paràmetres
[modifica]((caixa lateral))
Sols text (d'una plantilla)
[modifica]((caixa lateral |text = ((lorem))))
Dalt
[modifica]((caixa lateral |text = El text del cos |dalt = El text de dalt))
Dalt i imatge_dreta
[modifica]((caixa lateral |text = El text del cos |dalt = El text de dalt |imatge_dreta = [[Fitxer:Bad Title Example.png|30px]]))
Imatge i imatge_dreta
[modifica]((caixa lateral |text = ((center|El text del cos)) |imatge = [[Fitxer:Bad Title Example.png|30px]] |imatge_dreta = [[Fitxer:Bad Title Example.png|30px]]))
Sota
[modifica]((caixa lateral |text = El text del cos |sota = El text de baix))
Sota i imatge_dreta
[modifica]((caixa lateral |text = El text del cos |sota = El text de baix |imatge_dreta = [[Fitxer:Bad Title Example.png|30px]]))
Imatge i text (amb enllaç)
[modifica]((caixa lateral |text = El text del '''cos''' |imatge = [[Fitxer:Bad Title Example.png|32px]]))
Imatge
[modifica]((caixa lateral |imatge = [[Fitxer:PNG transparency demonstration 1.png|100px]]))
Estil
[modifica]((caixa lateral |text = El text del cos |estil = width:100px))
Estil_de_text
[modifica]((caixa lateral |text = El text del cos |sota = El text de baix |dalt = El text de dalt |estil_de_text = color:red))
Estil_de_dalt
[modifica]((caixa lateral|text = El text del cos |sota = El text de baix |dalt = El text de dalt |estil_de_text = color:red |estil_de_dalt = font-weight:bold))
Posició
[modifica]((caixa lateral |text = El text del cos |posició = esquerra))
((caixa lateral |text = El text del cos |posició = centre))
Vegeu també
[modifica]- Per a proves podeu utilitzar ((Caixa lateral/proves)).
- ((mbox))
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.