Template:News/testcases

From Gentoo Wiki
Jump to: navigation, search
Note
This is the template test case page for Template:News and its sandbox version. You may have to purge this page to update the examples.
No parameter
Wiki code {{News}}

Main version
Sandbox version
{{News}}: No 1. unnamed parameter defined. For correct usage see template's documention.


Parameter: date
Wiki code {{News|date=Aug 2, 2012}}

Main version

Aug 2, 2012: {{{header}}}

{{{body}}}

Sandbox version
{{News}}: No 2. unnamed parameter defined. For correct usage see template's documention.


Parameter: date, header
Wiki code {{News|date=Aug 2, 2012|header=A header}}

Main version

Aug 2, 2012: A header

{{{body}}}

Sandbox version
{{News}}: No 3. unnamed parameter defined. For correct usage see template's documention.
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.