Advanced Search

From MulpWiki
(Redirected from CDPL tutorial)
Jump to: navigation, search

Introduction[edit]

Like any wiki this website has a standard search function, but usually that's only useful if you already know what you're looking for. That is why the articles are also divided into categories (for example nsfw or Twilight Sparkle). However, even with that functionality you can only search for a single category at a time, and you can't change the method of sorting. Long story short, I installed three extensions, one of which I had to program myself, but now you can browse files in a matter similiar to fimfiction or Derpibooru. You can access this feature anytime by clicking Advanced Search on the sidebar to the left.

Usage[edit]

There are four inputs for searching. One that has "Category:" written in front of it, the category input, one that has "Without:" written in front of it, the notcategory input, and two other inputs right beneath that one, which allow you to sort the search results. The category input is blank by default, and if you were to just hit the submit button right now, nothing of interest would happen. By typing in one or more categories into the category input, however, you can specifically show articles that fit those categories. The syntax for doing so is as follows:

Input Result
category Putting in just one category will show all articles in that category.
category1&category2 Combining two categories with a "&" will show all articles that fit both categories.
category1|category2 Combining two categories with a "|" will show all articles that fit either category (non exclusively).

The search result can afterwards be filtered and ordered by changing the value of the lower inputs. Typing any category in one of the notcategory inputs will filter that category from the search results. The inputs for sorting are set to "firstedit" and "descending" by default. This means that unless you change them, the articles will be ordered by time of creation, newest-first. By typing in a different keyword, the ordermethod can be changed, as shown on the table below.

Ordermethod Result
categoryadd Outputs list based on most recent addition to the first category (requires to include one category and one only using 'category' parameter)
counter Outputs list based on the number of times the page has been viewed
size Outputs list based on the size of the article (bytes of wiki text)
firstedit Outputs list based on first edit to the pages (creation)
lastedit Outputs list based on most recent edit to the pages
title Outputs list sorted by article (prefix +) title
titlewithoutnamespace Outputs list sorted by the article name regardless of namespace (ignores "Category:", "Special:", etc)

I didn't manage to add the input fields to the special page, but since it's transmitted through HTML get, you can edit your input in the URL.