Add shortcode and extract attributes