Difference between revisions of "Template:newin/sandbox"

(Test with newin template and warning about only available in upcoming version)
 
m (Update style (seems to work somehow))
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|-
 
|-
 
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} not supported in earlier versions}}.</small>
 
| <small>{{#if: {{{text|}}} |{{{text}}}|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} not supported in earlier versions}}.</small>
 +
{{#ifexpr: {{{2|}}}>{{CURRENTLOVE}}|
 +
{{!}}-
 +
{{!}} <small>'''Warning: LÖVE {{{1}}} is not yet released.'''</small>
 +
}}
 
|}
 
|}
{{#if: {{{2|}}}≥{{CURRENTLOVE}}|
+
 
{|bgcolor='#ffc7ac' style='margin-top: 1em; padding: 3px; border-radius:5px; -moz-border-radius:5px;'
 
|{{#if: {{{type|}}} |{{#if: {{{plural|}}} |These|This}} {{{type}}} |It}} {{#if: {{{plural|}}}|are|is}} yet implemented only in development version, that is not yet released.<br>If you really want to use it, take a look at development branch in [https://github.com/love2d/love Github repository].}}
 
|}
 
 
{{#switch: {{{type}}} | callback | module | enum | function | method | type = {{#if: {{{2|}}} |{{#set:Since={{{2}}}}}}}{{#if: {{{1|}}} |{{#set:PrettySince={{{1}}}}}}}|}}</includeonly><noinclude>
 
{{#switch: {{{type}}} | callback | module | enum | function | method | type = {{#if: {{{2|}}} |{{#set:Since={{{2}}}}}}}{{#if: {{{1|}}} |{{#set:PrettySince={{{1}}}}}}}|}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}

Latest revision as of 13:56, 26 May 2022

O.png This is template's sandbox - it is place, where you can perform experiments with template without breaking out anything.  


[edit] [purge] Template documentation

This template is used on things that are added in newer versions.

Usage

{{newin|Human-friendly version number|Machine-friendly version number|type=optional type of thing added|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 added.
This should usually be "function", "type" or "variant".
Only types that are set to callback, enum, function, module or type will
set their ?Since and ?PrettySince parameters.
text
Bring out the big guns, and display a totally different text.

See also

Other Languages