Difference between revisions of "Template:oldin"

m (If type == variant don't set the "Removed" or "PrettyRemoved" variable thingies.)
(If type == enum, function or type then set the "Removed" or "PrettyRemoved" variable thingies.)
Line 4: Line 4:
 
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} not supported in that and later versions}}.</small>
 
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} not supported in that and later versions}}.</small>
 
|}
 
|}
{{#ifeq: {{{type}}} | variant || {{#if: {{{2|}}}|{{#set:Removed={{{2}}}}}}}{{#if: {{{1|}}}|{{#set:PrettyRemoved={{{1}}}}}}}}}</includeonly><noinclude>
+
{{#switch: {{{type}}} | enum | function | type = {{#if: {{{2|}}}|{{#set:Removed={{{2}}}}}}}{{#if: {{{1|}}}|{{#set:PrettyRemoved={{{1}}}}}}}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 22:10, 29 March 2013

[edit] [purge] Template documentation

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

Usage

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

Parameters

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

See also