模板:EcosystemFlow/Archives

来自百问网嵌入式Linux wiki

Usage

The EcosystemFlow/Archives template is used to insert a generic or custom message about the wiki archives so that readers might switch from a wiki dedicated to an ecosystem releases flow (e.g. v2.y.z) to a wiki dedicated to another ecosystem releases flow (e.g. v1.y.z).

The generic message offers readers to read the article of the Wiki archives content tab where they get the list of the wiki archives, which allows them to explicitly switch on a wiki dedicated to another ecosystem releases flow.

Usage: {{EcosystemFlow/Archives | custom=<custom> | flow=<flow> | page=<page>}}

Where:

  • <custom> is the optional identifier of a custom message. 2 values are currently possible:
    • Basic: a simple interwiki link between the current wiki and the targeted wiki is inserted.
    • Android: a custom message for the STM32MPU distribution for Android™ is inserted.
  • <flow> is the identifier of the targeted wiki dedicated to another ecosystem releases flow than the current one. This parameter is mandatory if <custom> is set, else it is ignored. 1 value is currently possible:
  • <page> is the name of the targeted page in the targeted wiki request. This parameter is optional if <custom> is set (per default, it is set with the name of the current page), else it is ignored. Whether this parameter is set or not, please cross-check that the targeted page really exists in the targeted wiki.

The returned value is:

  • a generic or custom message depending on the parameters
  • "unknown custom", if <custom> is not supported.
  • "unknown flow", if <flow> is not supported.

Basic examples

You type You get
Generic message
{{EcosystemFlow/Archives}}

{{#vardefine:link|unknown flow}}This wiki is for the v2 ecosystem releases. For information about the previous ecosystem releases, please go through the Wiki archives.

Simple interwiki link (link to the current page i.e. Template:EcosystemFlow/Archives)
{{EcosystemFlow/Archives | custom=Basic | flow=v1}}

{{#vardefine:link|模板:EcosystemFlow/Archives page for the v1 ecosystem releases (in archived wiki)}}{{#var:link}}

Simple interwiki link (link to the "Development zone" page)
{{EcosystemFlow/Archives | custom=Basic | flow=v1 | page=Development zone}}

{{#vardefine:link|Development zone page for the v1 ecosystem releases (in archived wiki)}}{{#var:link}}

Custom message for the STM32MPU distribution for Android™ (link to the current page i.e. Template:EcosystemFlow/Archives)
{{EcosystemFlow/Archives | custom=Android | flow=v1}}

{{#vardefine:link|模板:EcosystemFlow/Archives page for the v1 ecosystem releases (in archived wiki)}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.

Custom message for the STM32MPU distribution for Android™ (link to the "STM32MP1 Developer Package for Android" page)
{{EcosystemFlow/Archives | custom=Android | flow=v1 | page=STM32MP1 Developer Package for Android}}

{{#vardefine:link|STM32MP1 Developer Package for Android page for the v1 ecosystem releases (in archived wiki)}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.

More examples

You type You get
Unknown custom
{{EcosystemFlow/Archives | custom=not supported | flow=v1}}

{{#vardefine:link|模板:EcosystemFlow/Archives page for the v1 ecosystem releases (in archived wiki)}}unknown custom

Unknown flow
{{EcosystemFlow/Archives | custom=Android | flow=v0}}

{{#vardefine:link|unknown flow}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.

Unspecified flow
{{EcosystemFlow/Archives | custom=Android}}

{{#vardefine:link|unknown flow}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.

The targeted page doesn't exist in the targeted wiki: it is not detected (broken link)
{{EcosystemFlow/Archives | custom=Android | flow=v1 | page=not supported}}

{{#vardefine:link|not supported page for the v1 ecosystem releases (in archived wiki)}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.

Check that there's no space before and after the text
BEFORE{{EcosystemFlow/Archives}}AFTER<br>
BEFORE{{EcosystemFlow/Archives | custom=Basic | flow=v1}}AFTER<br>
BEFORE{{EcosystemFlow/Archives | custom=Android | flow=v1}}AFTER

BEFORE{{#vardefine:link|unknown flow}}This wiki is for the v2 ecosystem releases. For information about the previous ecosystem releases, please go through the Wiki archives.AFTER
BEFORE{{#vardefine:link|模板:EcosystemFlow/Archives page for the v1 ecosystem releases (in archived wiki)}}{{#var:link}}AFTER
BEFORE{{#vardefine:link|模板:EcosystemFlow/Archives page for the v1 ecosystem releases (in archived wiki)}}The STM32MPU distribution for Android™ is not yet available in the v2 ecosystem releases: please refer to the {{#var:link}}.AFTER

Code

{{#vardefine:link|unknown flow}}This wiki is for the v2 ecosystem releases. For information about the previous ecosystem releases, please go through the Wiki archives.