From GamingWiki
Line 19: | Line 19: | ||
"beforelast". | "beforelast". | ||
− | -->{{#ifexpr: ({{#var: isfirst}}) and ({{#ifeq: {{{beforefirst|--NoValue--}}} | --NoValue-- ||1}}) <!-- | + | -->{{#ifexpr: ({{#var: isfirst}}) and ({{#ifeq: {{{beforefirst|--NoValue--}}} | --NoValue-- |0|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}}) <!-- | + | -->{{#ifexpr: ({{#var: islast}}) and ({{#ifeq: {{{beforelast|--NoValue--}}} | --NoValue-- |0|1}}) <!-- |
-->|<!-- Last item and we have a "beforelast" | -->|<!-- Last item and we have a "beforelast" | ||
-->{{{beforelast}}}<!-- | -->{{{beforelast}}}<!-- | ||
Line 35: | Line 35: | ||
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}}) <!-- | + | -->{{#ifexpr: ({{#var: islast}}) and ({{#ifeq: {{{afterlast|--NoValue--}}} | --NoValue-- |0|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}}) <!-- | + | -->{{#ifexpr: ({{#var: isfirst}}) and ({{#ifeq: {{{afterfirst|--NoValue--}}} | --NoValue-- |0|1}}) <!-- |
-->|<!-- first item and we have a "afterfirst" | -->|<!-- first item and we have a "afterfirst" | ||
-->{{{afterfirst}}}<!-- | -->{{{afterfirst}}}<!-- |