From Fedora Project Wiki

mNo edit summary
(Move from obsolete Extension:Click to File link)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<onlyinclude><div style="float:right; padding: 0px 0px 1em 1em; clear: right;">
This template provides compact headers for interested Fedora groups. The syntax is as follows:
{{#switch:{{{1|fonts|fonts-sig}}}
<nowiki>{{CompactHeader|</nowiki>''group''<nowiki>}}</nowiki>
|fonts = [[File:Fonts_CompactHeader.png|link=Category:Fonts|A page on Fedora Fonts]]
where ''group'' is replaced by one of:
|fonts-sig = [[File:SIGs_Fonts_CompactHeader.png|link=Category:Fonts SIG|A page of the Fonts Special Interest Group]]
 
* fonts ([[SIGs/Fonts]])
 
 
== Adding your group's compact 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 compact header image now. Upload or find your 480x50 compact 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''|tooltip]]
replacing ''shortname'' with the shortname you wanted to use, ''filename.png'' with the filename, and ''tooltip'' with the image tooltip.
 
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 group.
</noinclude><includeonly><div style="float:right; padding: 0px 0px 1em 1em;">
{{#switch:{{{1|none}}}
|fonts = [{{SERVER}}{{localurl:SIGs/Fonts}} http://fedoraproject.org/w/uploads/7/7d/SIGs_Fonts_CompactHeader.png] [[Image:SIGs_Fonts_CompactHeader.png|A page of the Fedora Fonts Special Interest Group]]
| boo = [[Image:SIGs_Fonts_CompactHeader.png|A page of the Fedora Fonts Special Interest Group]]
|header fail
|header fail
}}
}}
</div></includeonly>
</div></onlyinclude>
 
{{tempdoc}}
[[Category:Header templates]]

Latest revision as of 11:29, 26 July 2011

A page on Fedora Fonts

Template documentation [edit]

This documentation is transcluded from Template:CompactHeader/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:

{{Compactheader|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.