1. Usage[edit source]
The EcosystemFlow/Warning template is used to insert a message about the current status of the article or chapter containing it.
Usage: {{EcosystemFlow/Warning| flow=<flow> }}
Where:
- <flow> is the identifier of the wiki. 2 values are possible:
- v2: the meaning of message associated to this v2 value highlights the fact that the article or chapter has not been updated for the v2 version. To be used when the article should have been updated for the v2 version but the update has not been done yet.
- v3 : the meaning of message associated to the v3 value highlights that the article has been updated for v3 in v2 version. Consequently, this updated version must not be published yet.
Generally speaking, v2 (resp vN) corresponds to current flow, and v3 (resp vN+1) corresponds to the up coming flow.
The returned value is:
- a generic or custom message depending on the parameters
- "unknown flow", if <flow> is not supported.
2. Basic examples[edit source]
You type | You get |
---|---|
Generic message
{{EcosystemFlow/Warning}} |
unknown flow |
Message when flow is v2
{{EcosystemFlow/Warning | flow=v2}} |
|
Message when flow is v3
{{EcosystemFlow/Warning | flow=v3}} |
3. More examples[edit source]
You type | You get |
---|---|
Unknown flow
{{EcosystemFlow/Warning | flow=v0}} |
unknown flow |
Unspecified flow
{{EcosystemFlow/Warning}} |
unknown flow |
Check that there's no space before and after the text
BEFORE{{EcosystemFlow/Warning}}AFTER<br> BEFORE{{EcosystemFlow/Warning | flow=v2}}AFTER<br> BEFORE{{EcosystemFlow/Warning |flow=v3}}AFTER |
BEFOREunknown flow BEFOREAFTER |
4. Code[edit source]
unknown flow