Wikibooks:Popup di navigazione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Emc2 (discussione | contributi)
Emc2 (discussione | contributi)
Riga 86:
*tieni premuto il tasto shift per aggiustare la posizione del popup
 
== ConfigurationConfigurazione (optionalopzionale) ==
=== ChangingCambiare thel'aspetto appearancedei of your popupspopup ===
 
Puoi cambiare l'aspetto dei popup tramite il tuo file [[Cascading Style Sheets|CSS]].
By editing your user [[Cascading Style Sheets|CSS]] file, you can change the appearance of the popups. Your user CSS file has exactly the same name as the javascript file, but with "css" instead of "js" at the end. So for most people, the file to edit is [[Special:Mypage/monobook.css|monobook.css]].
Il tuo file CSS ha esattamente lo stesso nome del file javascript, con "css" invece di "js" alla fine. Quindi, per la maggior parte delle persone, il file da modificare è [[Special:Mypage/monobook.css|monobook.css]].
 
Quello che segue è un esempio che presenta un popup arancione con un bordo e cambia il font in uso. Il popup avrà un aspetto abbastanza stupido, ma è una dimostrazione del tipo di cose che si possono fare con un po' di voglia.
Here is an example which gives an orange-flavoured popup with a border and changes the font used. This makes the popups looks pretty silly, but it shows the sort of thing you can do if you feel like it.
 
<pre>
Line 102 ⟶ 103:
</pre>
 
=== OptionsOpzioni ===
 
ThereCi aresono somealcune optionsopzioni thatche youpuoi can setpersonalizzare. To doPer sofarlo, editmodifica youril usertuo file javascript file (suchad asesempio [[Special:Mypage/monobook.js|monobook.js]]) and add ae lineagigungi ofuna thelinea formdel tipo
:<tt>''optionopzione'' = ''valuevalore'';</tt>
 
wheredove <tt>''optionopzione''</tt> ande <tt>''valuevalore''</tt> aresono chosenscelti fromdalla thetabella table belowseguente. ForPer exampleesempio, toper preventevitare allogni downloadingtipo anddi turndownload one adminmostrare linksi link per amministratori, youavrai needbisogno somethingdi likeuna thiscose indel yourgenere javascriptnel tuo file javascript:
 
<pre>
// [[:en:User:Lupin/popups.js]] - pleasesi prega di includeaggiungere thisquesta linelinea
 
 
document.write('<script type="text/javascript" src="'
+ 'http://it.wikipedia.org/w/index.php?title=Utente:Emc2/strings-it.js'
+ '&action=raw&ctype=text/javascript"></script>');
 
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
simplePopups=true;
Line 123 ⟶ 129:
|colspan=3|<center>'''Configuration options'''</center>
|-
!Opzioni
!Option
!ValuesValori*
!Descrizione
!Description
{{/General options}}
{{/Edit summary options}}
Line 133 ⟶ 139:
|}
 
<nowiki>*</nowiki>DefaultI valuesvalori arepredefiniti listedsono elencati in boldgrassetto
 
Potrebbero essere aggiunte altre opzioni, e le richieste di una maggiore flessibilità di configurazione sono più che benvenute.
More options may be added, and requests for more configurability are welcome.
 
=== Advanced customization ===