Template:Fedora

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Added a simple template that links to Fedora releases)
 
(Added an initial Fedora template, that imports useful info for each release)
Line 1: Line 1:
{{#if: {{{1|}}} | [[Fedora {{#ifexpr: {{{1}}} < 7 | Core}} {{{1}}}]] | [[Fedora]]}}
+
<includeonly>{{#switch: {{{2|}}}
 +
| latest = 15
 +
| codename = {{#switch: {{{1}}}
 +
| 1 = Yarrow
 +
| 2 = Tettnang
 +
| 3 = Heidelberg
 +
| 4 = Stentz
 +
| 5 = Bordeaux
 +
| 6 = Zod
 +
| 7 = Moonshine
 +
| 8 = Werewolf
 +
| 9 = Sulphur
 +
| 10 = Cambridge
 +
| 11 = Leonidas
 +
| 12 = Constantine
 +
| 13 = Goddard
 +
| 14 = Laughlin
 +
| 15 = Lovelock
 +
| 16 = Verne
 +
| {{fedora|{{fedora|latest}}codename}}
 +
}}
 +
| name
 +
| fullname
 +
| {{#if: {{{1|}}} | [[Fedora {{#ifexpr: {{{1}}} < 7 | Core}} {{{1}}}]] | [[Fedora {{fedora|latest}}]]}}
 +
}}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
{{tempdoc}}
 
{{tempdoc}}
 
[[Category:Link templates]]
 
[[Category:Link templates]]
 
</noinclude>
 
</noinclude>

Revision as of 21:57, 19 July 2011


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

Template:Fedora easily displays various information about Fedora releases. Internally, it uses other templates, such as Template:CurrentFedoraVersion and Template:FedoraVersionName to aggregate information.

Code What you see
The latest version of Fedora is {{fedora|fullname}}.
The latest version of Fedora is Fedora 20 (Heisenbug).
The codename for Fedora 13 is {{fedora|codename|13}}.
The codename for Fedora 13 is Goddard.
The full name for the first version of Fedora is {{fedora|fullname|1}}.
The full name for the first version of Fedora is Fedora Core 1 (Yarrow).
Please use "Core" only in releases where it was part of the official name.
For example, "{{fedora|name|6}}" versus "{{fedora|name|7}}"
Please use "Core" only in releases where it was part of the official name. For example, "Fedora Core 6" versus "Fedora 7"