Template:FedoraVersionNumber

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Added Category:Fedora Templates for templates about Fedora)
(Made this template dependent on Template:CurrentFedoraVersion)
Line 1: Line 1:
 
{{#switch: {{{1|current}}}
 
{{#switch: {{{1|current}}}
| previous2 = 13
+
| previous2 = {{#expr: {{CurrentFedoraVersion}} - 2 }}
| previous = 14
+
| previous = {{#expr: {{CurrentFedoraVersion}} - 1 }}
| current = 15
+
| current = {{CurrentFedoraVersion}}
| next = 16
+
| next = {{#expr: {{CurrentFedoraVersion}} + 1 }}
| next2 = 17
+
| next2 = {{#expr: {{CurrentFedoraVersion}} + 2 }}
 
| #default = {{{1}}}
 
| #default = {{{1}}}
 
}}<noinclude>
 
}}<noinclude>

Revision as of 22:29, 19 July 2011

21

Template documentation [edit]
This documentation is transcluded from Template:FedoraVersionNumber/doc. It will not be transcluded on pages that use this template.

The Template:FedoraVersionNumber template allows the display of Fedora version numbers in relative terms, such as current, next, and previous.

Code What you see
The current version of [[Fedora]] is '''{{FedoraVersionNumber|current}}'''.
The current version of Fedora is 21.
The next version of [[Fedora]] is '''{{FedoraVersionNumber|next}}'''.
The next version of Fedora is 22.
The previous version of [[Fedora]] is '''{{FedoraVersionNumber|previous}}'''.
The previous version of Fedora is 20.
Fedora {{FedoraVersionNumber|previous2}} was two versions ago.
Fedora 19 was two versions ago.
Fedora {{FedoraVersionNumber|next2}} will come two releases from now.
Fedora 23 will come two releases from now.