Difference between revisions of "Template:EcosystemRelease/Revision"

m
m
 

1 Usage[edit]

The EcosystemRelease/Revision template returns the status for an ecosystem release revision.

Usage: {{EcosystemRelease/Revision | revision=<revision>}}

Where:

  • <revision> is the mandatory revision of the ecosystem release for which a status is requested. The possible values are:
    • 1.0.0 (February 2019 ecosystem release revision).
    • 1.1.0 (October September 2019 ecosystem release revision).

The returned value is:

  • latest, if the revision is the latest one.
  • legacy, if the revision is a legacy one.
  • unknown, if the revision is not supported.

2 Basic examples[edit]

You type You get
v1.0.0 revision (legacy)
{{EcosystemRelease/Revision | revision=1.0.0}}

legacy

3 More examples[edit]

You type You get
v1.1.0 revision (latest)
{{EcosystemRelease/Revision | revision=1.1.0}}

latest

Latest revision

{{EcosystemRelease/Revision | revision=latest}}

unknown

Unknown revision
{{EcosystemRelease/Revision | revision=0.0.1}}

unknown

Unspecified revision
{{EcosystemRelease/Revision}}

unknown

4 Code[edit]

unknown

<noinclude>

==Usage==
The [[Template:EcosystemRelease/Revision|EcosystemRelease/Revision]] template returns '''the status for an ecosystem release revision'''.

 Usage: <nowiki>{{</nowiki>EcosystemRelease/Revision | revision={{HighlightParam|<revision>}}}}
Where:
* {{HighlightParam|<revision>}} is the '''mandatory''' revision of the ecosystem release for which a status is requested. The possible values are:
** '''1.0.0''' (February 2019 ecosystem release revision).
** '''1.1.0''' (OctoberSeptember 2019 ecosystem release revision).

The returned value is:
* '''latest''', if the revision is the latest one.
* '''legacy''', if the revision is a legacy one.
* '''unknown''', if the revision is not supported.

==Basic examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| v1.0.0 revision (legacy)<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Revision | revision=1.0.0}}</pre>

|
{{EcosystemRelease/Revision | revision=1.0.0}}
|}

==More examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| v1.1.0 revision (latest)<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Revision | revision=1.1.0}}</pre>

|
{{EcosystemRelease/Revision | revision=1.1.0}}
|-
| Latest revision<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Revision | revision=latest}}</pre>

|
{{EcosystemRelease/Revision | revision=latest}}
|-
| Unknown revision<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Revision | revision=0.0.1}}</pre>

|
{{EcosystemRelease/Revision | revision=0.0.1}}
|-
| Unspecified revision<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Revision}}</pre>

|
{{EcosystemRelease/Revision}}
|}

==Code==
{{UpdateNeededForNewRelease|Add the new revision of the ecosystem release in the code below and in the list of the possible values above}}</noinclude>{{#switch: {{{revision|}}}
| 1.0.0 = legacy
| 1.1.0 | latest = latest
| #default = unknown
}}
Line 7: Line 7:
 
* {{HighlightParam|<revision>}} is the '''mandatory''' revision of the ecosystem release for which a status is requested. The possible values are:
 
* {{HighlightParam|<revision>}} is the '''mandatory''' revision of the ecosystem release for which a status is requested. The possible values are:
 
** '''1.0.0''' (February 2019 ecosystem release revision).
 
** '''1.0.0''' (February 2019 ecosystem release revision).
** '''1.1.0''' (September 2019 ecosystem release revision).
+
** '''1.1.0''' (October 2019 ecosystem release revision).
   
 
The returned value is:
 
The returned value is:
Line 30: Line 30:
 
! style="width: 50%;" | You type !! You get
 
! style="width: 50%;" | You type !! You get
 
|-
 
|-
| v1.1.0 revision (latest)
+
| v1.1.0 revision
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
 
{{EcosystemRelease/Revision | revision=1.1.0}}
 
{{EcosystemRelease/Revision | revision=1.1.0}}
Line 36: Line 36:
 
|
 
|
 
{{EcosystemRelease/Revision | revision=1.1.0}}
 
{{EcosystemRelease/Revision | revision=1.1.0}}
|-
 
| Latest revision
 
<pre style="white-space: pre-wrap;">
 
{{EcosystemRelease/Revision | revision=latest}}
 
</pre>
 
|
 
{{EcosystemRelease/Revision | revision=latest}}
 
 
|-
 
|-
 
| Unknown revision
 
| Unknown revision
Line 63: Line 56:
 
</noinclude>{{#switch: {{{revision|}}}
 
</noinclude>{{#switch: {{{revision|}}}
 
| 1.0.0 = legacy
 
| 1.0.0 = legacy
| 1.1.0 | latest = latest
+
| 1.1.0 = latest
 
| #default = unknown
 
| #default = unknown
 
}}
 
}}

Attachments

Discussions