Basically what I'm trying to achieve is that there is a repeating region on a
page, and each region is supposed to alternate colors. To achieve this, the
regions with the colors are put into a div which has a background color applied
to it. To do this, I have created two expressions, one to check to see if it's
an even numbered region, and if so, to open the div, and another to close the
div. That looks like this:

[Q]
<!-- TemplateBeginRepeat name="Article" -->
((_index & 1) ? shade : noshade )
stuff
((_index & 1) ? shadeend : noshade )
<!-- TemplateEndRepeat -->
[/Q]

At the top, I have three template parameters to go along with these:

[Q]
<!-- TemplateParam name="shade" type="text" value="<div>" -->
<!-- TemplateParam name="shadeend" type="text" value="</div>" -->
<!-- TemplateParam name="noshade" type="text" value="" -->
[/Q]

Which look like this on the actual pages:
[Q]
<!-- InstanceParam name="shade" type="text" value="<div>" -->
<!-- InstanceParam name="shadeend" type="text" value="</div>" -->
<!-- InstanceParam name="noshade" type="text" value="" -->
[/Q]

The odd thing is that, when I add an editable region, something weird occurs
with the template parameters and they end up looking like this:

[Q]
<!-- InstanceParam name="shade" type="text" value="<div>" --><!--
InstanceParam name="shadeend" type="text" value="</div>" -->->
<!-- InstanceParam name="noshade" type="text" value="" -->
[/Q]

And that, of course, results in having a nice "->" showing up at the top of my
page. The repeating region appears to work. It changes background colors just
like it should, but I have no idea why it's throwing in the "->" at the end.