Difference between revisions of "Template:Newslist"
From Twinsuniverse
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) m |
||
Line 25: | Line 25: | ||
==Example== | ==Example== | ||
__NOTOC__ | __NOTOC__ | ||
− | When using the following, only the latest news will be displayed (the example is | + | When using the following, only the latest news will be displayed (the example is just an example message): |
<nowiki>{| border="1" | <nowiki>{| border="1" | ||
|{{newslist|mode=latest}} | |{{newslist|mode=latest}} | ||
Line 31: | Line 31: | ||
{| border="1" | {| border="1" | ||
− | |{{ | + | | |
+ | ==Latest News Update== | ||
+ | {{news message|date=23 december 2012|Best news ever! We can now display news.}} | ||
+ | <div style="text-align:right">[[Twinsuniverse:News messages|more news]]</div> | ||
|} | |} | ||
Revision as of 12:32, 23 December 2012
This template defines the list of all news messages, and when called on a page, offers to display only the latest, or all messages.
Parameters
- mode: whether to show only the latest or all news messages (case insensitive, defaults to all)
Example
When using the following, only the latest news will be displayed (the example is just an example message):
{| border="1" |{{newslist|mode=latest}} |}
Latest News Update23 December 2012
|
Not specifying the mode or leaving it empty will result in all news messages, which won't display the "more news" link.