From Fedora Project Wiki

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 41.
The next version of [[Fedora]] is '''{{FedoraVersionNumber|next}}'''.
The next version of Fedora is 42.
The previous version of [[Fedora]] is '''{{FedoraVersionNumber|previous}}'''.
The previous version of Fedora is 40.
Fedora {{FedoraVersionNumber|previous2}} was two versions ago.
Fedora 39 was two versions ago.
Fedora {{FedoraVersionNumber|next2}} will come two releases from now.
Fedora 43 will come two releases from now.