Articles about Useful Wiki Pages |
Block List • Category Intersection Search • Deletion Log • External Links Search • Internal Links Search • Knowledgeable Members List (Verses) • Knowledgeable Members List (Terms) • Multilingual Members List • Tags Explanation • Wiki Users List |
---|
Introduction
The Dynamic Page List or DPL is a script that allows for the creation of lists of pages using various criteria. For our purposes we will strictly be using it as a replacement for the categories' intersection function to search for pages that belong to certain categories. This can be very useful for content revisions and making versus threads.
WARNING:
- DPL can cause heavy server loads, slowing the entire site down.
- Inserting DPL code into any regular page is strictly forbidden.
- This tool should be strictly limited to specific wiki revision projects and used exclusively by authorized staff members.
- It is essential during certain revisions for category intersection purposes.
- Therefore, it should only be employed within designated personal sandbox pages allocated to each staff member who needs to access it for their revision tasks.
Usage
For example, if you want to find a list of all characters that are Tier 8 in the Naruto verse, you can use the following code:
<DPL>
category = Naruto
category = Tier 8
</DPL>
The above example categories should obviously be replaced by the ones suited to your intentions.
If you want to find a list of characters in the Naruto verse who do not contain the Tier 8 category, you can use the following code instead:
<DPL>
category = Naruto
notcategory = Tier 8
</DPL>
You can list several categories to include or exclude in the above depicted manners.
External Links
Here is the type of code that can be used to detect specific external links in case we want to replace, remove, or edit them.
<DPL>
namespace =
linkstoexternal = %gfycat.com%
count = 500
ordermethod = title
offset = 500
</DPL>
Parameters
Below is a list of all parameters supported by default DPL:
namespace
restricts the articles in the list to only be in one of the given namespaces. Common ones are:User_blog
– user blogs in wikiUser
– sandboxes in wikiTemplate
– templates in wiki- If you don't add anything and keep it empty, it signifies that every page in the wiki has the same content.
category
this query above will output a list of all the pages that are in the category list. You can specify more than one category with the pipe 'notcategory
= those pages that have no categories
mode
will be printed as an ordered list (<ol>) as opposed to the default unordered list (<ul>).
count
controls the number of results that are shown.
offset
shows only a portion of a big result list; typically used in combination with "count="
ordermethod
determines what criterium (resp. criteria) is (resp. are) used to order the list. For instance "title" will display all titles of pages in the order.
notcategory
is like the category parameter, but requires that every page listed not be in a particular category. Unlike in 'category' you cannot combine numerous categories using logical OR in this parameter.
linksto
selects articles which link to at least one of the specified pages.notlinksto
selects articles which do NOT link to any of the specified pages. (don't use it here unless it is extremely important)linkstoexternal
selects articles which contain an external link that matches a given text pattern.
createdby
selects articles which were created by the specified user.
Notes
- Both the DPL cache and the page's server cache must be updated in order for changes to be seen in the DPL lists.
- There is a limit of 500 items that can be displayed by DPL. Any more will require setting the "offset" parameter.
Things to avoid
Please avoid overusing:
- Functions using "
randomcount
"; they can't be cached - Templates that are used site-wide; it creates hidden DPL calls all over the wiki
- Large queries; don't display 500 results when 20 will do the job
- More than one or two queries per page
Resources
- For further information click here.
- For a more comprehensive list of DPL parameters, click here.