Template:Apifunc: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Documentation
multi-text trick.
Line 3: Line 3:
<nowiki>{{apifunc|glDrawElements}}</nowiki> becomes: {{apifunc|glDrawElements}}.
<nowiki>{{apifunc|glDrawElements}}</nowiki> becomes: {{apifunc|glDrawElements}}.


</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{1}}}]]}}</includeonly>
An additional parameter can be applied, which is used as part of the link:
 
<nowiki>{{apifunc|glDrawElements|some text}}</nowiki> becomes: {{apifunc|glDrawElements|some text}}.
 
</noinclude><includeonly>{{code|[[GLAPI/{{{1}}}|{{{1}}}{{ #if: {{{2|}}} |{{{2}}} }}]]}}</includeonly>

Revision as of 22:55, 28 March 2012

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.