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

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
Nessun oggetto della modifica
Riga 28: Riga 28:
}}</nowiki>
}}</nowiki>
Si possono anche cercare pagine ''senza'' categoria, specificando come categoria <code><nowiki>_none_</nowiki></code>. ''Non basta'' lasciare il parametro vuoto, ciò non produrrà alcun risultato.
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 ====
==== and/or ====
Riga 42: Riga 42:


<nowiki>{{#dpl:
<nowiki>{{#dpl:
| category = vattelapesca|minchiate|abominii
| category = vattelapesca&minchiate&abominii
}}</nowiki>
}}</nowiki>
Riga 57: Riga 57:
Questa cerca le pagine che sono in ''categoria:vattelapesca'' '''e''' anche in almeno una fra ''categoria:minchiate'' o ''categoria:abominii''.
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.
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 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)
* A '-' means that the categories listed in that statement are NOT allowed to appear as headings in the output (but all others)
Riga 66: Riga 66:
Notes:
Notes:


If you want to use magic words like <nowiki> {{CURRENTMONTHNAME}}, {{CURRENTDAY}}, {{CURRENTYEAR}} </nowiki> etc in the category name, you must use the parser function syntax variant.
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 ===
=== categorymatch ===