Template:Ppi/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Ppi. It contains usage information, categories and other content that is not part of the original template page. |
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