[yenile]
Bu bir belgeleme sayfası ve içeriği ana şablonun sayfasına görünecek. Daha fazla için Şablon:Belgeleme sayfasına bakınUsage[]
- Given a major version, print the first released major version
majver ( 1.7 | 1.8 | .. )edition ( Pi alpha | Pocket alpha | Playstation 3 | Playstation 4 | Xbox 360 | Xbox One | Alpha | Beta )- optional; omit this (or give an unsupported value) and it defaults to the Computer edition
subedition ( Android | iOS | Fire TV )- Only used if
editionis set toPocket alpha.
- Only used if
- Parameter names are optional, but if they are omitted,
majvermust be listed first andsubeditionlast.
Examples[]
{{MajorVersion|majver=1.7}}→ 1.7.2{{MajorVersion|majver=1.4|edition=Beta}}→ 1.4{{MajorVersion|1.7}}→ 1.7.2{{MajorVersion|1.4|Beta}}→ 1.4{{MajorVersion|0.8|Pocket Alpha}}→ 0.8.0{{MajorVersion|0.8|Pocket Alpha|Fire TV}}→ 0.8.0
Notes[]
- Designed for the prevparent and nextparent fields of Template:Version nav, when used in pages for snapshots;
- Could conceivably be used in other places, where printing the 'major' version number is desired
- Should print formatted as plain text, and not as a link.