Template:Require

From OpenGL Wiki
Revision as of 04:51, 9 August 2013 by Alfonse (talk | contribs) (Preliminary version of OpenGL version/ext requirement template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used for inline citations of required OpenGL version numbers and/or extensions. It creates a phrase of the form "OpenGL <Version> or <Extension>". It takes 3 positional parameters:

  1. The OpenGL version number. If it's blank, the phrase "OpenGL <Version> or" won't be part of the text.
  2. The extension name. If it's blank, the phrase "or <Extension>" won't be part of the text.
  3. The prefix of the extension, as for Template:Extref. ARB extensions don't need one.