Difference between revisions of "Template:Newslist"

From Twinsuniverse
Jump to: navigation, search
m
m
Line 17: Line 17:
  
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
This template keeps track of news entries, and offers to show only the newest or all.
+
This template defines the list of all news messages, and when called on a page, offers to display only the latest, or all messages.
  
{{stub}}
+
==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 Update

22 October 2012

  • The Twinsunica now continues as the Twinsuniverse! Thanks to Alexfont, this new MediaWiki was installed on his server, which thanks to J McKalling was setup as the new Twinsunica and completely revamped with modern day standards.
  • Many content from the Twinsunica was imported and improved, including the metapages and templates.


Not specifying the mode or leaving it empty will result in all news messages, which won't display the "more news" link.