For given dimensions of a resolution, this template shows given pixels per inch resolution.

Usage

edit

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

edit
  1. width in pixels
  2. height in pixels
  3. screen size (diagonal, in inches)
  4. (optional): specify any value (e.g. "-") to show just the PPI figure