Difference between revisions of "Template:Critter Header"

From Nookipedia, the Animal Crossing wiki
(New header template for critter pages)
 
(Switching to CSS colour class)
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| width="100%" align="center" style="text-align:center; background-color: #66ccff; border-spacing:0px; border: 3px solid #4f9fc6; margin-bottom: 20px; {{Roundy|30px}}"
+
{{Header Box
| width=35% height=38px style="text-align:left; padding:0 0 0 18px;"| {{#switch: {{PAGENAME}} | Fish = [[Bugs|{{Colorshow|333|←}}]] [[File:Ladybug_HHD_Icon.png|32px|link=Bugs]] [[Bugs|{{Colorshow|333|All the '''bugs'''}}]] | Bugs = [[Deep sea creature|{{Colorshow|333|←}}]] [[File:Sea_Grapes_HHD_Icon.png|32px|link=Deep sea creature]] [[Deep sea creature|{{Colorshow|333|All of the '''seafood'''}}]] | Deep sea creature = [[Fish|{{Colorshow|333|←}}]] [[File:Red Snapper HHD Icon.png|32px|link=Fish]] [[Fish|{{Colorshow|333|All of the '''fish'''}}]] | [[Bugs|{{Colorshow|333|←}}]]   [[Bugs|{{Colorshow|333|All of the '''things'''}}]]}}
+
|colorclass      = #{{#switch: {{PAGENAME}} | Fish = color-fish | Bug = color-bug | Sea creature = color-seacreature}}
| width=30% style="border-left:3px solid #4f9fc6; border-right:3px solid #4f9fc6;"| '''{{#switch: {{PAGENAME}} | Fish = [[Fishing|{{Colorshow|333|Fishing}}]] | Bugs = [[Guide:Bug catching|{{Colorshow|333|Bug Catching}}]] | Deep sea creature = [[Swimming|{{Colorshow|333|Diving}}]] | Dive Deeper}}'''
+
|cell-border    = {{#switch: {{PAGENAME}} | Fish = #4F9FC6 }}
| width=35% style="text-align:right; padding:0 18px 0 0;"| {{#switch: {{PAGENAME}} | Fish = [[Deep sea creature|{{Colorshow|333|All of the '''seafood'''}}]]   [[File:Sea_Grapes_HHD_Icon.png|32px|link=Deep sea creature]]   [[Deep sea creature|{{Colorshow|333|→}}]] | Bugs = [[Fish|{{Colorshow|333|All of the '''fish'''}}]]   [[File:Red Snapper HHD Icon.png|32px|link=Fish]]   [[Fish|{{Colorshow|333|→}}]] | Deep sea creature = [[Bugs|{{Colorshow|333|All the '''bugs'''}}]]   [[File:Ladybug_HHD_Icon.png|32px|link=Bugs]]   [[Bugs|{{Colorshow|333|→}}]] | [[Bugs|{{Colorshow|333|All of the '''things'''}}]]   [[Bugs|{{Colorshow|333|→}}]]}}
+
|left-link       = {{#switch: {{PAGENAME}} | Fish = Bug | Bug = Sea creature | Sea creature = Fish | Bug}}
|}<noinclude>
+
|left-text      = {{#switch: {{PAGENAME}} | Fish = Bugs | Bug = Sea creatures | Sea creature = Fish | Bugs}}
 
+
|middle-link    = {{#switch: {{PAGENAME}} | Fish = Fishing | Bug = Bug catching | Sea creature = Swimming | Critterpedia }}
==Usage==
+
|middle-text    = {{#switch: {{PAGENAME}} | Fish = Fishing | Bug = Bug catching | Sea creature = Swimming | Critterpedia }}
<pre>
+
|right-link      = {{#switch: {{PAGENAME}} | Fish = Sea creature | Bug = Fish | Sea creature = Bug | Fish}}
{{Critter Header}}
+
|right-text      = {{#switch: {{PAGENAME}} | Fish = Sea creatures | Bug = Fish | Sea creature = Bugs | Fish}}
</pre>
+
|left-image      = {{#switch: {{PAGENAME}} | Fish = File:Bug NH Icon.png | Bug = File:Sea Creature NH Icon.png | Sea creature = File:Fish NH Icon.png | File:Bug NH Icon.png}}
 
+
|left-imagesize  = 40px
==Notes==
+
|right-image    = {{#switch: {{PAGENAME}} | Fish = File:Sea Creature NH Icon.png | Bug = File:Fish NH Icon.png | Sea creature = File:Bug NH Icon.png | File:Fish NH Icon.png}}
*This template only functions properly on the following pages: [[fish]], [[bugs]], and [[deep sea creature]].
+
|right-imagesize = 40px
 
+
}}<noinclude>{{Documentation}}[[Category:Header templates]]</noinclude>
[[Category:Header Templates]]
 
</noinclude>
 

Latest revision as of 09:15, May 18, 2024

Template documentation (view)


Usage

{{Critter Header}}

This template is used as a header for the Bug, Fish, and Sea creature articles. It contains links to the other critter types, as well as a link to the method of collecting the selected type of critter. As the template is intended for these articles only, it will not appear properly when used on other articles and therefore should not be used outside of this purpose.

Example

{{Critter Header}}

If used on the Fish article:

If used on the Bug article:

If used on the Sea creature article: