Difference between revisions of "Template:Fish Header"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "Category:Header Templates" to "Category:Header templates")
Line 13: Line 13:
 
|right-image    = File:{{#cargo_query:|tables=nh_fish|fields=image|where=nh_fish.number='{{#ifeq:{{PAGENAME}}|Coelacanth|1|{{#expr:{{#var:number}}+1}}}}'|no html}}
 
|right-image    = File:{{#cargo_query:|tables=nh_fish|fields=image|where=nh_fish.number='{{#ifeq:{{PAGENAME}}|Coelacanth|1|{{#expr:{{#var:number}}+1}}}}'|no html}}
 
|right-imagesize = 40px
 
|right-imagesize = 40px
}}<noinclude>{{Documentation}} [[Category:Header templates]]</noinclude>
+
}}<noinclude>{{Documentation}} [[Category:Header templates]][[Category:Pages using the Variables extension]]</noinclude>

Revision as of 12:28, November 1, 2022

Template documentation (view)


Notes

This template is for use only on New Horizons fish pages and will not function properly elsewhere. It automatically generates the previous and last fish in the series based on that fish's internal number, as sourced from its Cargo data. It uses {{PAGENAME}} as input, so the fish's name as stored in Cargo must exactly match its article name for proper functionality.

See also