Template:Filter/doc: Difference between revisions
Template page
More actions
Creating Template:Filter/doc - Template doesn't work at the moment. Will figure out why later |
No edit summary |
||
| Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<pre> | |||
{{Filter/Header|message=Click on the buttons to apply a filter to the list of [[creature]]s.}} | {{Filter/Header|message=Click on the buttons to apply a filter to the list of [[creature]]s.}} | ||
{{Filter|category|Fish,Insects,Shore-Dwellers|Fish,Insects,Shore-Dwellers|}} | {{Filter|category|Fish,Insects,Shore-Dwellers|Fish,Insects,Shore-Dwellers|}} | ||
| Line 23: | Line 24: | ||
! Category | ! Category | ||
{{#DPL: | {{#DPL: | ||
|namespace= | |namespace = | ||
|uses=Template:Creature Infobox | |uses = Template:Creature Infobox | ||
|category=Creatures | |category = Creatures | ||
|include={Creature Infobox}:name,{Creature Infobox}:category,{Creature Infobox}:name,{Creature Infobox}:category | |include = {Creature Infobox}:category,{Creature Infobox}:name,{Creature Infobox}:category | ||
|format=,,, | |format = ,,, | ||
|secseparators=<tr class="filter-element | |secseparators = <tr class="filter-element" data-category=",,"><td>[[File:%PAGE% Icon.png|x30px|link=%PAGE%]]</td><td>[[,,]]</td><td>,,</td></tr> | ||
|ordermethod=sortkey | |ordermethod = sortkey | ||
|count=40 | |count = 40 | ||
}} | |||
|} | |||
</pre> | |||
{{Filter/Header|message=Click on the buttons to apply a filter to the list of [[creature]]s.}} | |||
{{Filter|category|Fish,Insects,Shore-Dwellers|Fish,Insects,Shore-Dwellers|}} | |||
{{Filter|reset}} | |||
{{Filter/Footer}} | |||
{| class="wikitable sortable" | |||
|- | |||
! Icon | |||
! Creature | |||
! Category | |||
{{#DPL: | |||
|namespace = | |||
|uses = Template:Creature Infobox | |||
|category = Creatures | |||
|include = {Creature Infobox}:category,{Creature Infobox}:name,{Creature Infobox}:category | |||
|format = ,,, | |||
|secseparators = <tr class="filter-element" data-category=",,"><td>[[File:%PAGE% Icon.png|x30px|link=%PAGE%]]</td><td>[[,,]]</td><td>,,</td></tr> | |||
|ordermethod = sortkey | |||
|count = 40 | |||
}} | }} | ||
|} | |} | ||