CFrame


%cframe% Attach:pmwiki-32.gif"Caption me" | ''Caption me!''
Caption me
Caption me!
%cframe width=50px% Attach:pmwiki-32.gif"Caption me" | ''Caption me!''
Caption me
Caption me!
%cframe border="10px #7fff00 groove"% Attach:pmwiki-32.gif"Caption me" | ''Caption me!''
Caption me
Caption me!

Radu: I find the alternation of : and = a bit confusing, especially since I'm used with the css : and the HTML =. Could we stick with one or the other in pmwiki markup? I personally prefer ':'

Some people are used to HTML, where everything is =, while others are used to CSS, where everything is :. PmWiki generally tries to accommodate either preference so that we don't have to worry about which is correct. (However, at the moment PmWiki only allows '=' in places that are definitely HTML attributes, such as table attributes and divs.)

It's probably not something that I want to dictate to other authors -- everyone has something they're used to using and I tend to err on the side of being flexible.

Width problem observed

See the second example, where the width is set to 50px. While the frame has obeyed the request, the actual image size has remained unchanged, and it now overflows the frame.

 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.04 00.03 MarkupToHTML end
 7: 00.04 00.03 MarkupToHTML begin
 8: 00.04 00.03 MarkupToHTML end
 9: 00.05 00.04 MarkupToHTML end
10: 00.05 00.04 MarkupToHTML begin
11: 00.06 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.06 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.07 00.06 MarkupToHTML end
14: 00.07 00.06 MarkupToHTML begin
15: 00.07 00.06 MarkupToHTML end
16: 00.07 00.07 now
Peak memory: 3,131,584 bytes