From Fedora Project Wiki
Sahilahuja (talk | contribs) (Adding example that shows error in "next") |
(document flavor parameters) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
* Long (ex. Fedora 9) | * Long (ex. Fedora 9) | ||
* Full (ex. Fedora release 9 (Sulphur)) | * Full (ex. Fedora release 9 (Sulphur)) | ||
** For Fedora releases > 20, the parenthetical release name is suppressed since it no longer exists. | |||
* Cloud (ex. Fedora Cloud 21) | |||
* Server (ex. Fedora Server 21) | |||
* Workstation (ex. Fedora Workstation 21) | |||
===Version=== | ===Version=== | ||
* current '''Default''' | * current '''Default''' | ||
Line 20: | Line 24: | ||
<code><nowiki>{{FedoraVersion|long|2}}</nowiki></code> returns '''{{FedoraVersion|long|2}}'''. | <code><nowiki>{{FedoraVersion|long|2}}</nowiki></code> returns '''{{FedoraVersion|long|2}}'''. | ||
<code><nowiki>{{FedoraVersion|next}}</nowiki></code> | <code><nowiki>{{FedoraVersion|number|next}}</nowiki></code> : Instead use <code><nowiki>{{FedoraVersionNumber|next}}</nowiki></code> | ||
<code><nowiki>{{FedoraVersion|full|previous}}</nowiki></code> returns '''{{FedoraVersion|full|previous}}'''. | <code><nowiki>{{FedoraVersion|full|previous}}</nowiki></code> returns '''{{FedoraVersion|full|previous}}'''. | ||
<code><nowiki>{{FedoraVersion||previous2}}</nowiki></code> returns '''{{FedoraVersion||previous2}}'''. | |||
<code><nowiki>{{FedoraVersion|server|next2}}</nowiki></code> returns '''{{FedoraVersion|server|next2}}'''. |
Latest revision as of 01:18, 29 January 2015
This template is used to return a formatted version string for fedora.
Parameters
Format
- Number (ex. 9) Default
- Short (ex. F9)
- Long (ex. Fedora 9)
- Full (ex. Fedora release 9 (Sulphur))
- For Fedora releases > 20, the parenthetical release name is suppressed since it no longer exists.
- Cloud (ex. Fedora Cloud 21)
- Server (ex. Fedora Server 21)
- Workstation (ex. Fedora Workstation 21)
Version
- current Default
- previous
- next
- number - a specific release
Examples
{{FedoraVersion}}
returns 41.
{{FedoraVersion|short}}
returns F41.
{{FedoraVersion|long|2}}
returns Fedora 2.
{{FedoraVersion|number|next}}
: Instead use {{FedoraVersionNumber|next}}
{{FedoraVersion|full|previous}}
returns Fedora 40.
{{FedoraVersion||previous2}}
returns 39.
{{FedoraVersion|server|next2}}
returns Fedora Server 43.