Difference between revisions of "Template:EcosystemRelease/Components"

[quality revision] [quality revision]
m
m
 

1 Usage[edit]

The EcosystemRelease/Components template returns the version of all software components delivered by an ecosystem release revision of the flow associated with this wiki (e.g. v1.y.z ,or v2.y.z, or...).

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

Where:

  • <revision> is the mandatory revision of the ecosystem release, for which the version of all software components is requested.

The returned value is:

  • a string that contains the version of all the software components delivered by the ecosystem release revision, in a form that is usable by a tooltip.
  • "unknown revision", if <<revision> is not supported.

This template relies on the EcosystemRelease/Component template.

2 Basic examples[edit]

You type You get
Components version for vx.0.0 revision requested
{{EcosystemRelease/Components | revision=x.0.0}}

Main software components: Linux kernel vx.y (example) U-Boot vx.y (example) TF-A vx.y (example) OP-TEE vx.y (example) STM32CubeMP1 Package vx.y (example) OpenEmbedded vx.y (example)

Components version for v2.1.0 revision requested

{{EcosystemRelease/Components | revision=2.1.0}}

Main software components: Linux kernel v5.4-stm32mp-r2 (v5.4.56) U-Boot v2020.01-stm32mp-r2 TF-A v2.2-stm32mp-r2 OP-TEE v3.9.0-stm32mp-r2 STM32CubeMP1 Package v1.3.0 OpenEmbedded v3.1.3 (Dunfell) Android v11.0.0

3 More examples[edit]

You type You get
Components version for vx.2.0 revision requested
{{EcosystemRelease/Components | revision=x.2.0}}

Main software components: Linux kernel vx.y (example) U-Boot vx.y (example) TF-A vx.y (example) OP-TEE vx.y (example) STM32CubeMP1 Package vx.y (example) OpenEmbedded vx.y (example) Android vx.y (example)

Components version for vx.1.0 revision requested
{{EcosystemRelease/Components | revision=x.1.0}}

Main software components: Linux kernel vx.y (example) U-Boot vx.y (example) TF-A vx.y (example) OP-TEE vx.y (example) STM32CubeMP1 Package vx.y (example) OpenEmbedded vx.y (example) Android vx.y (example)

Unspecified revision
{{EcosystemRelease/Components}}

Main software components: unknown revision

Unknown revision
{{EcosystemRelease/Components | revision=10.20.30}}

Main software components: unknown revision

4 Code[edit]

Main software components: unknown revision

<noinclude>

==Usage==
The [[Template:EcosystemRelease/Components|EcosystemRelease/Components]] template returns '''the version of all software components''' delivered by an ecosystem release revision of the flow associated with this wiki (e.g. v1.y.z ,or v2.y.z, or...).

 Usage: <nowiki>{{</nowiki>EcosystemRelease/Components | revision={{HighlightParam|<revision>}}}}
Where:
* {{HighlightParam|<revision>}} is the '''mandatory''' revision of the ecosystem release, for which the version of all  software components is requested.
** The possible values for this parameter are available in the [[Template:EcosystemRelease/Revision|EcosystemRelease/Revision]] template.

The returned value is:
* a string that contains the version of all the software components delivered by the ecosystem release revision, in a form that is usable by a tooltip.
* "unknown revision", if {{HighlightParam|<<revision>}} is not supported.

This template relies on the [[Template:EcosystemRelease/Component|EcosystemRelease/Component]] template.

==Basic examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Components version for vx.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Components | revision=x.0.0}}</pre>

|
{{EcosystemRelease/Components | revision=x.0.0}}
|}

==-
| Components version for v2.1.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Components | revision=2.1.0}}</pre>

|
{{EcosystemRelease/Components | revision=2.1.0}}
|}

==More examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Components version for vx.2.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Components | revision=x.2.0}}</pre>

|
{{EcosystemRelease/Components | revision=x.2.0}}
|-
| Components version for vx.1.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Components | revision=x.1.0}}</pre>

|
{{EcosystemRelease/Components | revision=x.1.0}}
|-
| Unspecified revision<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Components}}</pre>

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

{{EcosystemRelease/Components | revision=10.20.30}}</pre>

|
{{EcosystemRelease/Components | revision=10.20.30}}
|}

==Code==</noinclude>Main software components:&#10;{{#switch: {{EcosystemRelease/Revision| revision={{{revision|}}}}}
| unknown = {{Highlight|unknown revision}}
| #default = {{EcosystemRelease/Component | revision={{{revision|}}} | component=Linux kernel}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=U-Boot}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=TF-A}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=OP-TEE}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=STM32CubeMPU}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=OpenEmbedded}}&#10;{{EcosystemRelease/Component | revision={{{revision|}}} | component=Android}}
}}
Line 24: Line 24:
 
|
 
|
 
{{EcosystemRelease/Components | revision=x.0.0}}
 
{{EcosystemRelease/Components | revision=x.0.0}}
  +
|-
  +
| Components version for v2.1.0 revision requested
  +
<pre style="white-space: pre-wrap;">
  +
{{EcosystemRelease/Components | revision=2.1.0}}
  +
</pre>
  +
|
  +
{{EcosystemRelease/Components | revision=2.1.0}}
 
|}
 
|}