Feature

patch for new wiki image type: button

Summary

open
Jan 24, 2008
Jan 24, 2008 / stenyak
Dec 12, 2009 / pixtur
 

Attached files

No files uploaded
 
Hi, i've made a small change to the render code, so that images can now be clickable. I've committed it to branches/imageButtons.issue6225 rev347.

The documentation for the new format would be:
START OF DOCUMENTATION REPLACEMENT

Imagesπ

Simpleπ

[[image:234]]

Advanced syntaxπ

[[image:234|?options?|?description?]]

Whereas ?options? could be a comma separated combination of the following:
  • left - float left
  • right - float right
  • framed - display with description as subtitle. Use image-description, if no description is given within link
  • button - display with description as the url the button will point to when clicked.
  • maxsize=234 - will use gd2 to scale this down to 234 pixels if too large.
Note: If both framed and button are specified, button will have no effect.

e.g.:

[[image:234|maxsize=320,framed,right]]
[[image:234|button,right|http://www.google.com]]
END OF DOCUMENTATION REPLACEMENT

1 Comments

pixtur:I missed this branch

9 years ago

Should be merged into trunk for next release.