Difference between revisions of "Template:Software/NewsHeader"
| Line 1: | Line 1: | ||
| − | <includeonly>;{{{1}}} | + | <includeonly>;{{{1}}} |
| − | + | <table width="100%" border="1" cellspacing="0" cellpadding="3"> | |
| + | <tr> | ||
<th width="90">Date</th> | <th width="90">Date</th> | ||
{{#if:{{{addHeaders|}}}|{{{addHeaders}}}}} | {{#if:{{{addHeaders|}}}|{{{addHeaders}}}}} | ||
<th>Description</th> | <th>Description</th> | ||
| − | <th width="250">Link</th></tr> | + | <th width="250">Link</th> |
| + | </tr> | ||
{{{2}}} | {{{2}}} | ||
</table></includeonly><!-- | </table></includeonly><!-- | ||
Revision as of 11:05, 23 November 2010
Header for a news block, used in software release pages.
Template
{{Software/NewsHeader|month|addHeaders=|
contents
}}
Parameters
- month
- The month and the year of the news block.
- contents
- News entries, which require the {{Software/News}} template.
- addHeaders (optional)
- Additional Headers, that will appear between Date and Description.
- The headers must be in the XHTML table style. For Example:
<th width="200">Header</th>.
Examples
A simple example, with only the basic table headers Date, Description and Link:
{{Software/NewsHeader|October 2010|
{{Software/News|2010-10-04|aico.control 1.5.0 released|[[/1.5.0|aico.control 1.5.0 release page]]}}
{{Software/News|2010-10-12|next news topic|[[link]]}}
}}
Example, which uses the additional table header Version:
{{Software/NewsHeader|October 2010|addHeaders=<th>Version</th>|
{{Software/News|2010-10-04|1.5.0|aico.control 1.5.0 released|[[/1.5.0|aico.control 1.5.0 release page]]}}
{{Software/News|2010-10-12|-|next news topic|[[link]]}}
}}
For more examples refer to pages, which use this template: What links here.
Help:Templates describes general usage of templates, including treatment of special characters.