Difference between revisions of "Template:Newslist"
From Twinsuniverse
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) m |
||
Line 17: | Line 17: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | This template | + | 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== | ||
+ | __NOTOC__ | ||
+ | When using the following, only the latest news will be displayed (the example is the actual latest news before this template was last saved): | ||
+ | <nowiki>{| border="1" | ||
+ | |{{newslist|mode=latest}} | ||
+ | |}</nowiki> | ||
+ | |||
+ | {| border="1" | ||
+ | |{{newslist|mode=latest}} | ||
+ | |} | ||
+ | |||
+ | |||
+ | Not specifying the mode or leaving it empty will result in all news messages, which won't display the "more news" link. | ||
[[Category:Twinsuniverse - Templates]] | [[Category:Twinsuniverse - Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 12:23, 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 the actual latest news before this template was last saved):
{| border="1" |{{newslist|mode=latest}} |}
Latest News Update22 October 2012
|
Not specifying the mode or leaving it empty will result in all news messages, which won't display the "more news" link.