模板:MW version/status
{{#switch: {{#if:|}}" | pre-1.1.0" | 1.1" | 1.2" | 1.3" | 1.4" | 1.5" | 1.6" | 1.7" | 1.8" | 1.9" | 1.10" | 1.11" | 1.12" | 1.13" | 1.14" | 1.15" | 1.16" | MediaWiki 1.17" | 1.17" | MediaWiki 1.18" | 1.18" | MediaWiki 1.19" | 1.19" | MediaWiki 1.20" | 1.20" | MediaWiki 1.21" | 1.21" | MediaWiki 1.22" | 1.22" | MediaWiki 1.23" | 1.23" | MediaWiki 1.24" | 1.24" | MediaWiki 1.25" | 1.25" | MediaWiki 1.26" | 1.26" | MediaWiki 1.27" | 1.27" | MediaWiki 1.28" | 1.28" | MediaWiki 1.29" | 1.29" | MediaWiki 1.30" | 1.30" | MediaWiki 1.32" | 1.32" | MediaWiki 1.33" | 1.33" = unsupported | MediaWiki 1.31" | 1.31" | MediaWiki 1.34" | 1.34" = legacy | MediaWiki 1.35" | 1.35" = stable | MediaWiki 1.36" | 1.36" | master" | trunk" | PROPOSED" = future |#default = unknown }}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:== Usage ==
{{MW version/status|{{#invoke:Version|get|stable|branch}}}}
Outputs: {{#switch: {{#if: {{#invoke:Version|get|stable|branch}} | {{#invoke:Version|get|stable|branch}} }}" | pre-1.1.0" | 1.1" | 1.2" | 1.3" | 1.4" | 1.5" | 1.6" | 1.7" | 1.8" | 1.9" | 1.10" | 1.11" | 1.12" | 1.13" | 1.14" | 1.15" | 1.16" | MediaWiki 1.17" | 1.17" | MediaWiki 1.18" | 1.18" | MediaWiki 1.19" | 1.19" | MediaWiki 1.20" | 1.20" | MediaWiki 1.21" | 1.21" | MediaWiki 1.22" | 1.22" | MediaWiki 1.23" | 1.23" | MediaWiki 1.24" | 1.24" | MediaWiki 1.25" | 1.25" | MediaWiki 1.26" | 1.26" | MediaWiki 1.27" | 1.27" | MediaWiki 1.28" | 1.28" | MediaWiki 1.29" | 1.29" | MediaWiki 1.30" | 1.30" | MediaWiki 1.32" | 1.32" | MediaWiki 1.33" | 1.33" = unsupported | MediaWiki 1.31" | 1.31" | MediaWiki 1.34" | 1.34" = legacy | MediaWiki 1.35" | 1.35" = stable | MediaWiki 1.36" | 1.36" | master" | trunk" | PROPOSED" = future |#default = unknown }}
Possible output values:
- unsupported
- legacy
- stable
- future
- unknown|
[[Category:Template documentation pages{{#translation:}}]] }}