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.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 MarkupToHTML end
 5: 00.21 00.21 MarkupToHTML begin
 6: 00.21 00.21 MarkupToHTML end
 7: 00.21 00.21 MarkupToHTML begin
 8: 00.21 00.21 MarkupToHTML end
 9: 00.22 00.22 MarkupToHTML end
10: 00.23 00.22 MarkupToHTML begin
11: 00.23 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
12: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls end
13: 00.24 00.24 MarkupToHTML end
14: 00.25 00.24 MarkupToHTML begin
15: 00.25 00.24 MarkupToHTML end
16: 00.25 00.24 now
Peak memory: 3,766,840 bytes