Template:Ppi
Revision as of 23:19, 5 May 2019 by Wikipedia>Retro (Moving documentation to subpage; replacing abbreviation "HTML" tag with template.)
For given dimensions of a resolution, this template shows given pixels per inch resolution.
Usage
Syntax: {{ppi|width|height|inches}}
- Example #1:
{{ppi|720|1280|7}}returns 720 × 1280, 210 ppi - Example #2:
{{ppi|320|240|2.4|-}}returns 167
Parameters
- width in pixels
- height in pixels
- screen size (diagonal, in inches)
- (optional): specify any value (e.g. "-") to show just the PPI figure