Ignore:
Timestamp:
12/17/09 19:32:52 (2 years ago)
Author:
CrawfordCurrie
Message:

Item2511: document alt= parameter on %ICON - meant to do that years ago, forced to now for refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/data/System/VarICON.txt

    r1838 r5812  
    22%META:TOPICPARENT{name="Macros"}% 
    33#VarICON 
    4 ---+++ ICON{"name"} -- small documentation graphic or icon of common attachment types 
     4---+++ ICON{"name" alt=""} -- small documentation graphic or icon of common attachment types 
    55   * Generates the HTML img tag of a small graphic image attached to DocumentGraphics. Images typically have a 16x16 pixel size. You can select a specific image by name, or you can give a full filename, in which case the type of the file will be used to select one of a collection of common file type icons. 
    66   * Syntax: =%<nop>ICON{"name"}%= 
     
    1111      * =%<nop>ICON{"/dont/you/dare/smile.pdf"}%= returns %ICON{"/dont/you/dare/smile.pdf"}% 
    1212      * =%<nop>ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}%= returns %ICON{"http://trunk.foswiki.org/pub/System/DocumentGraphics/xsl.gif"}% 
     13   * You can use the =alt= parameter to specify an alternate image, in case 
     14     the filename doesn't produce a recognised graphic e.g. ==%<nop>ICON{"data.docx" alt="doc"}% 
    1315   * Graphic samples: %ICON{"arrowbright"}% =arrowbright=, %ICON{"bubble"}% =bubble=, %ICON{"choice-yes"}% =choice-yes=, %ICON{"hand"}% =hand= 
    1416   * File type samples: %ICON{"bmp"}% =bmp=, %ICON{"doc"}% =doc=, %ICON{"gif"}% =gif=, %ICON{"hlp"}% =hlp=, %ICON{"html"}% =html=, %ICON{"mp3"}% =mp3=, %ICON{"pdf"}% =pdf=, %ICON{"ppt"}% =ppt=, %ICON{"txt"}% =txt=, %ICON{"xls"}% =xls=, %ICON{"xml"}% =xml=, %ICON{"zip"}% =zip= 
Note: See TracChangeset for help on using the changeset viewer.