Template:Image display by category/doc
Jump to navigation
Jump to search
This template queries categories using DPL to produce a list of images that fit that query and displays them in a view. This template specifically looks at categories of pages and files.
For a template that produces a list of images that fit a query and then trims part of the title of the page in the results, see {{Image display by title}}.
Syntax
{{Image display by category
|Image Category
|and = Additional category of images to display: Items that are apart of both Category 1 AND Category 2. (optional)
|or = Additional category of images to display: Items that are apart of either Category 1 OR Category 2. (optional)
|titlematch = If the user wants to match part of a title. Use % as wild cards. (optional)
|nottitlematch = If the user wants to pull pages that don't have something in the title. Use % as wild cards. (optional)
|not = Do not display images in this category: Items that are apart of Category 1, but not Category 2. (optional)
|namespace = If the user wants to pull images based on categories in a different namespace. This will most commonly be "File" namespace) (optional)
|width = width of the images default is 50. This is in pixels. (optional)
|upcoming = If this data point is true, the results will include items that are upcoming, and not yet in the live version of the game.
}}
Examples
Namespace: File
{{Image display by category|Spouse rooms|namespace=File|width=200}}
Store bought pets
{{Image display by category|Pets|and=Purchasable items|width=50p}
There are no items that meet this criteria.
DLC pets
{{Image display by category|Pets|and=DLC|width=50}}