Drinking & Dragons

Difference between revisions of "Template:Category Page List"

From Drinking and Dragons
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
== Usage ==
== Usage ==
This template renders a list of pages in a Category as a [https://getbootstrap.com/components/#panels Panel].
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.
Line 15: Line 15:
|category=Wizardoest:Character Build}}
|category=Wizardoest:Character Build}}
</pre>
</pre>
== You can ignore the errors found below ==
It is because the code that outputs the template doesn't have default values.


__NOTOC__
__NOTOC__
</noinclude>
</noinclude>
<div class="panel panel-default">
<div class="panel panel-default">
{{#if:{{{header}}}|<div class="panel-heading"><h3 class="panel-title">{{{header}}}</h3></div>|}}
<div class="panel-heading"><h3 class="panel-title">{{{header}}}</h3></div>
   <div class="panel-body">
   <div class="panel-body">
{{#tag:DynamicPageList|
{{#tag:DynamicPageList|
Line 30: Line 26:
mode = unordered
mode = unordered
}}
}}
  </div>
</div>
</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!