Drinking & Dragons

Template:Category Page List: Difference between revisions

From Drinking and Dragons
No edit summary
No edit summary
Line 15: Line 15:
You may ignore any errors that you see below. It is because the code that outputs the template doesn't have default values.
You may ignore any errors that you see below. It is because the code that outputs the template doesn't have default values.
</noinclude>
</noinclude>
<ul class="list-group">
This is the category: {{{category}}}
{{#if: {{{header}}} | <li class="list-group-item"><strong>{{{header}}}</strong></li>|empty }}
 
This is the header: {{{header}}
<DPL>
<DPL>
category={{{category}}}
category={{{category}}}
format  = ,\n<li class="list-group-item">[[%PAGE%|%TITLE%]]</li>,,
format  = ,\n [[%PAGE%|%TITLE%]],,
</DPL>
</DPL>
</ul>

Revision as of 21:11, 12 May 2016

Usage

This template renders a list of pages in a Category as a List Group.

  • header is optional.
  • category is the Category, Wizardoest:Character Build

Template

{{Category List as List Group
|header=Wizardoest's PCs
|category=Wizardoest:Character Build}}

Errors on this page

You may ignore any errors that you see below. It is because the code that outputs the template doesn't have default values.

This is the category: {{{category}}}

This is the header: {Template:Header

Extension:DynamicPageList (DPL), version 3.3.4: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants