Template:Cmbox/man: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
→‎Parametri: proseguo traduzione
→‎Technical details: fine traduzione
Riga 156:
:Il testo del messaggio.
 
=== TechnicalDettagli detailstecnici ===
Se devi usate caratteri speciali nel testo, puoi usare questi caratteri di escape:
If you need to use special characters in the text parameter then you need to escape them like this:
<pre>
{{cmbox
Riga 177:
 
 
Questo template usa classi CSS per il suo aspetto, ed è completamente personalizzabile.
This template uses the cmbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
 
AL suo interno questo metatemplate usa codice HTML invece che il markup wiki per le tabelle. Questo perché nei metatemplate il markup wiki presenta alcuni inconvenienti. Per esempio rende più difficile usare le funzioni parser e i caratteri speciali nei parametri.
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 [[mw:Help:Extension:ParserFunctions|parser functions]] and special characters in parameters.
 
Le immagini di defaulti di questo metatemplate sono in formato PNG invece che in SVG. La ragione principale è che alcuni browser più datati hanno problemi con lo sfondo trasparente che genera Mediawiki con le immagini SVG. Le immagini PNG qui usate sono ottimizzate in modo da essere visualizzate correttamente su qualunque browser. Si noti che le SVG sembrano solo peggiori con i vecchi browser, così vale la pena fare l'ottimizzazione per le icone più utilizzate.
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 [[Template talk:Cmbox|talk page]]. Since this template works almost exactly like the other mboxes, their talk pages and related pages might also contain more details (see the [[#See also|See also]] section below).