Difference between revisions of "Template:To-do Icon"
From Nookipedia, the Animal Crossing wiki
(New parameter added for alternate links, added documentation.) |
m (Template will now also count subcategories by default.) |
||
Line 1: | Line 1: | ||
<div style="float:left; text-align:center;"> | <div style="float:left; text-align:center;"> | ||
− | [[File:{{{image|Corkboard}}} HHD Icon.png|link={{{altlink|{{{link|Category:Active discussions}}}}}}|{{{hover|Active discussions}}}]]<br><small>{{{text|Topics}}}</small><br>[[{{{altlink|:{{{link|Category:Active Discussions}}}}}}|{{colorshow|000|{{#if:{{{link2|}}}|{{#expr:{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active Discussions}}}}}}}|R}}+{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link2|Category:Active Discussions}}}}}}}|R}}}}|{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active Discussions}}}}}}}|R}}}}}}]] | + | [[File:{{{image|Corkboard}}} HHD Icon.png|link={{{altlink|{{{link|Category:Active discussions}}}}}}|{{{hover|Active discussions}}}]]<br><small>{{{text|Topics}}}</small><br>[[{{{altlink|:{{{link|Category:Active Discussions}}}}}}|{{colorshow|000|{{#if:{{{link2|}}}|{{#expr:{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active Discussions}}}}}}}|all|R}}+{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link2|Category:Active Discussions}}}}}}}|all|R}}}}|{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active Discussions}}}}}}}|all|R}}}}}}]] |
</div> | </div> | ||
<noinclude> | <noinclude> |
Revision as of 01:55, November 5, 2019
Topics
0
Usage
This icon is used as a visual representation of different types of active to-do tasks on Nookipedia.
{{To-do Icon | image = (Name of item to display) | link = (Page to link to) | hover = (Hover text) | text = (Text to display) }}
Notes
- Template will only produce Animal Crossing: Happy Home Designer furniture icons, so only HHD items should be input.
- Template can only properly link to category pages.
- The parameter link2 can be used to add a second category's page count to the number displayed below the icon.
- The parameter altlink can be used to link to a page other than the category page being counted.