• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Ppi

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

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

  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
The above documentation is transcluded from Template:Ppi/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Ppi&oldid=27269"
Category:
  • Abbreviation templates
Last edited on 5 May 2019, at 23:19

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 5 May 2019, at 23:19.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop