Difference between revisions of "Template:Newslist"

From Twinsuniverse
Jump to: navigation, search
m
m (updated version)
 
(14 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
===22nd October 2012===
+
{{news message|date=22nd October 2012
__NOEDITSECTION__
+
|The Twinsunica now continues as the '''Twinsuniverse'''! Thanks to [[User:Alexfont|Alexfont]], this new MediaWiki was installed on his server, which thanks to [[User:J McKalling|J McKalling]] was setup as the new Twinsunica and completely revamped with modern day standards.
*The Twinsunica now continues as the '''Twinsuniverse'''! Thanks to [[User:Alexfont|Alexfont]], this new MediaWiki was installed on his server, which thanks to [[User:J McKalling|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 [[: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>|<nowiki />
 +
 
  
{{#ifeq: {{lc:{{{mode|}}}}} | all |
 
 
==News Archive==
 
==News Archive==
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  
{{news message|date=now|
+
{{news message|date=6th June 2014
  |I now need to know whether bulleted lists also remain functioning.
+
  |All templates have finally been updated to render an all-new infobox on their documentation pages, and are automatically organized by it just like content articles. This should make it easier to find a template, and understand all of their properties. This makes all the Characters, Enemies, Items and Templates finished for now. The Location articles and infoboxes will be next.
|Sorry, I forgot I had them automated.}}
+
}}
  
===3rd July 2008===
+
{{news message|date=26th May 2014
__NOEDITSECTION__
+
|[[User:Alexfont|Alexfont]] updated the {{SITENAME}} to MediaWiki software version 1.22.6 (now 1.23.1, 20 July 2014).
*A new front page has been designed by [[User:Torch|Torch]], and a post about it has been submitted to the [http://forum.magicball.net MBN Forums]. Thanks to [[User:Wacko|Wacko]] and [[User:Homeless|Homeless]] for the image!
+
}}
*Various LBA-related happenings have occoured, including progress on the LBA: Prequel and LBA: The Great Rebellion projects.
+
 
 +
{{news message|date=1st January 2013
 +
|Thanks to [[User:Alexfont|Alexfont]] the {{SITENAME}} has now been updated to MediaWiki software version 1.20.2, for some security fixes, bug fixes and new features.
 +
}}
 +
 
 +
{{news message|date=3rd July 2008
 +
|A new front page has been designed by [[User:Torch|Torch]], and a post about it has been submitted to the [http://forum.magicball.net MBN Forums]. Thanks to [[User:Wacko|Wacko]] and [[User:Homeless|Homeless]] for the image!
 +
|Various LBA-related happenings have occoured, including progress on the LBA: Prequel and LBA: The Great Rebellion projects.
 +
}}
 +
 
 +
}}</includeonly><noinclude>{{Infobox Template
 +
|purpose=website
 +
|singletag=optional
 +
|multiline=yes
 +
|gamerelated=no
 +
|suppressible=
 +
|choice=
 +
|cat1=
 +
|var1=
 +
}}
 +
 
 +
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)
 +
 
 +
 
 +
Guide: The news messages should be kept in the order from latest to oldest, and the "latest news" section should only contain the latest most important single news message, not necessarily the latest by date.
 +
 
 +
==Example==
 +
__NOTOC__
 +
When using the following, only the latest news will be displayed (the example is just an example message):
 +
<nowiki>{| border="1"
 +
|{{newslist|mode=latest}}
 +
|}</nowiki>
 +
 
 +
{| 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>
 +
|}
  
|<div style="text-align: right">[[Twinsuniverse:News messages|more news]]</div>
 
}}</includeonly><noinclude>
 
This template keeps track of news entries, and offers to show only the newest or all.
 
  
{{stub}}
+
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]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:40, 20 July 2014

Newslist
Purpose

Website [list all]

Single tag

Optional [list all]

Multi-line

Yes [list all]

Protected

Full [list all]

Game related

No [list all]

Categorization
Categories

none [list all]

Variables
Names

none [list all]

Subpages

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)


Guide: The news messages should be kept in the order from latest to oldest, and the "latest news" section should only contain the latest most important single news message, not necessarily the latest by date.

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.