Template:News

From Gentoo Wiki
Jump to: navigation, search

{{{date}}}: {{{header}}}

{{{body}}}

[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template for a news item.

Parameters

1. date
Add the date.
2. header
Add the heading.
3. body
Add the news text body.
4. id
Add link text (id HTML attribute). Note: This can conflict with other ids on the page, so make it unique if possible. A UUID generator can't hurt.

Usage

See the template's testcases:





Parameter: date, header, body
Wiki code {{News|date=Aug 2, 2012|header=A header|body= This is a news item. }}

Main version

Aug 2, 2012: A heading

This is a news item.

Sandbox version

Aug 2, 2012: A heading

This is a news item.

Parameter: id, date, header, body
Wiki code {{News|id=1|date=Aug 2, 2012|header=A header|body= This is a news item with an id attribute for linking. }}

Main version

Aug 2, 2012: A heading

This is a news item with an id attribute for linking.

Sandbox version

Aug 2, 2012: A heading

This is a news item with an id attribute for linking.

Note
The above documentation is transcluded from Template:News/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)