Difference between revisions of "Template:News message"

From Twinsuniverse
Jump to: navigation, search
m
m
Line 21: Line 21:
 
* '''date''': Specify a specific date for the news message (see PHP's [http://www.php.net/manual/en/function.strtotime.php strtotime()] function, defaults to displaying "Recently")
 
* '''date''': Specify a specific date for the news message (see PHP's [http://www.php.net/manual/en/function.strtotime.php 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==
 
==Example==

Revision as of 12:59, 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.