Difference between revisions of "Template:Song Header"

From Nookipedia, the Animal Crossing wiki
m
m
Line 9: Line 9:
 
|right-link      = {{#cargo_query:|tables=song|fields=_pageTitle|where=song.order_number="{{#ifeq:{{PAGENAME}}|Welcome Horizons|1|{{#expr:{{#var:number}}+1}}}}"|no html}}
 
|right-link      = {{#cargo_query:|tables=song|fields=_pageTitle|where=song.order_number="{{#ifeq:{{PAGENAME}}|Welcome Horizons|1|{{#expr:{{#var:number}}+1}}}}"|no html}}
 
|right-text      = {{#var:rightname}} ('''{{#cargo_query:|tables=song|fields=order_number|where=song.name="{{#var:rightname}}"|no html}}''')
 
|right-text      = {{#var:rightname}} ('''{{#cargo_query:|tables=song|fields=order_number|where=song.name="{{#var:rightname}}"|no html}}''')
|left-image      = File:{{#cargo_query:|tables=song|fields=image|where=song.order_number="{{#ifeq:{{PAGENAME}}|K.K. Chorale|95|{{#expr:{{#var:number}}-1}}}}"|no html}}
+
|left-image      = File:{{#cargo_query:|tables=song|fields=image|where=song.order_number="{{#ifeq:{{PAGENAME}}|K.K. Chorale|107|{{#expr:{{#var:number}}-1}}}}"|no html}}
 
|left-imagesize  = 35px
 
|left-imagesize  = 35px
|right-image    = File:{{#cargo_query:|tables=song|fields=image|where=song.order_number="{{#ifeq:{{PAGENAME}}|Welcome Horizons|1|{{#expr:{{#var:number}}+1}}}}"|no html}}
+
|right-image    = File:{{#cargo_query:|tables=song|fields=image|where=song.order_number="{{#ifeq:{{PAGENAME}}|K.K. Robot Synth|1|{{#expr:{{#var:number}}+1}}}}"|no html}}
 
|right-imagesize = 35px
 
|right-imagesize = 35px
 
}}<noinclude>{{Documentation}} [[Category:Header templates]]</noinclude>
 
}}<noinclude>{{Documentation}} [[Category:Header templates]]</noinclude>

Revision as of 02:11, November 4, 2021

Template documentation (view)


Notes

This template is for use on K.K. Slider song pages, and sorts them by the song order. The order, name and images are sourced from Cargo data and as such must match properly.

See also