Defining the output of a WordPress Att

I am not sure but do you want to get that attribute value to work on them ?

This is a way to do so

        // Add Shortcode
    function formatage( $atts , $content = null ) {

        // Attributes
        extract( shortcode_atts(
            array(
                'ptid' => '',
                'ptle' => '',
                ‘page’ => '',
            ), $atts )
        );

    $ptid = $atts['ptid'];
    $ptle = $atts['ptle'];
    $page = $atts['page'];

    if(!empty($ptid)){
   //include your php file here
   }else{ 
   //do something else 
   }
        // Code
    return X
    }