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.

Difference between revisions of "Template:Categorybox/Documentation"

From PCGamingWiki, the wiki about fixing PC games
m (added stuff from the documentation template)
m (changed to T)
Line 1: Line 1:
This is an automated template in the likes of [[Template:Seriesbox]] that creates a floating list of member pages of a category.
+
This is an automated template in the likes of {{T|Seriesbox}} that creates a floating list of member pages of a category.
  
 
'''Real-world examples'''
 
'''Real-world examples'''
Line 5: Line 5:
  
 
'''Related templates'''
 
'''Related templates'''
* [[Template:Categorybox]] - Automated template for use with defined categories.
+
* {{T|Categorybox}} - Automated template for use with defined categories.
* [[Template:Categorybox/custom]] - Custom template for use with categories or situations that require manual definition (functions more similar to [[Template:Seriesbox]]).
+
* {{T|Categorybox/custom}} - Custom template for use with categories or situations that require manual definition (functions more similar to {{T|Seriesbox}}).
* [[Template:Categorybox/row]] - Row template used by both [[Template:Categorybox]] and [[Template:Categorybox/custom]].
+
* {{T|Categorybox/row}} - Row template used by both {{T|Categorybox}} and {{T|Categorybox/custom}}.
  
 
'''Syntax'''
 
'''Syntax'''

Revision as of 14:11, 14 March 2020

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.

Usage

  • {{Categorybox|Graphics API}} creates the right-aligned sidebar here below, by querying Category:Graphics API.
Graphics API

List of Direct3D 10 games
List of Direct3D 11 games
List of Direct3D 12 games
List of DirectDraw games
List of Direct3D 2-7 games
List of Direct3D 8 games
List of Direct3D 9 games
List of Direct3D 9Ex games
List of Glide games
List of Mantle games
List of Metal games
List of OpenGL games
List of Vulkan games
List of WinG games


  • {{Categorybox|Games in pre-alpha state|Example #2}} adding a second parameter will set that text as a custom title.
Pre-Alpha state
No pages meet these criteria.