Template:Require: Difference between revisions
Jump to navigation
Jump to search
More complex template. |
Test to see if this works. |
||
Line 6: | Line 6: | ||
[[Category:Inline Formatting Templates]] | [[Category:Inline Formatting Templates]] | ||
</noinclude><includeonly>{{#if:{{{1|}}} | OpenGL {{{1}}} | }}{{#if:{{{1|}}} |{{#if:{{{2|}}} | or | }} | }}{{#if:{{{2|}}} | {{#if: {{{3|}}} |{{extref|{{{2}}}|{{{3|}}} }}|{{extref|{{{2}}} }} }} | }}<includeonly> | </noinclude><includeonly>{{extref|{{{2}}}}} <!--{{#if:{{{1|}}} | OpenGL {{{1}}} | }}{{#if:{{{1|}}} |{{#if:{{{2|}}} | or | }} | }}{{#if:{{{2|}}} | {{#if: {{{3|}}} |{{extref|{{{2}}}|{{{3|}}} }}|{{extref|{{{2}}} }} }} | }}--><includeonly> |
Revision as of 04:59, 9 August 2013
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:
- The OpenGL version number. If it's blank, the phrase "OpenGL <Version> or" won't be part of the text.
- The extension name. If it's blank, the phrase "or <Extension>" won't be part of the text.
- The prefix of the extension, as for Template:Extref. ARB extensions don't need one.