#?SuikaWikiConfig/2.0 Plugin: @Name: ExternalEmbedLink @Description: @@@: Embed-style linking of external resources @@lang:en @License: %%Perl%% @Author: @@Name: @@@@: Wakaba @@@lang:ja @@@script:Latn @@Mail[list]: w@suika.fam.cx @Date.RCS: $Date: 2005/01/30 03:37:01 $ @RequiredModule[list]: URI @Use: require URI; PluginConst: @NS_XHTML1: http://www.w3.org/1999/xhtml FormattingRule: @Category[list]: view view-resource form-input @Name: xe--img @Description: @@@: Embeds an external image resource. \ STATUS: EXPERIMENTAL @@lang: en @Parameter: @@Name: uri @@Type: URI-reference @@Default: (required) @@Description: @@@lang: en @@@@: URI reference of the image to embed. @Parameter: @@Name: alt @@Type: text @@Default: (empty) @@Description: @@@lang:en @@@@: A short description for the image. @Formatting: __ATTRTEXT:%uri__; __ATTRTEXT:%alt__; for ($p->{-parent}->append_new_node (type => '#element', namespace_uri => $NS_XHTML1, local_name => 'img')) { $_->flag (use_EmptyElemTag => 1); $_->set_attribute (src => ''.URI->new ($p->{uri})); $_->set_attribute (alt => $p->{alt}); }