Project:Custom filter
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I have an idea for a feature that is missing in all the other drupal-wiki's. Adding images.
I've attached a snap that shows how I add images in a real wiki, notice that the images are one next to the other and if needs be, the images 'know' how to break a line.

The wiki-markup for the snap is this:

* Shift – Creates the guideline perpendicular to the selected segment. The guideline passes through the ''first'' selected point.

[[image: Guideline Through 5.png|left|frame|5. Selected segment]]

[[image: Guideline Through 6.png|left|frame|6. 'Regular' guideline]]

[[image: Guideline Through 7.png|left|frame|7. Pressing ''Shift'' – the guideline is perpendicular, and passes through the first selected point]] <br style="clear:both;">

Furthermore, the caption's width is exactly in the Images width - thanks to the width calculation (<div class="thumbinner" style="width: 176px;">).

--
So, the question is, do you think such a thing is possible using the customfilter?

AttachmentSize
Snap2.png18.03 KB

Comments

#1

Yes, it is possible. The simplest form of MediaWiki images, [[Image: imagename.png]] can be generated by adding this simple filter:

Pattern: /\[\[Image\:(.*?)\]\]/i
Replacement: <img src="$1"/>

Full capability of real MediaWiki markup is possible. However, I think it would be complex, because Image syntax has so many options, and seems it needs some calculation to break the lines (?). Maybe we should wait until somebody out there write this filter :)

Thanks for your idea.

#2

Category:feature request» support request
Status:active» fixed

I am setting the report as fixed because it got an answer.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.