Template:Glref44: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
No edit summary
m Changing section to explicitly specified so that chapters and tables can be referenced.
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
Example:
Example:


<nowiki>{{glref44|4.2.11|42}}</nowiki>
<nowiki>{{glref44|section 4.2.11|42}}</nowiki>


becomes:
becomes:


{{glref44|4.2.11|42}}
{{glref44|section 4.2.11|42}}


[[Category:Inline Formatting Templates]]
[[Category:Inline Formatting Templates]]
</noinclude><includeonly>[http://www.opengl.org/registry/doc/glspec44.core.pdf#page={{#expr:{{{2}}}+22}} OpenGL 4.4, Section {{{1}}}, Page {{{2}}}]</includeonly>
</noinclude><includeonly>[http://www.opengl.org/registry/doc/glspec44.core.pdf#page={{#expr:{{{2}}}+22}} OpenGL 4.4, {{{1}}}, page {{{2}}}]</includeonly>

Latest revision as of 23:28, 26 November 2013

This template represents an inline reference to the OpenGL 4.4 specification. It will automatically link to its page. When a new version of OpenGL is released, this should be updated to omit the page until they can be converted to the new page order with the new GlrefXY template. These are named as such so that they can be found easily and fixed.

Page indices are for values written on the pages, not the PDF page. The PDF page number is 22 pages too high on OpenGL 4.4.

Example:

{{glref44|section 4.2.11|42}}

becomes:

OpenGL 4.4, section 4.2.11, page 42