Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Template:Categorybox

From PCGamingWiki, the wiki about fixing PC games
Revision as of 20:10, 28 April 2020 by Aemony (talk | contribs) (changed parameter two a bit)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Documentation for the above template (sometimes hidden from view).

This is an automated template in the likes of {{Seriesbox}} that creates a floating list of member pages of a category.

Real-world examples

  • The Category:Graphics API have one defined, which is then transcluded unto the various member pages through transclusion using {{:Category:Graphics API}}.

Related templates

Syntax

{{Categorybox|Category Name|Custom Title}}

Parameters

  1. Name of the category to query
  2. Custom title of the sidebar (the category name will be used if left blank).
    • Note that the custom title will still automatically link to the category page.
  3. Custom options, of any of the following:
    • subcategoriesonly - Limits the query to only fetch the actual subcategories defined below a main category. This is used to circumvent the behavior of Semantic MediaWiki of returning pages in subcategories as if they belonged in the parent category itself.

Usage

  • {{Categorybox|Graphics API}} creates the right-aligned sidebar here below, by querying Category:Graphics API.
{{#ask:|format=template|template=Categorybox/row|columns=1|}}
Graphics API


  • {{Categorybox|Games in pre-alpha state|Example #2}} adding a second parameter will set that text as a custom title.
{{#ask:|format=template|template=Categorybox/row|columns=1|}}
Pre-Alpha state