Template:Category Page List: Difference between revisions
From Drinking and Dragons
Wizardoest (talk | contribs) m Wizardoest moved page Template:Category List as List Group to Template:Category Page List without leaving a redirect |
Wizardoest (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
== Template == | == Template == | ||
<pre> | <pre> | ||
{{Category List | {{Category Page List | ||
|header=Wizardoest's PCs | |header=Wizardoest's PCs | ||
|category=Wizardoest:Character Build}} | |category=Wizardoest:Character Build}} | ||
</pre> | </pre> | ||
== | == You can ignore the errors found below == | ||
You | It is because the code that outputs the template doesn't have default values. | ||
</noinclude> | </noinclude> | ||
<div class="panel panel-default"> | |||
{{#if:{{{header}}}|<div class="panel-heading">{{{header}}}</div>|}} | |||
<div class="panel-body"> | |||
{{#tag:DynamicPageList| | {{#tag:DynamicPageList| | ||
category = {{{category}}} | category = {{{category}}} | ||
Line 23: | Line 26: | ||
mode = unordered | mode = unordered | ||
}} | }} | ||
</div> | |||
</div> |
Revision as of 21:39, 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
Further details at https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)#Templates.
Template
{{Category Page List |header=Wizardoest's PCs |category=Wizardoest:Character Build}}
You can ignore the errors found below
It is because the code that outputs the template doesn't have default values.
{{{header}}}
Extension:DynamicPageList (DPL), version 3.3.4: Error: You need to include at least one category, or specify a namespace!