Difference between revisions of "Template:Infobox feature"

From OpenGL.org
Jump to: navigation, search
(Infobox for OpenGL features.)
 
(Shorter core-since text.)
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ infobox
+
<noinclude>This template displays an information box on the right side of the article that is centered around a specific OpenGL feature. This box can contain the extension history of the feature, the current version it is in (if it is core OpenGL), and various other information.
| title  = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
+
 
| label1 = Core in version
+
This template has a number of parameters, all of them optional:
| data1   = {{{version|3.2}}}
+
 
| label2 = First entered core in version
+
* ''name'': The name you want the box to have. If you don't supply one, it will use the article's name.
| data2   = {{{core|}}}
+
* ''version'': This is the latest version of core OpenGL that this feature is in. If this feature is not in a core version at all, set it equal to nothing. Defaults to the current version of OpenGL.
| label3 = Removed from core in version
+
* ''core'': This is the version of OpenGL when this feature was first adopted into the core.
| data3   = {{{removed|}}}
+
* ''deprecated'': This is the version of OpenGL when this feature was first deprecated.
| label4 = Deprecated in core version
+
* ''removed'': This is the version of OpenGL when this feature was fully removed from the core.
| data4   = {{{deprecated|}}}
+
* ''core_extension'': This is a string describing the name of the core ARB extension (ARB extensions that don't end in an ARB suffix) for this feature, if it has one.
| label5 = Vendor extension
+
* ''arb_extension'': This is a string describing the name of the ARB extension for this feature, if any.
| data5   = {{{vend_extension|}}}
+
* ''ext_extension'': This string describes the name of the EXT extension for this feature, if any.
| label6 = EXT extension
+
* ''vend_extension'': This string describes a vendor-specific extension for this feature, if any.
| data6   = {{{ext_extension|}}}
+
 
| label7 = ARB extension
+
</noinclude><includeonly>{{infobox2
| data7   = {{{arb_extension|}}}
+
| bodystyle = border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000; background-color: #F8F8F8; margin: 5px; padding: 0.5em;
}}
+
| titlestyle = padding-bottom: 4px;
 +
| title  = {{{name|{{PAGENAME}}}}}
 +
| longlabel1 = Core in version
 +
| longdata1   = {{{version|{{current version}}}}}
 +
| longlabel2 = Core since version
 +
| longdata2   = {{{core|}}}
 +
| longlabel3 = Removed from core in version
 +
| longdata3   = {{{removed|}}}
 +
| longlabel4 = Deprecated in core version
 +
| longdata4   = {{{deprecated|}}}
 +
| shortlabel1 = Core ARB extension
 +
| shortdata1   = {{{core_extension|}}}
 +
| shortlabel2  = ARB extension
 +
| shortdata2  = {{{arb_extension|}}}
 +
| shortlabel3 = EXT extension
 +
| shortdata3   = {{{ext_extension|}}}
 +
| shortlabel4 = Vendor extension
 +
| shortdata4   = {{{vend_extension|}}}
 +
}}<includeonly>

Revision as of 17:56, 20 October 2012

This template displays an information box on the right side of the article that is centered around a specific OpenGL feature. This box can contain the extension history of the feature, the current version it is in (if it is core OpenGL), and various other information.

This template has a number of parameters, all of them optional:

  • name: The name you want the box to have. If you don't supply one, it will use the article's name.
  • version: This is the latest version of core OpenGL that this feature is in. If this feature is not in a core version at all, set it equal to nothing. Defaults to the current version of OpenGL.
  • core: This is the version of OpenGL when this feature was first adopted into the core.
  • deprecated: This is the version of OpenGL when this feature was first deprecated.
  • removed: This is the version of OpenGL when this feature was fully removed from the core.
  • core_extension: This is a string describing the name of the core ARB extension (ARB extensions that don't end in an ARB suffix) for this feature, if it has one.
  • arb_extension: This is a string describing the name of the ARB extension for this feature, if any.
  • ext_extension: This string describes the name of the EXT extension for this feature, if any.
  • vend_extension: This string describes a vendor-specific extension for this feature, if any.