Difference between revisions of "Template:Bug Header"
From Nookipedia, the Animal Crossing wiki
HylianAngel (talk | contribs) m (Capitalization fix.) |
HylianAngel (talk | contribs) m (Text replacement - "Bugs/" to "Bug/") |
||
Line 4: | Line 4: | ||
|left-link = {{#cargo_query:|tables=nh_bug|fields=_pageTitle|where=nh_bug.number='{{#ifeq:{{PAGENAME}}|Common butterfly|80|{{#expr:{{#var:number}}-1}}}}'|no html}} | |left-link = {{#cargo_query:|tables=nh_bug|fields=_pageTitle|where=nh_bug.number='{{#ifeq:{{PAGENAME}}|Common butterfly|80|{{#expr:{{#var:number}}-1}}}}'|no html}} | ||
|left-text = ('''{{#cargo_query:|tables=nh_bug|fields=number|where=nh_bug.name='{{#replace:{{#var:leftname}}|'|\'}}'|no html}}''') {{#invoke:SentenceCase|main|{{#var:leftname}}}} | |left-text = ('''{{#cargo_query:|tables=nh_bug|fields=number|where=nh_bug.name='{{#replace:{{#var:leftname}}|'|\'}}'|no html}}''') {{#invoke:SentenceCase|main|{{#var:leftname}}}} | ||
− | |middle-link = | + | |middle-link = Bug/New Horizons |
|middle-text = {{NH|short|nolink}} bugs | |middle-text = {{NH|short|nolink}} bugs | ||
|right-link = {{#cargo_query:|tables=nh_bug|fields=_pageTitle|where=nh_bug.number='{{#ifeq:{{PAGENAME}}|Scorpion|1|{{#expr:{{#var:number}}+1}}}}'|no html}} | |right-link = {{#cargo_query:|tables=nh_bug|fields=_pageTitle|where=nh_bug.number='{{#ifeq:{{PAGENAME}}|Scorpion|1|{{#expr:{{#var:number}}+1}}}}'|no html}} |
Revision as of 21:55, March 9, 2023
Template documentation (view)
Notes
This template is for use only on New Horizons bug pages and will not function properly elsewhere. It automatically generates the previous and last bug in the series based on that bug's internal number, as sourced from its Cargo data. It uses {{PAGENAME}}
as input, so the bug's name as stored in Cargo must exactly match its article name for proper functionality.
See also
- {{Fish Header}}
- {{Sea Creature Header}}