From Fedora Project Wiki

No edit summary
(switched to using tempdoc standard)
Line 1: Line 1:
<noinclude>
<div style="float:right; padding: 0px 0px 1em 1em;">
This template provides compact headers for interested Fedora groups. The syntax is as follows:
{{#switch:{{{1|fonts}}}
<nowiki>{{CompactHeader|</nowiki>''group''<nowiki>}}</nowiki>
where ''group'' is replaced by one of:
 
* fonts ([[:Category:Fonts SIG|Fonts SIG]])
 
 
== 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'' = {{#Click:URL|Image:''filename.png''|tooltip}}
replacing ''shortname'' with the shortname you wanted to use, ''filename.png'' with the filename, and ''tooltip'' with the image tooltip.  Note, the tooltip does not work yet.
 
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 = {{#Click::Category:Fonts SIG|SIGs_Fonts_CompactHeader.png|A page of the Fedora Fonts Special Interest Group}}
|fonts = {{#Click::Category:Fonts SIG|SIGs_Fonts_CompactHeader.png|A page of the Fedora Fonts Special Interest Group}}
|header fail
|header fail
}}
}}
</div></includeonly>
</div><noinclude>{{tempdoc}}</noinclude>

Revision as of 18:43, 27 June 2008

{{#Click::Category:Fonts SIG|SIGs_Fonts_CompactHeader.png|A page of the Fedora Fonts Special Interest Group}}

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.