From GamingWiki
Jump to: navigation, search
Line 10: Line 10:
 
     |<!--
 
     |<!--
 
     -->{{#vardefine: isfirst |<!--
 
     -->{{#vardefine: isfirst |<!--
       -->{{#ifeq: {{#var: i}} | {{{countfrom|1}}} | 1 | }} }}<!-- Is this the first item in the list
+
       -->{{#ifeq: {{#var: i}} | {{{countfrom|1}}} | 1 | 0 }} }}<!-- Is this the first item in the list
 
     -->{{#vardefine: islast  |<!--
 
     -->{{#vardefine: islast  |<!--
       -->{{#if: {{#var: nextitem}}                | | 1 }} }}<!-- Is this the last item in the list
+
       -->{{#if: {{#var: nextitem}}                | 0 | 1 }} }}<!-- Is this the last item in the list
  
 
     If this is the first one in the list, and we have "beforefirst" specified, then we use it. Otherwise,
 
     If this is the first one in the list, and we have "beforefirst" specified, then we use it. Otherwise,

Revision as of 02:07, 12 February 2011