From GamingWiki
Line 19: | Line 19: | ||
"beforelast". | "beforelast". | ||
− | -->{{# | + | -->{{#ifexpr: ({{#var: isfirst}}) and ({{#ifeq: {{{beforefirst|--NoValue--}}} | --NoValue-- ||1}}) <!-- |
-->|<!-- First item and we have a "beforefirst" | -->|<!-- First item and we have a "beforefirst" | ||
-->{{{beforefirst}}}<!-- | -->{{{beforefirst}}}<!-- | ||
-->|<!-- not the first item, or no "beforefirst" | -->|<!-- not the first item, or no "beforefirst" | ||
− | -->{{# | + | -->{{#ifexpr: ({{#var: islast}}) and ({{#ifeq: {{{beforelast|--NoValue--}}} | --NoValue-- ||1}}) <!-- |
-->|<!-- Last item and we have a "beforelast" | -->|<!-- Last item and we have a "beforelast" | ||
-->{{{beforelast}}}<!-- | -->{{{beforelast}}}<!-- | ||
Line 30: | Line 30: | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | |||
-->{{#var: theitem}}<!-- | -->{{#var: theitem}}<!-- | ||
For the "after" we give precedence to "afterlast" over "afterfirst". | For the "after" we give precedence to "afterlast" over "afterfirst". | ||
− | -->{{# | + | -->{{#ifexpr: ({{#var: islast}}) and ({{#ifeq: {{{afterlast|--NoValue--}}} | --NoValue-- ||1}}) <!-- |
-->|<!-- last item and we have a "afterlast" | -->|<!-- last item and we have a "afterlast" | ||
-->{{{afterlast}}}<!-- | -->{{{afterlast}}}<!-- | ||
-->|<!-- not the last item, or no "afterlast" | -->|<!-- not the last item, or no "afterlast" | ||
− | -->{{# | + | -->{{#ifexpr: ({{#var: isfirst}}) and ({{#ifeq: {{{afterfirst|--NoValue--}}} | --NoValue-- ||1}}) <!-- |
-->|<!-- first item and we have a "afterfirst" | -->|<!-- first item and we have a "afterfirst" | ||
-->{{{afterfirst}}}<!-- | -->{{{afterfirst}}}<!-- |