function packageSummaryWrapper( pkg, version, name, summary ) {
	var href;
	var out;
	var id;

	name = pkg + ( ( name ) ? '/' + name : '' );
	href = STDLIB_REPO_NODE_PATH + '/%40stdlib/' + name;
	id = replace( name, '/', '-' );
	if ( version ) {
		id += '-v' + version;
	} else {
		id += '-unreleased';
	}
	out = '<section class="package" id="' + id + '">\n\n';
	out += heading( '[@stdlib/' + name + '](' + href + ')', 4 );
	out += '<details>\n\n';
	out += decrementHeaders( summary, 2 );
	out += '</details>';
	out += sectionEnd( 'package' );
	return out;
}
Wraps a package summary for inclusion in a namespace changelog.

@private
@param {string} pkg - namespace package
@param {string} version - namespace version
@param {string} name - subpackage name
@param {string} summary - package summary
@returns {string} wrapped package summary