Template:Deprecated: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Updated to link to Legacy OpenGL
Categorizing templates.
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:


* ''alternate'': This is a short string of text. It should grammatically fit in the sentence: "<nowiki>Consider using {{{alternate}}} instead.</nowiki>". This is preferably a link to non-deprecated alternatives.
* ''alternate'': This is a short string of text. It should grammatically fit in the sentence: "<nowiki>Consider using {{{alternate}}} instead.</nowiki>". This is preferably a link to non-deprecated alternatives.
* ''section'': Use this tag to state that it is about this section rather than the article. It doesn't matter what text you put here.
* ''section'': Use this tag to state that it is about this section rather than the article. It doesn't matter what text you put here. You must use <code>section=</code>; remember the "=" sign.


[[Category:Common Templates]]
</noinclude><includeonly>{{alertbox
</noinclude><includeonly>{{alertbox
| color = #FA8
| color = #FA8
| text = '''Warning:''' This {{#if:{{{section|}}}|section|article}} describes [[Legacy OpenGL|legacy OpenGL APIs]] that have been removed from [[Core And Compatibility in Contexts|core OpenGL 3.1 and above]] (they are only [[Deprecation|deprecated]] in OpenGL 3.0). It is recommended that you not use this functionality in your programs. {{#if:{{{alternate|}}}|Consider using {{{alternate}}} instead. }}}}</includeonly>
| text = '''Warning:''' This {{#ifeq:{{{section|+}}} | {{{section|-}}}|section|article}} describes [[Legacy OpenGL|legacy OpenGL APIs]] that have been removed from [[Core And Compatibility in Contexts|core OpenGL 3.1 and above]] (they are only [[Deprecation|deprecated]] in OpenGL 3.0). It is recommended that you not use this functionality in your programs. {{#if:{{{alternate|}}}|Consider using {{{alternate}}} instead. }}}}</includeonly>

Latest revision as of 23:14, 5 February 2013

This template marks the section or article as being predominantly about deprecated material. This template takes one optional named parameter:

  • alternate: This is a short string of text. It should grammatically fit in the sentence: "Consider using {{{alternate}}} instead.". This is preferably a link to non-deprecated alternatives.
  • section: Use this tag to state that it is about this section rather than the article. It doesn't matter what text you put here. You must use section=; remember the "=" sign.