Here's an example of the generated code:
=====================
POST:
=====================
<!-- MAIN -->
<div id="main" class="clear">
<!-- MAIN BAR-->
<div id="mainbar">
<p><span class="top_more_fix"></span></p>
<div class="post-text">
test
test test
[gallery columns="5" orderby="rand"] </div>
<div class="rule"></div>
<div class="post-info">
<small>
. </small>
<small>Tags: test, test
Posted in test | test</small>
</div>
<div class="rule"></div>
<!-- You can start editing here. -->
<!-- If comments are closed. -->
</div><!-- /#mainbar -->
=====================
PAGE:
=====================
<!-- MAIN -->
<div id="main" class="clear">
<!-- MAIN BAR-->
<div id="mainbar">
<p><span class="top_more_fix"></span></p>
<p><span id="more-5"></span></p>
<p>example test</p>
<p>test test</p>
<style type='text/css'>
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 20%; }
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
</style>
<!-- see gallery_shortcode() in wp-includes/media.php -->
<div id='gallery-1' class='gallery galleryid-5'><dl class='gallery-item'>
<dt class='gallery-icon'>
</dt></dl><dl class='gallery-item'>
<dt class='gallery-icon'>
</dt></dl><br style="clear: both" />
<br style='clear: both;' />
</div>
</div><!-- /#mainbar -->