Multiple shortcodes in template file

I have the following combination of shortcodes working in a page:

[accordion accordion_type='accordion']
[accordion_item caption="TITLE HERE" title_color='' background_color='#69b200']
[widgets_on_pages id="widget name"]
<hr />
<p style="text-align: center;">Some text here<br />
[button size='medium' color='' background_color='' font_size='' line_height='' font_style='' font_weight='' text='Button Title' link='http://something.com' target='blank']</p><p style="text-align: center;">More words here.<p>
<hr />
[/accordion_item]
[/accordion]

The result is an accordion which opens to reveal a widget, some text and a button. Anyway, it’s working great on a page, but now I want to build it into a page template file. I’ve seen this: http://codex.wordpress.org/Function_Reference/do_shortcode , but I’m not sure how to apply that since I’m using multiple shortcodes within shortcodes.

I read somewhere that I could do something like this:

<?php
$nickname = '
[accordion accordion_type='accordion']
[accordion_item caption="TITLE HERE" title_color='' background_color='#69b200']
[widgets_on_pages id="widget name"]
<hr />
<p style="text-align: center;">Some text here<br />
[button size='medium' color='' background_color='' font_size='' line_height='' font_style='' font_weight='' text='Button Title' link='http://something.com' target='blank']</p><p style="text-align: center;">More words here.<p>
<hr />
[/accordion_item]
[/accordion]';
echo do_shortcode( $nickname );
?>

But I couldn’t get that to work. Any ideas?

Thanks!