Utente:Wedhro/Sandbox/Aiuto:DPL: differenze tra le versioni

m
Annullate le modifiche di 79.49.42.124 (discussione), riportata alla versione precedente di Wedhro
Nessun oggetto della modifica
m (Annullate le modifiche di 79.49.42.124 (discussione), riportata alla versione precedente di Wedhro)
Etichetta: Rollback
 
(4 versioni intermedie di 2 utenti non mostrate)
Riga 28:
}}</nowiki>
Si possono anche cercare pagine ''senza'' categoria, specificando come categoria <code><nowiki>_none_</nowiki></code> (occhio ai trattini bassi). ''Non basta'' lasciare il parametro vuoto, ciò non produrrà alcun risultato.
 
==== and/or ====
Riga 42:
 
<nowiki>{{#dpl:
| category = vattelapesca|&minchiate|&abominii
}}</nowiki>
Riga 57:
Questa cerca le pagine che sono in ''categoria:vattelapesca'' '''e''' anche in almeno una fra ''categoria:minchiate'' o ''categoria:abominii''.
 
''If [[#ordermethod|ordermethod]]=category,... and [[#headingmode|headingmode]] are enabled, you can restrict the categories you want as headings in the result by preceding the list of categories (specified with the category parameter) with a '+' or '-'. See the example below.
* A '+' means that only the categories listed in that statement are allowed to appear as headings in the output.
* A '-' means that the categories listed in that statement are NOT allowed to appear as headings in the output (but all others)
Riga 66:
Notes:
 
If you want to use magic words like <code><nowiki> {{CURRENTMONTHNAME}}</nowiki></code>, <code><nowiki>{{CURRENTDAY}}</nowiki></code>, <code><nowiki>{{CURRENTYEAR}} </nowiki></code> etc in the category name, you must use the parser function syntax variant.
 
To prevent a DPL query from returning huge output (or consuming too many resources) there are some
[[#Extension_options|configuration variables]] in the source code of the extension module like <code>$wgDPL2MaxCategoryCount</code>, <code>$wgDPL2AllowUnlimitedCategories</code>, <code>$wgDPL2MinCategoryCount</code>.''
 
 
=== categorymatch ===
 
È simile a [[#category]] ma invece di cercare in specifiche categorie verifica che la pagina compaia ''almeno in una'' delle categorie che hanno uncerte certo tiposeguenz di caratteri nel nome. Questo richiede l'uso del segno percentuale <code><nowiki>%</nowiki></code> da usare come "jolly" e rappresenta un qualunque numero di caratteri qualunquequalsiasi. Ad esempio "ca%ata" troverà sia "ca'''zz'''ata" che "ca'''ga'''ta". Ciò è utilissimo per fare ricerche in tante categorie simili senza doverle scriverscrivere una per una, cosa che toglie troppo tempo alla pulizia dell'ombelico.
 
La barretta verticale <code><nowiki>|</nowiki></code> anche qui è usata come '''OR'''.
Line 83 ⟶ 79:
}}</nowiki>
 
Troverà la pagine in ''categoria:vattelapesca'', ''categoria:pesca'', ''categoria:pescatori'', ''categoria:minchiate'', oppureo ''categoria: minchie enormi''.
 
===categoryregexp===