Print out

Signature

page_template_dropdown( $default = '' )
default
 (string) Optional. The template file name. Default empty.
Default: ''

Return

(void)

Source

function page_template_dropdown( $default = '' ) {
	$templates = get_page_templates( get_post() );
	ksort( $templates );
	foreach ( array_keys( $templates ) as $template ) {
		$selected = selected( $default, $templates[ $template ], false );
		echo "\n\t<option value='" . $templates[ $template ] . "' $selected>$template</option>";
	}
}
WP Trac GitHub

Link here