Drinking & Dragons

Template:Category Page List: Difference between revisions

From Drinking and Dragons
No edit summary
No edit summary
 
(7 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.


== 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>
This is the category: {{{category}}}
<div class="panel panel-default">
 
<div class="panel-heading"><h3 class="panel-title">{{{header}}}</h3></div>
This is the header: {{{header}}}
  <div class="panel-body">
 
{{#tag:DynamicPageList|
{{#tag:DynamicPageList|
category = {{{category}}}
category = {{{category}}}
order = ascending
order = ascending
format  = ,\n [[%PAGE%|%TITLE%]],,
mode = unordered
}}
}}
</div>
</div>

Latest revision as of 02:38, 13 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!