#4207 closed enhancement (fixed)
Formatting options
Reported by: | izzy | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | NoteBoxMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Would you consider adding some formatting options? What I have in mind are two optional parameters:
[[NoteBox(tip, This is a hint., 150, 30)]]
Would render the box with 150x30px. Without this, the boxes are too big sometimes - since they always reach onto the right border of the page. I guess it would also be possible to automatically calculate the right size - but that would be a bit harder to implement ;)
As for this, I guess the text to display needs to be "quoted" - at least when it contains a colon. Moreover, the "icon" may need to be resized for small x,y values.
Attachments (1)
Change History (9)
comment:1 Changed 14 years ago by
Owner: | changed from gruenebe to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Status: | assigned → new |
---|
Changed 13 years ago by
Attachment: | WikiMacrosPage.png added |
---|
comment:3 Changed 13 years ago by
Replying to izzy:
As for this, I guess the text to display needs to be "quoted" - at least when it contains a colon.
I think you mean comma, and this issue should have been dealt with in #4124, Commas need to be escaped with a backslash now.
I'd really like to implement your suggestion, however I don't know enough CSS to get this done in the near future, so it will have to wait until I have time to learn, unless someone kindly submits a patch.
Without this, the boxes are too big sometimes - since they always reach onto the right border of the page.
I find the NoteBoxPlugin page to be slightly misleading actually, because the noteboxes displayed are fairly narrow, and in fact they span most of the width of the page, as you described.
comment:4 Changed 13 years ago by
Status: | new → assigned |
---|
Okay, maybe this isn't as difficult as I thought. I'll add a width parameter that can be specified in percent, and then maybe expand on this to allow the width to be specified in pixels.
comment:5 Changed 13 years ago by
comment:6 Changed 13 years ago by
Replying to izzy:
Would render the box with 150x30px. Without this, the boxes are too big sometimes - since they always reach onto the right border of the page. I guess it would also be possible to automatically calculate the right size - but that would be a bit harder to implement ;)
Specifying the width is straightforward because the height will resize to fit the text. I'm not sure I see an advantage to specifying the height. I welcome feedback on this though.
comment:7 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 13 years ago by
I think that I've satisfied the request in this ticket, but please reopen if you have additional ideas.
This is a good idea, and I'm happy to apply a patch if made available.