(no commit message)
[openafs-wiki.git] / TWiki / VarICON.mdwn
1 <a name="VarICON"></a>
2
3 ### <a name="ICON{&quot;name&quot;} -- small documentat"></a> ICON\{"name"\} -- small documentation graphic or icon of common attachment types
4
5 - Generates the HTML img tag of a small graphic image attached to [[TWikiDocGraphics]]. 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.
6 - Syntax: `%ICON{"name"}%`
7 - Examples:
8   - `%ICON{"flag-gray"}%` returns <img src="http://www.dementia.org/twiki//view/Main/WebHome/flag-gray.gif" width="16" height="16" alt="flag-gray" />
9   - `%ICON{"pdf"}%` returns <img src="http://www.dementia.org/twiki//view/Main/WebHome/pdf.gif" width="16" height="16" alt="pdf" />
10   - `%ICON{"smile.pdf"}%` returns <img src="http://www.dementia.org/twiki//view/Main/WebHome/pdf.gif" width="16" height="16" alt="smile.pdf" />
11   - `%ICON{"/dont/you/dare/smile.pdf"}%` returns <img src="http://www.dementia.org/twiki//view/Main/WebHome/pdf.gif" width="16" height="16" alt="/dont/you/dare/smile.pdf" />
12   - `%ICON{"http://twiki.org/doc/xhtml.xsl"}%` returns <img src="http://www.dementia.org/twiki//view/Main/WebHome/xsl.gif" width="16" height="16" alt="http://twiki.org/doc/xhtml.xsl" />
13 - Graphic samples: <img src="http://www.dementia.org/twiki//view/Main/WebHome/arrowbright.gif" width="16" height="16" alt="arrowbright" /> `arrowbright`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/bubble.gif" width="16" height="16" alt="bubble" /> `bubble`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/choice-yes.gif" width="16" height="16" alt="choice-yes" /> `choice-yes`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/hand.gif" width="16" height="16" alt="hand" /> `hand`
14 - File type samples: <img src="http://www.dementia.org/twiki//view/Main/WebHome/bmp.gif" width="16" height="16" alt="bmp" /> `bmp`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/doc.gif" width="16" height="16" alt="doc" /> `doc`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/gif.gif" width="16" height="16" alt="gif" /> `gif`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/hlp.gif" width="16" height="16" alt="hlp" /> `hlp`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/html.gif" width="16" height="16" alt="html" /> `html`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/mp3.gif" width="16" height="16" alt="mp3" /> `mp3`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/pdf.gif" width="16" height="16" alt="pdf" /> `pdf`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/ppt.gif" width="16" height="16" alt="ppt" /> `ppt`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/txt.gif" width="16" height="16" alt="txt" /> `txt`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/xls.gif" width="16" height="16" alt="xls" /> `xls`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/xml.gif" width="16" height="16" alt="xml" /> `xml`, <img src="http://www.dementia.org/twiki//view/Main/WebHome/zip.gif" width="16" height="16" alt="zip" /> `zip`
15 - Related: [[ICONURL|Main/VarICONURL]], [[ICONURLPATH|Main/VarICONURLPATH]], [[TWikiPreferences]], [[FileAttachments]], [[TWikiDocGraphics]]