#19470 closed Cleanup/optimization (fixed)
Width Ratio - slightly more clear example?
Reported by: | orblivion | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.5-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Very minor nitpick: https://docs.djangoproject.com/en/dev/ref/templates/builtins/#widthratio
<img src="bar.gif" height="10" width="{% widthratio this_value max_value 100 %}" />
To be more explicit, I think it should say:
<img src="bar.gif" height="10" width="{% widthratio this_value max_value max_width %}" />
Since there's no other outright explanation of all the parameters. And of course, update the explanation accordingly. Perhaps give a separate sample with actual numbers if that makes the explanations more clear. But for a lot of people, a cursory look at the template tag with the parameters named should give all the information necessary.
Thanks.
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | 19470.diff added |
---|
comment:1 by , 12 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 6534a95ac3142ff79f8152b0d5dcbf9330d8abde: