Difference between revisions of "Template:To-do Icon"

From Nookipedia, the Animal Crossing wiki
m (Correcting code)
m (NH icons now)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<div style="float:left; text-align:center;">
 
<div style="float:left; text-align:center;">
[[File:{{{image|Corkboard}}} HHD Icon.png|{{#if:{{{size|}}}|{{{size|}}}}}|link={{{altlink|{{{link|Category:Active discussions}}}}}}|{{{hover|Active discussions}}}]]<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}}}}}}}}}]]
+
[[File:{{{image|Corkboard}}} NH Icon.png|{{#if:{{{size|}}}|{{{size|}}}}}|link={{{altlink|{{{link|Category:Active discussions}}}}}}|{{{hover|Active discussions}}}]]<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 {{HHD}} furniture icons, so only HHD items should be input.
+
*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''' 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 '''link2''' and '''link3''' can be used to add a second and third category's page count, respectively, to the number displayed below the icon.

Revision as of 14:01, May 26, 2020

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.