Template:Extref: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Template for linking to extensions.
 
Categorizing templates.
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
{{extref|vertex_attrib_binding}}
{{extref|vertex_attrib_binding}}


</noinclude><includeonly>[http://www.opengl.org/registry/specs/{{{2|ARB}}}/{{{1}}}.txt]</includeonly>
For non-ARB extensions, you can use:
 
<nowiki>{{extref|texture_swizzle|EXT}}</nowiki>
 
Which yields:
 
{{extref|texture_swizzle|EXT}}
 
Currently does not work for WGL/GLX extensions.
 
[[Category:Inline Formatting Templates]]
</noinclude><includeonly>[http://www.opengl.org/registry/specs/{{{2|ARB}}}/{{{1}}}.txt {{{2|ARB}}}_{{{1}}}]</includeonly>

Latest revision as of 23:07, 5 February 2013

This template represents an inline reference to an extension specification. It will automatically link to its page on the OpenGL registry.

Example:

{{extref|vertex_attrib_binding}}

becomes:

ARB_vertex_attrib_binding

For non-ARB extensions, you can use:

{{extref|texture_swizzle|EXT}}

Which yields:

EXT_texture_swizzle

Currently does not work for WGL/GLX extensions.