ICONURL -- URL of small documentation graphic or icon

Generates the full URL of a DocumentGraphics image, which Foswiki renders as an image. The related %ICON{"name"}% generates the full HTML img tag. Specify image name or full filename (see ICON for details on filenames.)

Parameters

Parameter Description Default
"name" Name of the icon, or pathname to extract an extension from else
default Optional default icon if the primary icon can't be found else

Examples

  • %ICONURL% returns https://morsulus.org/foswiki/bin/../pub/System/DocumentGraphics/else.png
  • %ICONURL{"arrowbright"}% returns https://morsulus.org/foswiki/bin/../pub/System/DocumentGraphics/arrowbright.png
  • %ICONURL{"novel.pdf"}% returns https://morsulus.org/foswiki/bin/../pub/System/DocumentGraphics/pdf.png
  • %ICONURL{"notanicon" default="ram"}% returns https://morsulus.org/foswiki/bin/../pub/System/DocumentGraphics/ram.png
  • %ICONURL{"/queen/boheme.mp3"}% returns https://morsulus.org/foswiki/bin/../pub/System/DocumentGraphics/mp3.png

ICON, ICONURLPATH, DocumentGraphics
Topic revision: r1 - 16 Nov 2015, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback