Template:Header

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(added instructions and got rid of the dire warnings)
(30 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<noinclude>
+
<div style="height: 60px; width: 100%; background-color: #002867;">
This template provides the headers for all the sub-project pages. The syntax is as follows:
+
{{#switch:{{{1|websites}}}
<nowiki>{{header|''project''}}</nowiki>
+
|ambassadors = [[Image:Ambassadors_Header_AmbassadorsN1.png|right]]
where ''project'' is replaced by one of:
+
|anaconda = [[Image:Anaconda.png|right]]
* art ([[Artwork]])
+
* events ([[FedoraEvents]])
+
* infra ([[Infrastructure]])
+
* bugs ([[BugZappers]])
+
 
+
== Adding your project's header to this template ==
+
First, pick a short, individual word that describes your group that isn't above. For examples, see above.
+
 
+
We need a header image now. Upload or find your 468x60 header image and get the name of it, including the <code>Image:</code> and the syntax.
+
 
+
Now, edit this template, and above the line that says
+
|header fail
+
place a line that contains
+
|''shortname'' = [[Image:''filename.png''|right]]
+
replacing ''shortname'' with the shortname you wanted to use, and ''filename.png'' with the filename.
+
 
+
The last and most important part: document your change! Above in the list that shows on the page, add your entry and the index page for your sub-project.
+
</noinclude><includeonly><div style="height: 60px; width: 100%; background-color: #002867; padding: 3px 0;">
+
{{#switch:{{{1|none}}}
+
 
|art = [[Image:Artwork_ArtTeamProjects_WikiDesign_ArtTeamN1.png|right]]
 
|art = [[Image:Artwork_ArtTeamProjects_WikiDesign_ArtTeamN1.png|right]]
 +
|bugs = [[Image:Image-BugZappers bugzappers-wikiheader.png|right]]
 +
|design = [[Image:Artwork_ArtTeamProjects_WikiDesign_ArtTeamN1.png|right]]
 +
|docs = [[Image:DocsProject_Header_docTeam1.png|right]]
 
|events = [[Image:FedoraEvents_Header_EventN1.png|right]]
 
|events = [[Image:FedoraEvents_Header_EventN1.png|right]]
|infra = [[Image:Infrastructure_InfrastructureTeamN1.png|right]]
+
|fonts = [[Image:Fonts_BigHeader.png|right|Fedora Fonts]]
|bugs = [[Image:Image:BugZappers bugzappers-wikiheader.png|right]]
+
|fonts-sig = [[Image:SIGs_Fonts_BigHeader.png|right|The Fedora Fonts Special Interest Group]]
 +
|infra = [[Image:Infrastructure_InfrastructureTeamN1.png|right|link=Infrastructure]]
 +
|websites = [[Image:Artwork_DesignService_fedorawebsitesbanner_3.png|right]]
 +
|astronomy = [[Image:SIGs_Astronomy_astronomy4.png|right]]
 +
|fwn = [[Image:FWN_Header.png|right]]
 +
|qa = [[Image:QA.png|right]]
 +
|education = [[Image:Fedora-EDU-header-1.png|right]]
 +
|marketing = [[Image:FedoraMarketing.png|right]]
 +
|L10N.png = [[Image:L10N.png|right]]
 +
|hospitality = [[Image:FedoraHospitality.png|right]]
 +
|RussianFedora = [[File:RussianFedora_logo_for_wiki.png|right]]
 +
|cloud-sig = [[Image:Cloudsig-banner.png|right|The Fedora Cloud Special Interest Group]]
 
|header fail
 
|header fail
 
}}
 
}}
 
</div>
 
</div>
<div style="margin: 6px 0; height: 2px; width: 100%; background-color: #00578e;"></div></includeonly>
+
<div style="margin: 6px 0; height: 2px; width: 100%; background-color: #00578e;"></div>
 +
<noinclude>{{tempdoc}}</noinclude>

Revision as of 19:36, 3 October 2012

Artwork DesignService fedorawebsitesbanner 3.png
Template documentation [edit]
This documentation is transcluded from Template:Header/doc. It will not be transcluded on pages that use this template.

This template provides the headers for all the sub-project pages. The syntax is as follows:

{{header|project}}

where project is replaced by one of:

Adding your project's header to this template

First, pick a short, individual word that describes your group that isn't above. For examples, see above.

We need a header image now. Upload or find your 468x60 header image and get the name of it, including the Image: and the file extension.

Now, edit this template, and above the line that says

|header fail

place a line that contains

|shortname =

replacing shortname with the shortname you wanted to use, and filename.png with the filename.

The last and most important part: document your change! Edit this documentation, and in the list that shows on the page, add your entry and the index page for your sub-project.