Template:Category Page List: Difference between revisions
From Drinking and Dragons
Wizardoest (talk | contribs) No edit summary |
Wizardoest (talk | contribs) No edit summary |
||
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 | * '''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 18: | 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__ | __NOTOC__ | ||
</noinclude> | </noinclude> | ||
<div class="panel panel-default"> | <div class="panel panel-default"> | ||
<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 28: | ||
mode = unordered | mode = unordered | ||
}} | }} | ||
</div> | |||
</div> | </div> |
Revision as of 21:46, 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}}
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!