Difference between revisions of "Template:Availability"

From Nookipedia, the Animal Crossing wiki
m (fix img link)
(Adding optional size parameter for icons)
Line 1: Line 1:
 
<span style="font-size:.9em;">{{#switch:{{{1|}}}
 
<span style="font-size:.9em;">{{#switch:{{{1|}}}
| Able Sisters = {{#ifeq:{{#expr:{{#time:j}} mod 2}}|0|[[File:Mabel NH Icon.png|22px|link={{{1|}}}]]|[[File:Sable NH Icon.png|22px]]}}&nbsp;[[Able Sisters]]
+
| Able Sisters = {{#ifeq:{{#expr:{{#time:j}} mod 2}}|0|[[File:Mabel NH Icon.png|22px|link={{{1|}}}]]|[[File:Sable NH Icon.png|{{{size|22px}}}]]}}&nbsp;[[Able Sisters]]
 
| Blathers
 
| Blathers
 
| Celeste
 
| Celeste
Line 8: Line 8:
 
| Label
 
| Label
 
| Saharah
 
| Saharah
| Tom Nook = [[File:{{{1|}}} NH Icon.png|22px|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
+
| Tom Nook = [[File:{{{1|}}} NH Icon.png|{{{size|22px}}}|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
| Crafting = [[File:Menu DIY NH Icon.png|22px|link=DIY]]&nbsp;[[DIY|Crafting]]
+
| Crafting = [[File:Menu DIY NH Icon.png|{{{size|22px}}}|link=DIY]]&nbsp;[[DIY|Crafting]]
| Nook's Cranny = [[File:Nookling PC icon.png|22px|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
+
| Nook's Cranny = [[File:Nookling PC icon.png|{{{size|22px}}}|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
| Nook's Cranny (Upgraded) = [[File:Nookling PC icon.png|22px|link=Nook's Cranny]]&nbsp;[[Nook's Cranny|{{{1|}}}]]
+
| Nook's Cranny (Upgraded) = [[File:Nookling PC icon.png|{{{size|22px}}}|link=Nook's Cranny]]&nbsp;[[Nook's Cranny|{{{1|}}}]]
| Resident Services = [[File:Nookling PC icon.png|22px|link=Resident Services]]&nbsp;[[{{{1|}}}]]
+
| Resident Services = [[File:Nookling PC icon.png|{{{size|22px}}}|link=Resident Services]]&nbsp;[[{{{1|}}}]]
| Zipper = [[File:{{{1|}}} PC icon.png|22px|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
+
| Zipper = [[File:{{{1|}}} PC icon.png|{{{size|22px}}}|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
| Bunny Day = [[File:Sky Egg NH Icon.png|22px|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
+
| Bunny Day = [[File:Sky Egg NH Icon.png|{{{size|22px}}}|link={{{1|}}}]]&nbsp;[[{{{1|}}}]]
| amiibo = [[File:Amiibo icon black.png|22px|link=amiibo]]&nbsp;[[{{{1|}}}]]
+
| amiibo = [[File:Amiibo icon black.png|{{{size|22px}}}|link=amiibo]]&nbsp;[[{{{1|}}}]]
 
| Balloon
 
| Balloon
| Birthday = [[File:Birthday Cupcake NH Inv Icon Cropped.png|22px|link=Birthday]]&nbsp;[[Birthday]]
+
| Birthday = [[File:Birthday Cupcake NH Inv Icon Cropped.png|{{{size|22px}}}|link=Birthday]]&nbsp;[[Birthday]]
| Message Bottle = [[File:Message Bottle NH Inv Icon.png|22px|link=Message Bottle]]&nbsp;[[Message Bottle]]
+
| Message Bottle = [[File:Message Bottle NH Inv Icon.png|{{{size|22px}}}|link=Message Bottle]]&nbsp;[[Message Bottle]]
| Bug-Off = [[File:Net NH Inv Icon.png|22px|link=Bug-Off]]&nbsp;[[Bug-Off]]
+
| Bug-Off = [[File:Net NH Inv Icon.png|{{{size|22px}}}|link=Bug-Off]]&nbsp;[[Bug-Off]]
 
| C.J.
 
| C.J.
| Cyrus = [[File:Cyrus NH Icon.png|22px|link=Cyrus]]&nbsp;[[Cyrus]]
+
| Cyrus = [[File:Cyrus NH Icon.png|{{{size|22px}}}|link=Cyrus]]&nbsp;[[Cyrus]]
| Dodo Airlines = [[File:Wilbur NH Icon.png|22px|link=Dodo Airlines]]&nbsp;[[Dodo|Dodo Airlines]]
+
| Dodo Airlines = [[File:Wilbur NH Icon.png|{{{size|22px}}}|link=Dodo Airlines]]&nbsp;[[Dodo|Dodo Airlines]]
| Fishing Tourney = [[File:Fishing Rod NH Inv Icon.png|22px|link=Fishing Tourney]]&nbsp;[[Fishing Tourney]]
+
| Fishing Tourney = [[File:Fishing Rod NH Inv Icon.png|{{{size|22px}}}|link=Fishing Tourney]]&nbsp;[[Fishing Tourney]]
 
| Flick
 
| Flick
 
| Friendship
 
| Friendship
 
| Mom
 
| Mom
 
| HHA
 
| HHA
| New Year's = [[File:Party Popper NH Inv Icon.png|22px|link=New Year's]]&nbsp;[[{{{1|}}}]]
+
| New Year's = [[File:Party Popper NH Inv Icon.png|{{{size|22px}}}|link=New Year's]]&nbsp;[[{{{1|}}}]]
 
| Nintendo
 
| Nintendo
| Nook Miles Exchange = [[File:Nook Miles NH Icon.png|22px|link=Nook Miles]]&nbsp;[[Nook Miles|Nook Miles Exchange]]
+
| Nook Miles Exchange = [[File:Nook Miles NH Icon.png|{{{size|22px}}}|link=Nook Miles]]&nbsp;[[Nook Miles|Nook Miles Exchange]]
| Nook Shopping = [[File:Package NH Inv Icon.png|22px|link=Nook Shopping]]&nbsp;[[{{{1|}}}]]
+
| Nook Shopping = [[File:Package NH Inv Icon.png|{{{size|22px}}}|link=Nook Shopping]]&nbsp;[[{{{1|}}}]]
| Pocket Camp = [[File:Map Icon Camp ACPC.png|22px|link=Animal Crossing: Pocket Camp]]&nbsp;[[Animal Crossing: Pocket Camp|Pocket Camp]]
+
| Pocket Camp = [[File:Map Icon Camp ACPC.png|{{{size|22px}}}|link=Animal Crossing: Pocket Camp]]&nbsp;[[Animal Crossing: Pocket Camp|Pocket Camp]]
 
| Recycling Bin
 
| Recycling Bin
 
| Villager = [[{{{1|}}}]]
 
| Villager = [[{{{1|}}}]]
| Cranky = [[File:Emotion Aggravation NH Icon cropped.png|22px|link=Cranky]]&nbsp;[[Cranky|Cranky villager]]
+
| Cranky = [[File:Emotion Aggravation NH Icon cropped.png|{{{size|22px}}}|link=Cranky]]&nbsp;[[Cranky|Cranky villager]]
| Jock = [[File:Emotion Pride NH Icon cropped.png|22px|link=Jock]]&nbsp;[[Jock|Jock villager]]
+
| Jock = [[File:Emotion Pride NH Icon cropped.png|{{{size|22px}}}|link=Jock]]&nbsp;[[Jock|Jock villager]]
| Lazy = [[File:Emotion Sleepy NH Icon cropped.png|22px|link=Lazy]]&nbsp;[[Lazy|Lazy villager]]
+
| Lazy = [[File:Emotion Sleepy NH Icon cropped.png|{{{size|22px}}}|link=Lazy]]&nbsp;[[Lazy|Lazy villager]]
| Smug = [[File:Emotion Smirking NH Icon cropped.png|22px|link=Smug]]&nbsp;[[Smug|Smug villager]]
+
| Smug = [[File:Emotion Smirking NH Icon cropped.png|{{{size|22px}}}|link=Smug]]&nbsp;[[Smug|Smug villager]]
| Normal = [[File:Emotion Happiness NH Icon cropped.png|22px|link=Normal]]&nbsp;[[Normal|Normal villager]]
+
| Normal = [[File:Emotion Happiness NH Icon cropped.png|{{{size|22px}}}|link=Normal]]&nbsp;[[Normal|Normal villager]]
| Peppy = [[File:Emotion Encouraging NH Icon cropped.png|22px|link=Peppy]]&nbsp;[[Peppy|Peppy villager]]
+
| Peppy = [[File:Emotion Encouraging NH Icon cropped.png|{{{size|22px}}}|link=Peppy]]&nbsp;[[Peppy|Peppy villager]]
| Snooty = [[File:Emotion Disagreement NH Icon cropped.png|22px|link=Snooty]]&nbsp;[[Snooty|Snooty villager]]
+
| Snooty = [[File:Emotion Disagreement NH Icon cropped.png|{{{size|22px}}}|link=Snooty]]&nbsp;[[Snooty|Snooty villager]]
| Sisterly = [[File:Emotion Mischief NH Icon cropped.png|22px|link=Sisterly]]&nbsp;[[Sisterly|Sisterly villager]]
+
| Sisterly = [[File:Emotion Mischief NH Icon cropped.png|{{{size|22px}}}|link=Sisterly]]&nbsp;[[Sisterly|Sisterly villager]]
 
| #default = {{#if:{{{1|}}}|[[{{{1|}}}]]|Unknown}}
 
| #default = {{#if:{{{1|}}}|[[{{{1|}}}]]|Unknown}}
 
}}{{#if:{{{season|}}}|&nbsp;({{{season|}}})}}</span>{{#if:{{{nb|}}}||<br />}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude>
 
}}{{#if:{{{season|}}}|&nbsp;({{{season|}}})}}</span>{{#if:{{{nb|}}}||<br />}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 16:20, April 30, 2020

Unknown

Template documentation (view)


Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Lua Logo.svg
This template is using one or many Lua modules
To change certain features of this template, the following modules will need to be edited:
  • Module:Availability
  • Module:Availability/Data
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
    Lua Logo.svg
    This template is using one or many Lua modules
    To change certain features of this template, the following modules will need to be edited:
  • Module:Availability
  • Module:Availability/Data
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

    Usage

    {{Availability|<source>}}
    

    Generates an icon and link, intended for use in item tables. If no value is entered, template will return 'Unknown'. note can be used to specify any notes, such as a specific season the item is available in, or prerequisites that have to be met. By default, instances of this template will be on their own line; to remove linebreaks, nb can be set to true.

    The following item sources are currently supported:

    Characters
    Locations and merchants
    Villagers
    Events
    Distribution methods
    Flowers and flower bags
    Other plants
    Animal Crossing: Pocket Camp's Fortune Cookies
    Other

    Additionally, Villager is supported and will allow an icon and link for a specified villager to be shown. It is possible to switch the icon of the villager. To change the text for specific Villagers/Special NPCs, use text=. To hide the image of the availability template, use no-image.

    Example

    {{Availability|Nook's Cranny}}
    

    Nookling PC Character Icon.png Nook's Cranny

    {{Availability|Able Sisters|note=Winter}}
    

    Sable NH Character Icon.png Able Sisters

    {{Availability|Villager|Bob}}
    

    Villager

    {{Availability|RV|Toby}}
    

    RV

    {{Availability|Tom Nook|no-image=yes}}
    
    Tom Nook NH Character Icon.png Tom Nook