Difference between revisions of "Template:Newslist"

From Twinsuniverse
Jump to: navigation, search
m (Protected "Template:Newslist": only admins should be able to add news (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)) [cascading])
m
Line 7: Line 7:
 
  |Many content from the Twinsunica was imported and improved, including the [[:Category:Twinsuniverse|metapages]] and [[:Category:Twinsuniverse - Templates|templates]].
 
  |Many content from the Twinsunica was imported and improved, including the [[:Category:Twinsuniverse|metapages]] and [[:Category:Twinsuniverse - Templates|templates]].
 
}}
 
}}
{{#ifeq: {{lc:{{{mode|}}}}} | latest |<div style="text-align: right">[[Twinsuniverse:News messages|more news]]</div>|
+
{{#ifeq: {{lc:{{{mode|}}}}} | latest |<div style="text-align: right">[[Twinsuniverse:News messages|more news]]</div>|<nowiki />
 +
 
 
==News Archive==
 
==News Archive==
 
__NOEDITSECTION__
 
__NOEDITSECTION__

Revision as of 10:30, 25 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 Update

23 December 2012

  • Best news ever! We can now display news.


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