Difference between revisions of "Template:deprecatedin"

m (More color testing)
Line 2: Line 2:
 
|'' '''Deprecated in LÖVE {{{1}}}''' ''
 
|'' '''Deprecated in LÖVE {{{1}}}''' ''
 
|-
 
|-
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} deprecated and will be removed in a future version}}.</small>
+
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |Queste/i|Questa/o}} {{{type}}} |Questa/o}} non {{#if: {{{plural|}}}|sono supportate/i|è stata/o deprecata/o}} e verrà rimossa nelle versioni successive.}}.</small>
 
|}
 
|}
{{#switch: {{{type}}} | callback | module | enum | function | method | type = {{#if: {{{2|}}}|{{#set:Deprecated={{{2}}}}}}}{{#if: {{{1|}}}|{{#set:PrettyDeprecated={{{1}}}}}}}|}}</includeonly><noinclude>
+
{{#switch: {{{type}}} | callback | modulo | enum | funzione | metodo | tipo = {{#if: {{{2|}}}|{{#set:Deprecated={{{2}}}}}}}{{#if: {{{1|}}}|{{#set:PrettyDeprecated={{{1}}}}}}}|}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:33, 7 April 2021

[edit] [purge] Template documentation

This template is used on things that are deprecated in new LÖVE versions.

Usage

{{deprecatedin|Human-friendly version number|Machine-friendly version number|type=optional type of thing deprecated|text=optional text to display}}

Parameters

1
A readable version number, like "0.9.1".
2
A machine-readable version number, like "091".
type
If you'd like, you can specify what it is that has been deprecated.
This should usually be "function", "type" or "variant".
Only types that are set to callback, enum, function, module or type will
set their ?Deprecated and ?PrettyDeprecated parameters.
text
Bring out the big guns, and display a totally different text.

See also