Branch: Tag:

2001-03-14

2001-03-14 11:36:17 by Kenneth Johansson <kenneth.johansson.home@gmail.com>

[docs] omplete documentation for <gtext-id> and <gtext-url>.

Rev: server/modules/graphics/graphic_text.pike:1.263

1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.262 2001/03/13 10:14:20 kuntri Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.263 2001/03/14 11:36:17 kuntri Exp $";      #include <module.h>   inherit "module";
505:   </attr>"+gtextargs,      "gtext-id":#"<desc tag='tag'><p><short> +  Returns an internal URL to an image with the specified attributes +  applied.</short> To use this tag a string with the wanted text needs +  to be put after the URL. Warning: This tag is a serious security +  problem since it is possible to supply very long strings to it, +  turning it into a DOS hole. Hence, this tag should only be used where +  its use can be controlled, e.g. Intranets.</p>    -  </short></p> + <ex type='box'> + <define variable='var.image' preparse='yes'><gtext-id/></define> + <a href='&var.bild;'>Click me!</a> + </ex>    -  +  <p>This link would lead to an empty page. However, if some text would +  be put after the URL the page would instead have some graphical text +  in its upper left corner .</p> +  + <ex type='vert'> + <define variable='var.image' preparse='yes'><gtext-id/></define> + <img src='<ent>var.image</ent>\"My text\"' /> + </ex>   </desc>      <attr name='href' value='URL'><p>
516:    color.</p>   </attr>    - <attr name='short'><p></p> -  + <attr name='short'><p> +  Returns a relative path to the image, i.e. a shorter one. + </p>   </attr>"+gtextargs,      "gtext-url":#"<desc cont='cont'><p><short> -  This tag generates an URI to the graphical text element.</short> -  <tag>gtext-url</tag> takes the same attributes as <xref -  href='gtext.tag' />.</p> -  +  Returns an internal URL to an image with the specified attributes +  applied.</short></p>   </desc>      <attr name='href' value='URL'><p>
534:   </attr>      <attr name='short'><p> +  Returns a relative path to the image, i.e. a shorter one.   </p>   </attr>   <noex>"+gtextargs+"</noex>",]);