Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#19102 closed defect (invalid)

Image macro: Wrong description of percentage option

Reported by: skyper Owned by: stoecker
Priority: normal Milestone:
Component: Trac Version:
Keywords: template_report Image macro description Cc:

Description

Under WikiMacros#Image-macro it is written:


The remaining arguments are optional and allow configuring the attributes and style of the rendered <img> element:

  • digits and unit are interpreted as the size (ex. 120px, 25%) for the image

This is not true as the percentage is for the page size and not the image, e.g. [[JOSMImage(dialogs/validator,100%)]]
source:trunk/resources/images/dialogs/validator.svg

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by stoecker

Resolution: invalid
Status: newclosed

It is correct, as said this is the size for the image. The reference value of size specifications can be found in HTML/CSS docs, which is not stated here. Anyway this ticket is off-topic. If this would be an error it must be reported in Trac bugtracker.

comment:2 Changed 2 years ago by skyper

Well, at least, I am happy to have understood the meaning of percentage which is useful for placement left/right. Thought other users would like to understand it, too.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain stoecker.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.