Difference between revisions of "Template:To-do Icon"
From Nookipedia, the Animal Crossing wiki
(Adding ability include the combined total of multiple categories in the page number computation) |
m (Adjusting parameter name and adding documentation) |
||
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={{{link|Category:Active discussions}}}|{{{hover|Active discussions}}}]]<br><small>{{{text|Topics}}}</small><br>[[:{{{link|Category:Active Discussions}}}|{{colorshow|000|{{#if:{{{link2|}}}|{{#expr:{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active Discussions}}}}}}}|R}}+{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{ | + | [[File:{{{image|Corkboard}}} HHD Icon.png|link={{{link|Category:Active discussions}}}|{{{hover|Active discussions}}}]]<br><small>{{{text|Topics}}}</small><br>[[:{{{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}}}}}}]] |
</div> | </div> | ||
<noinclude> | <noinclude> | ||
Line 18: | Line 18: | ||
*Template will only produce {{HHD}} furniture icons, so only HHD items should be input. | *Template will only produce {{HHD}} furniture icons, so only HHD items should be input. | ||
*Template can only properly link to category pages. | *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. |
Revision as of 01:21, 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.