« Paramétrage Kono/Extension/DynamicPageList » : différence entre les versions

Aller à la navigation Aller à la recherche
 
Ligne 30 : Ligne 30 :


== Exemple d'utilisation ==
== Exemple d'utilisation ==
=== Exemple type ===
<source>
<source>
<DynamicPageList>
<DynamicPageList>
Ligne 48 : Ligne 50 :
</source>
</source>


=== Exemple, liste des articles de la catégorie "Logiciel installé" ===
<source>
<DynamicPageList>
category            = Logiciel installé
ordermethod          = sortkey
order                = ascending
</DynamicPageList>
</source>
{{Début de colonnes|nombre=5}}
<DynamicPageList>
<DynamicPageList>
category            = Logiciel installé
category            = Logiciel installé
Ligne 53 : Ligne 65 :
order                = ascending
order                = ascending
</DynamicPageList>
</DynamicPageList>
{{Fin de colonnes}}


== Voir aussi ==
== Voir aussi ==

Dernière version du 16 septembre 2025 à 19:02

DynamicPageList ajoute l'accès à un formulaire de contact en pied de chaque page du wiki.

Généralité

Source

MediaWiki, extension DynamicPageList :

Paramétrage

Ajouter les paramètres suivants au fichier de configuration du wiki LocalSettings.php, pour ajouter cette fonctionnalité :

wfLoadExtension( 'DynamicPageList' );

Modifier les variables suivantes pour personnaliser l'extension :

# Configuration variables. Warning: These use DLP instead of DPL
# for historical reasons (pretend Dynamic list of pages)
$wgDLPmaxCategories = 6;                // Maximum number of categories to look for
$wgDLPMaxResultCount = 200;             // Maximum number of results to allow
$wgDLPAllowUnlimitedResults = false;    // Allow unlimited results
$wgDLPAllowUnlimitedCategories = false; // Allow unlimited categories
// How long to cache pages using DPL's in seconds. Default to 1 day. Set to
// false to use the normal amount of page caching (most efficient), Set to 0 to disable
// cache altogether (inefficient, but results will never be outdated)
$wgDLPMaxCacheTime = 60*60*24;          // How long to cache pages in seconds

Exemple d'utilisation

Exemple type

<DynamicPageList>
category             = foo
count                = 20
namespace            = file
addfirstcategorydate = ymd
imagewidth           = 70
galleryshowfilesize  = yes
galleryshowfilename  = yes
imagesperrow         = 7
gallerycaption       = Galleries!
ordermethod          = sortkey
order                = ascending
mode                 = gallery
offset               = 12
</DynamicPageList>

Exemple, liste des articles de la catégorie "Logiciel installé"

<DynamicPageList>
category             = Logiciel installé
ordermethod          = sortkey
order                = ascending
</DynamicPageList>

Voir aussi

  •