Template:amamnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(update: actually these seem to have retained their numerical ordering! I'm consolidating both parameters into one, if the pattern changes we can tackle that in the future...)
(switch lookup to parser function)
Line 1: Line 1:
{{mamnav<!--
{{mamnav<!--
-->|{{{1}}}<!--  
-->|{{{1}}}<!--  
-
-->|Marzipan's Answering Machine Version {{mam-lookup|{{#expr: {{{1}}}-1}}}}<!-- /* calculate previous link */
+
-->|{{#navlist:mamnav-lookup|prev||target}}<!-- /* calculate previous link target */
-
-->|Version {{mam-lookup|{{#expr: {{{1}}}-1}}}}<!-- /* calculate previous name */
+
-->|{{#navlist:mamnav-lookup|prev}}<!--         /* calculate previous link label */
-
-->|Marzipan's Answering Machine Version {{mam-lookup|{{#expr: {{{1}}}+1}}}}<!-- /* calculate next link */
+
-->|{{#navlist:mamnav-lookup|next||target}}<!-- /* calculate next link target */
-
-->|Version {{mam-lookup|{{#expr: {{{1}}}+1}}}}<!-- /* calculate next name */
+
-->|{{#navlist:mamnav-lookup|next}}<!--         /* calculate next link name */
-->|link={{{link|}}}<!--
-->|link={{{link|}}}<!--
-->}}<noinclude>
-->}}<noinclude>
Line 12: Line 12:
; Inputs
; Inputs
: 1=mam version #
: 1=mam version #
-
: 2=nav order number ([1..n] where "n" is the number of articles in the set.)
 
: link=filename (optional for subtitle parameters, if 1 is incorrect)
: link=filename (optional for subtitle parameters, if 1 is incorrect)

Revision as of 00:31, 30 January 2021

Marzipan's Answering Machine #{{{1}}}
[[HR:toons/marzipans-answering-machine-{{{1}}}|watch]] INVALID LOOKUP VALUE INVALID LOOKUP VALUE

This template is an automated extension of {{mamnav}}. Next and previous are calculated using {{mam-lookup}}. Please update the nav order there!

Inputs
1=mam version #
link=filename (optional for subtitle parameters, if 1 is incorrect)