Drinking & Dragons

Difference between revisions of "Template:Category Page List"

From Drinking and Dragons
Line 1: Line 1:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
This template renders a list of pages in a Category as a [https://getbootstrap.com/components/#list-group List Group].
This template renders a list of pages in a Category as a [https://getbootstrap.com/components/#panels Panel].
* '''header''' is optional.
* '''header''' is optional.
* '''category''' is the Category, <code>Wizardoest:Character Build</code>
* '''category''' is the Category, <code>Wizardoest:Character Build</code>
Line 8: Line 8:


== Template ==
== Template ==
Copy, paste, and edit the following to use this template.
<pre>
<pre>
{{Category Page List
{{Category Page List
Line 16: Line 18:
== You can ignore the errors found below ==
== You can ignore the errors found below ==
It is because the code that outputs the template doesn't have default values.
It is because the code that outputs the template doesn't have default values.
__NOTOC__
</noinclude>
</noinclude>


<div class="panel panel-default">
<div class="panel panel-default">
{{#if:{{{header}}}|<div class="panel-heading">{{{header}}}</div>|}}
{{#if:{{{header}}}|<div class="panel-heading"><h3 class="panel-title">{{{header}}}</h3></div>|}}
   <div class="panel-body">
   <div class="panel-body">
{{#tag:DynamicPageList|
{{#tag:DynamicPageList|

Revision as of 14:41, 12 May 2016

Usage

This template renders a list of pages in a Category as a Panel.

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

Further details at https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)#Templates.

Template

Copy, paste, and edit the following to use this 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!