This page will give a basic explanation about the Extension:DynamicPageList (DPL) and the use of it on this wiki.
Basic Info[]
DynamicPageList3 (DPL/DPL3) is a powerful MediaWiki extension that can generate lists of pages, and/or certain data and statistics gathered from them, for display in a wiki page. DPL lists are automatically updated whenever said data changes.[1]
What Extension:DynamicPageList can do:
- Create a list of all page in a category.
- The data displayed may be selected and sorted based on factors like author, namespace, date, name pattern, usage of templates, or references to other articles
- An example would be the long list under "Pages Using Extension:DPL" on this page.
- Find and display images in a category as seen here.
- Collect information from another page or template and display this on a page. For example: Template:Card List with the backstage story.
This extension has a tons of different functions, but it takes a while to understand how it works and how to fix the small bugs (if you occur any).
The Usage of DPL on Various Pages and Templates[]
I will explain some of the parameters used on the various pages, but a full list can be found here.
Character's Gallery and Card pages[]
The code:
{{#dpl:
|category = Masumi Usui Card images
|titlematch=Masumi Usui N%
|ordermethod=sortkey
|order = descending
|mode=userformat
|format=,²{Portimage¦file=%TITLE%¦size=medium}²
|rowcolformat=width=100%
|allowcachedresults=true
}}
Notes:
- titlematch refers to all files named Masumi Usui N
- By adding a '%' symbol at the end will output all pages (regardless of namespace) that start with "Masumi Usui N"
- By adding a '%' symbol at the start and at the end of the word, will output all pages that contains "Masumi Usui N" somewhere in the title. Say if the file was named Standing Rehearsal Masumi Usui N Comedy.png it would be shown on the page.
- By adding a '%' symbol at the end will output all pages (regardless of namespace) that start with "Masumi Usui N"
- ordermethod means how the list is ordered. In this case it is by "sortkey", meaning alphabetically ordered.
- mode=userformat leaves output control completely to the user;
- This is the main parameters for the next two parameters (format, rowcolformat). This one might be a bit tricky to understand, but what it does is that it leaves full control, for formating, to the user.
Template:Card List[]
This code is used on the Character's Story pages. The code:
[[{{{Character}}} {{{Rarity}}} 【{{{Card Name}}}】/Backstage Story|{{#dpl:title= {{{Character}}} {{{Rarity}}} 【{{{Card Name}}}】|include={Card Page}:backstage}}]]
Notes
- This is just a link where only the backstage story name will be displayed, once the {{{Character}}} {{{Rarity}}} 【{{{Card Name}}}】is filled out.
Example:
- Here, the DPL will search the Template:Card Page used on the page; Citron N 【Suit & Tie】, and look for the parameter; backstage.
[[Citron N 【Suit & Tie】|{{#dpl:title= Citron N 【Suit & Tie】|include={Card Page}:backstage}}]]
Would result in: Eclectic Improv
Template:Limited Tryouts Preview/Card[]
This code is used on the event pages under the Actor's that gives bonuses. It displays the cards in the associated tryouts. The code:
{{Card Icon
|Character={{#dpl:title={{{1|}}}|include={Event Paired Tryout Page}:character2}}
|Rarity={{#dpl:title={{{1|}}}|include={Event Paired Tryout Page}:rarity2}}
|Card Title={{#dpl:title={{{1|}}}|include={Event Paired Tryout Page}:card title2}}
}}
Notes
- It uses the same pattern as in the explanation for the Template:Card List.
Example:
- Here, the DPL will search the Template:Event Paired Tryout Page on the Wonderful Ramen Tryouts and include the parameter; character2
{{Card Icon
|Character={{#dpl:title=Wonderful Ramen Tryouts|include={Event Paired Tryout Page}:character2}}
|Rarity={{#dpl:title=Wonderful Ramen Tryouts|include={Event Paired Tryout Page}:rarity2}}
|Card Title={{#dpl:title=Wonderful Ramen Tryouts|include={Event Paired Tryout Page}:card title2}}
}}
Would result in:
Pages Using Extension:DPL[]
There are 2 Pages in total:
- ↑ From Gamepedia Help Wiki