Difference between revisions of "Template:To-do Icon"
From Nookipedia, the Animal Crossing wiki
(New parameter added for alternate links, added documentation.) |
PanchamBro (talk | contribs) (adding category) |
||
(12 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float:left; text-align:center;"> | <div style="float:left; text-align:center;"> | ||
− | [[File:{{{image|Corkboard}}} | + | [[File:{{{image|Corkboard (Natural - Apple)}}} NH Icon.png|{{#if:{{{size|}}}|{{{size|}}}}}|link={{{altlink|{{{link|Category:Active discussions}}}}}}|{{{hover|Active discussions}}}|alt=]]<br><small>{{{text|Topics}}}</small><br>[[{{{altlink|:{{{link|Category:Active discussions}}}}}}|{{colorshow|000|{{{manual|{{#expr:{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link|Category:Active discussions}}}}}}}|{{{type|pages}}}|R}}+{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link2|}}}}}}}|{{{type|pages}}}|R}}+{{PAGESINCATEGORY:{{#titleparts: {{PAGENAME:{{{link3|}}}}}}}|{{{type|pages}}}|R}}}}}}}}}]] |
</div> | </div> | ||
<noinclude> | <noinclude> | ||
Line 16: | Line 16: | ||
==Notes== | ==Notes== | ||
− | *Template will only produce {{ | + | *Template will only produce {{NH}} furniture icons, so only NH 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. | + | *The parameter '''link2''' and '''link3''' can be used to add a second and third category's page count, respectively, 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. | *The parameter '''altlink''' can be used to link to a page other than the category page being counted. | ||
+ | *The parameter '''type''' can be used to change the type of pages in a category that will be counted. Default is "pages". | ||
+ | *The parameter '''manual''' can be used to bypass automatic category counts and insert a manual display value. | ||
+ | *The parameter '''size''' can be used to specify an alternate size for the displayed image. | ||
+ | |||
+ | [[Category:Main Page templates]]</noinclude> |
Latest revision as of 09:40, June 16, 2022
Topics
6
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: New Horizons furniture icons, so only NH items should be input.
- Template can only properly link to category pages.
- The parameter link2 and link3 can be used to add a second and third category's page count, respectively, 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.
- The parameter type can be used to change the type of pages in a category that will be counted. Default is "pages".
- The parameter manual can be used to bypass automatic category counts and insert a manual display value.
- The parameter size can be used to specify an alternate size for the displayed image.