<includeonly>[[Template:#switch: {{{1|]]}
 | = <!-- empty is ignored for now -->
 | 0.1 = [[Category:Version 0.1]]
 | 0.3 = [[Category:Version 0.3]]
 | 0.4 = [[Category:Version 0.4]]
 | Milestone 2 = [[Category:Milestone 2]]
 | Milestone 3 = [[Category:Milestone 3]]
 | default [[Category:Version unknown]]
}}</includeonly><noinclude>The '''Version to category''' template takes a version number as only argument and puts the including page in an appropriate category.

Currently the following mapping is performed:
{| border="1"
! Argument
! Category
|-
| 0.1 || [[:Category:Version 0.1]]
|-
| 0.3 || [[:Category:Version 0.3]]
|-
| 0.4 || [[:Category:Version 0.4]]
|-
| Milestone 2 || [[:Category:Milestone 2]]
|-
| Milestone 3 || [[:Category:Milestone 3]]
|}

== Example usage ==

 <nowiki>[[Template:Version to category|0.3]]</nowiki>

[[Category:Templates]]
</noinclude>
