Difference between revisions of "Template:CurrentFish"
From Nookipedia, the Animal Crossing wiki
(Adding code to allow the table to appear in a collapsed state.) |
(Adding capability to adjust time used generate template) |
||
Line 10: | Line 10: | ||
{{#switch:{{#timel:n}} | {{#switch:{{#timel:n}} | ||
| 1 | | 1 | ||
− | | 2 = {{#switch:{{#timel:G}} | + | | 2 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 198: | Line 198: | ||
| In [[ocean]] | | In [[ocean]] | ||
}} | }} | ||
− | | 3 = {{#switch:{{#timel:G}} | + | | 3 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 386: | Line 386: | ||
| In [[ocean]] | | In [[ocean]] | ||
}} | }} | ||
− | | 4 = {{#switch:{{#timel:G}} | + | | 4 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 609: | Line 609: | ||
| In [[ocean]] | | In [[ocean]] | ||
}} | }} | ||
− | | 5 = {{#switch:{{#timel:G}} | + | | 5 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 867: | Line 867: | ||
| In [[ocean]] | | In [[ocean]] | ||
}} | }} | ||
− | | 6 = {{#switch:{{#timel:G}} | + | | 6 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 1,251: | Line 1,251: | ||
| [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | | [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | ||
}} | }} | ||
− | | 7 = {{#switch:{{#timel:G}} | + | | 7 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 1,663: | Line 1,663: | ||
| [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | | [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | ||
}} | }} | ||
− | | 8 = {{#switch:{{#timel:G}} | + | | 8 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 2,103: | Line 2,103: | ||
| [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | | [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | ||
}} | }} | ||
− | | 9 = {{#ifexpr:{{#timel:j}}<16 | {{#switch:{{#timel:G}} | + | | 9 = {{#ifexpr:{{#timel:j}}<16 | {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 2,592: | Line 2,592: | ||
| [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | | [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | ||
}} | }} | ||
− | | {{#switch:{{#timel:G}} | + | | {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 3,019: | Line 3,019: | ||
}} | }} | ||
}} | }} | ||
− | | 10 = {{#switch:{{#timel:G}} | + | | 10 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 3,284: | Line 3,284: | ||
| [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | | [[File:Redhibiscusacnl.png|link=]] In [[ocean]] | ||
}} | }} | ||
− | | 11 = {{#switch:{{#timel:G}} | + | | 11 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 3,549: | Line 3,549: | ||
| In [[ocean]] | | In [[ocean]] | ||
}} | }} | ||
− | | 12 = {{#switch:{{#timel:G}} | + | | 12 = {{#switch:{{#if:{{{add|}}}{{{subtract|}}}|{{#timel:G|-{{{subtract|0}}}hours +{{{add|0}}}hours}}|{{#timel:G}}}} |
| 0 | | 0 | ||
| 1 | | 1 | ||
Line 3,846: | Line 3,846: | ||
This template displays the ACNL fish that can be caught in a user's local time zone at the time the page is loaded. The '''<tt>width</tt>''' parameter can be used to change the width of the table. Width must be expressed as a percent (e.g. 50%), and the default is 80%. The '''<tt>collapsed</tt>''' parameter accepts a true or false value; default value is false. If set to true, it will cause the table to appear collapsed by default. | This template displays the ACNL fish that can be caught in a user's local time zone at the time the page is loaded. The '''<tt>width</tt>''' parameter can be used to change the width of the table. Width must be expressed as a percent (e.g. 50%), and the default is 80%. The '''<tt>collapsed</tt>''' parameter accepts a true or false value; default value is false. If set to true, it will cause the table to appear collapsed by default. | ||
+ | |||
+ | The parameters '''<tt>add</tt>''' and '''<tt>subtract</tt>''' can be used to offset the time (in hours) from the current server time, although there may be issues with this on the first or last day of the month. (Basically, the template is defaulted to use the server's current month, regardless of additions/subtractions made to the time.) | ||
==See also== | ==See also== | ||
*[[Template:CurrentBugs]] | *[[Template:CurrentBugs]] | ||
*[[Template:CurrentSeafood]] | *[[Template:CurrentSeafood]] |
Revision as of 19:53, December 31, 2016
Fish out right now
Name | Image | Price | Location |
---|---|---|---|
Pale Chub | 200 | In river | |
Popeyed Goldfish | File:Popeyed Goldfish HHD Icon.png | 1,300 | In river |
Bluegill | 120 | In river | |
Guppy | 1,300 | In river | |
Nibble Fish | 1,500 | In river | |
Neon Tetra | 500 | In river | |
Killifish | 300 | In pond | |
Crawfish | 200 | In pond | |
Tadpole | 100 | In pond | |
Frog | 120 | In pond | |
Loach | 300 | In river | |
Sea Horse | 1,100 | In ocean | |
Clownfish | File:Clownfish HHD Icon.png | 650 | In ocean |
Surgeonfish | 1,000 | In ocean | |
Butterfly Fish | File:Butterflyfish HHD Icon.png | 1,000 | In ocean |
Zebra Turkeyfish | 400 | In ocean | |
Barred Knifejaw | 5,000 | In ocean | |
Squid | 400 | In ocean | |
Oarfish | 9,000 | In ocean | |
Crucian Carp | 120 | In river | |
Barbel Steed | 200 | In river | |
Carp | 300 | In river | |
Goldfish | 1,300 | In river | |
Black Bass | 300 | In river | |
Horse Mackerel | 150 | In ocean | |
Sea Bass | 200 | In ocean | |
Red Snapper | 3,000 | In ocean | |
Olive Flounder | 800 | In ocean | |
Ribbon Eel | 600 | In ocean | |
Giant Trevally | 4,500 | In ocean | |
Whale Shark | 13,000 | In ocean |
= Also found on island = Island exclusive fish |
Usage
This template displays the ACNL fish that can be caught in a user's local time zone at the time the page is loaded. The width parameter can be used to change the width of the table. Width must be expressed as a percent (e.g. 50%), and the default is 80%. The collapsed parameter accepts a true or false value; default value is false. If set to true, it will cause the table to appear collapsed by default.
The parameters add and subtract can be used to offset the time (in hours) from the current server time, although there may be issues with this on the first or last day of the month. (Basically, the template is defaulted to use the server's current month, regardless of additions/subtractions made to the time.)