Drinking & Dragons

Difference between revisions of "Template:Category Page List"

From Drinking and Dragons
m (Wizardoest moved page Template:Category List as List Group to Template:Category Page List without leaving a redirect)
 
(3 intermediate revisions by the same user not shown)
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 the Header at the top of the panel.
* '''category''' is the Category, <code>Wizardoest:Character Build</code>
* '''category''' is the Category that pages are pulled from, e.g. <code>Wizardoest:Character Build</code>


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


== Template ==
== Template ==
Copy, paste, and edit the following to use this template.
<pre>
<pre>
{{Category List as List Group
{{Category Page List
|header=Wizardoest's PCs
|header=Wizardoest's PCs
|category=Wizardoest:Character Build}}
|category=Wizardoest:Character Build}}
</pre>
</pre>


== Errors on this page ==
__NOTOC__
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>
 
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">{{{header}}}</h3></div>
  <div class="panel-body">
{{#tag:DynamicPageList|
{{#tag:DynamicPageList|
category = {{{category}}}
category = {{{category}}}
Line 23: Line 26:
mode = unordered
mode = unordered
}}
}}
</div>
</div>

Latest revision as of 19:38, 12 May 2016

Usage

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

  • header is the Header at the top of the panel.
  • category is the Category that pages are pulled from, e.g. 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}}


{{{header}}}

Extension:DynamicPageList (DPL), version 3.3.4: Error: You need to include at least one category, or specify a namespace!