Difference between revisions of "Template:News message"

From Twinsuniverse
Jump to: navigation, search
m
m (now finally got the date to work)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
=== {{#if:{{{date|}}}| {{#time: j F Y - i "min" |{{{date}}}}} | Recently}} ===
+
=== {{#if:{{{date|}}}| {{#time: j F Y |{{{date}}}}} | Recently}} ===
 
__NOEDITSECTION__
 
__NOEDITSECTION__
  

Revision as of 13:00, 23 December 2012

This template is used to add a news message to the {{newslist}} template.


  This article is a stub [list all]. You can help the Twinsuniverse by expanding it.

Parameters

  1. The text of the news message (fully displayed as is)
  2. Additional message
  3. Additional message
  4. Additional message
  5. Additional message
  • date: Specify a specific date for the news message (see PHP's strtotime() function, defaults to displaying "Recently")


Note: If date specifies an incomplete or invalid date, the missing parts will be filled in by their current values, as in "now", which are dependant of the last time the newslist is saved!

Example

{| border="1"
 | {{news message|There has been news.|date=october 22 2012}}
|}

22 October 2012

  • There has been news.