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

Difference between revisions of "Template:Categorybox/custom"

From PCGamingWiki, the wiki about fixing PC games
m (changed content to entries to match seriesbox)
m (test)
 
Line 1: Line 1:
<includeonly><table class="pcgwikitable template-categorybox">
+
<includeonly><table class="pcgwikitable template-categorybox" {{#ifeq: {{{style|}}} | full | style="float: inherit"}} >
 
<caption class="template-categorybox-title">{{{title}}}</caption>
 
<caption class="template-categorybox-title">{{{title}}}</caption>
 
{{{entries}}}
 
{{{entries}}}
 
</table></includeonly><noinclude>{{Documentation}}</noinclude>
 
</table></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 15:17, 11 March 2019

Documentation for the above template (sometimes hidden from view).

This is an manual/custom template in the likes of Template:Seriesbox that creates a floating list of member pages. This is best used alongside a manually defined and controlled sidebar on one page that is then transcluded (embedded) into the relevant member pages, same as for Template:Seriesbox.

Real-world examples

Related templates

Syntax

{{Categorybox/custom|title=Title|entries=
{{Categorybox/row|link}}
{{Categorybox/row|link}}
{{Categorybox/row|link}}
}}

Parameters

title= - Title of the sidebar. To make it a link, use regular MediaWiki code such as title=[[Special K]] or title=[[Glossary:Sound|Sound]]

entries= Custom entries, in the form of {{Categorybox/row|link}} for each entry, for example {{Categorybox/row|[[Glossary:Surround sound|Surround sound]]}}

Usage

  • Example 1:
Title
link
link
link
{{Categorybox/custom|title=Title|entries=
{{Categorybox/row|link}}
{{Categorybox/row|link}}
{{Categorybox/row|link}}
}}
  • Example 2:
Sound
Sound
Sound card
Surround sound
{{Categorybox/custom|title=[[:Category:Sound|Sound]]|entries=
{{Categorybox/row|[[Glossary:Sound|Sound]]}}
{{Categorybox/row|[[Glossary:Sound card|Sound card]]}}
{{Categorybox/row|[[Glossary:Surround sound|Surround sound]]}}
}}