Help:DPL/manual

From GW2 Wiki English Mirror
Jump to navigationJump to search

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.

As a basic example, DPL can be used to insert, in a wiki page, an always-current list of all pages of a particular 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, with a variety of custom formatting possibilities.

Usage

Primary DPL module

These sections contain documentation on DPL's primary module, {{#dpl: ... }}. This is the DPL functionality used most often, and has a wide range of powerful options.

Other DPL modules

These sections detail some additional functions provided by the DPL extension.

Example wikicode

Selecting articles

By category
{{#dpl: | category = Asura }}
Recently changed articles
{{#dpl:
| namespace = 
| addeditdate = true
| ordermethod = lastedit
| order = descending
| count = 10
}}

Show article's context or contents

Pages linked from an article
{{#dpl:
| format = ,[[%PAGE%]],<br/>
| ordermethod = none
| linksfrom = Main Page
}}
Images used on an article
{{#dpl:
| imagecontainer = Zojja
| format = ,\n*[[%PAGE%]]\n,
}}

Controlling output

Show templates parameters from an article
{{#dpl:
| title = Help:DPL/manual/page selection
| include = {Help DPL manual parameter}:1:2
}}
Show sections from an article
{{#dpl:
| title = Unending Ocean
| include = #Locations
}}

Complete DPL Manual Table of Contents

Below is the legacy Table of Contents provided as navigation in the original DPL documentation. It is an expansive, cross-referenced list of DPL parameters (which some find daunting and others find helpful). Its links can all be found via the pages listed above, however the table below may be useful to more easily find what you need, especially if you don't know which section your desired functionality might be located in (expand the table below and use your browser's Find In Page feature, usually Ctrl-F).