模板:EcosystemRelease

来自百问网嵌入式Linux wiki
Wiki讨论 | 贡献2020年5月6日 (三) 10:22的版本 (创建页面,内容为“<noinclude> ==Usage== The EcosystemRelease template is used '''to indicate for which ecosystem release revision(s)''' of the flow assoc…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Usage

The EcosystemRelease template is used to indicate for which ecosystem release revision(s) of the flow associated with this wiki (e.g. v1.y.z ,or v2.y.z, or...), an article part (chapter, paragraph, table...) is valid. Per default (i.e. if this template is not used), any part of an article is valid for all ecosystem release revisions for which the entire article is valid.

It outputs a "standardized" string that might be used to name an article part.

Usage: {{EcosystemRelease | revision=<revision> | range =<range> | revision2=<revision2>}}

Where:

  • <revision> is the mandatory ecosystem release revision for which the article part is valid.
    • The possible values for this parameter are available in the EcosystemRelease/Revision template.
    • The optional <range> and <revision2> parameters allow to define a range of revisions.
  • <range> is the optional range of the ecosystem release revisions for which the article part is valid. The possible values are:
    • and before: the article part is valid only for the revision(s) less than or equal to <revision>
    • and after: the article part is valid only for the revision(s) greater than or equal to <revision>
    • to: the article part is only valid from <revision> to <revision2>
  • <revision2> is the mandatory ecosystem release upper revision for which the article part is valid, when <range> is set to "to"; in this case, <revision> becomes the lower revision for which the article part is valid.
    • This parameter is ignored if <range> is either not set, or set to another value than "to".

If the mouse is left over a revision (or the More info.png icon), a popup window shows, for that revision:

  • the versions of the Linux kernel, U-Boot, TF-A and OP-TEE
  • the version of the STM32Cube MPU Package
  • the version of OpenEmbedded
  • the version of Android

This information comes from the EcosystemRelease/Components template.

Basic examples

You type You get
A specific revision (revision 1.2.0)
{{EcosystemRelease | revision=1.2.0}}

ecosystem release no more valid revision 1.2.0 Warning.png{{#set:Ecosystem release=no more valid revision 1.2.0}}

Revisions that are lower than or equal to a revision
{{EcosystemRelease | revision=x.1.0 | range=and before}}

ecosystem release ≤ vx.1.0 More info.png {{#set:Ecosystem release=x.1.0}}

Revisions that are greater than or equal to a revision
{{EcosystemRelease | revision=x.1.0 | range=and after}}

ecosystem release ≥ vx.1.0 More info.png {{#set:Ecosystem release=x.1.0}}

Range of revisions
{{EcosystemRelease | revision=x.0.0 | range=to | revision2=x.1.0}}

ecosystem release vx.0.0 More info.png to x.1.0 More info.png{{#set:Ecosystem release=x.0.0}}

More examples

You type You get
Revision 1.1.0
{{EcosystemRelease | revision=1.1.0}}

ecosystem release no more valid revision 1.1.0 Warning.png{{#set:Ecosystem release=no more valid revision 1.1.0}}

Revision 1.0.0
{{EcosystemRelease | revision=1.0.0}}

ecosystem release no more valid revision 1.0.0 Warning.png{{#set:Ecosystem release=no more valid revision 1.0.0}}

Former revision that is part of a flow that is not the one associated with this wiki.
{{EcosystemRelease | revision=0.y.0}}

ecosystem release no more valid revision 0.y.0 Warning.png{{#set:Ecosystem release=no more valid revision 0.y.0}}

Unspecified revision
{{EcosystemRelease}}

ecosystem release unknown revision Warning.png

Unknown revision
{{EcosystemRelease | revision=10.20.30}}

ecosystem release unknown revision 10.20.30 Warning.png

Unspecified revision2
{{EcosystemRelease | revision=x.1.0 | range=to}}

ecosystem release vx.1.0 More info.png to unknown revision Warning.png{{#set:Ecosystem release=x.1.0}}

Unknown revision2
{{EcosystemRelease | revision=x.1.0 | range=to | revision2=10.20.30}}

ecosystem release vx.1.0 More info.png to unknown revision 10.20.30 Warning.png{{#set:Ecosystem release=x.1.0}}

Ignored revision2
{{EcosystemRelease | revision=x.0.0 | range=and after  | revision2=x.1.0}}

ecosystem release ≥ vx.0.0 More info.png {{#set:Ecosystem release=x.0.0}}

Unknown range
{{EcosystemRelease | revision=x.1.0 | range=error}}

ecosystem release vx.1.0 More info.png unknown range error Warning.png{{#set:Ecosystem release=x.1.0}}

Check that there's no space before and after the text
BEFORE{{EcosystemRelease | revision=x.0.0}}AFTER<br>
BEFORE{{EcosystemRelease | revision=x.1.0 | range=and before}}AFTER<br>
BEFORE{{EcosystemRelease | revision=x.1.0 | range=and after}}AFTER<br>
BEFORE{{EcosystemRelease | revision=x.0.0 | range=to | revision2=x.1.0}}AFTER

BEFOREecosystem release vx.0.0 More info.png {{#set:Ecosystem release=x.0.0}}AFTER
BEFOREecosystem release ≤ vx.1.0 More info.png {{#set:Ecosystem release=x.1.0}}AFTER
BEFOREecosystem release ≥ vx.1.0 More info.png {{#set:Ecosystem release=x.1.0}}AFTER
BEFOREecosystem release vx.0.0 More info.png to x.1.0 More info.png{{#set:Ecosystem release=x.0.0}}AFTER

Code

ecosystem release unknown revision Warning.png