Difference between revisions of "Template:Apifunc"

From OpenGL.org
Jump to: navigation, search
m (multi-text trick.)
(Categorizing templates.)
 
Line 7: Line 7:
 
<nowiki>{{apifunc|glDrawElements|some text}}</nowiki> becomes: {{apifunc|glDrawElements|some text}}.
 
<nowiki>{{apifunc|glDrawElements|some text}}</nowiki> becomes: {{apifunc|glDrawElements|some text}}.
  
 +
[[Category:Inline Formatting Templates]]
 
</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{1}}}{{{2|}}}]]}}</includeonly>
 
</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{1}}}{{{2|}}}]]}}</includeonly>

Latest revision as of 19:06, 5 February 2013

This template is used for inline references to OpenGL API functions. You must spell the API function exactly correctly, or the link will not work.

{{apifunc|glDrawElements}} becomes: glDrawElements.

An additional parameter can be applied, which is used as part of the link:

{{apifunc|glDrawElements|some text}} becomes: glDrawElementssome text.