Template:Dailynews: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
|reset=categories
|reset=categories
|distinct=strict
|distinct=strict
|supresserrors=true
|suppresserrors=true
|resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3>
|resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3>
|includepage=*
|includepage=*

Revision as of 21:33, 3 February 2009

Template usage

  • use like
    • {{Dailynews}} to display today's news
    • {{Dailynews|prev=1}} to display yesterday's news.
    • {{Dailynews|len=200}} to display today's news and limit display length per article.
    • {{Dailynews|prev=1|len=200}} to display yesterday's news with length limit.
  • Note: default limit is 300 chars

|noresultsheader= 

example display (today & yesterday's news)

{{#dpl: category=Published&May 19, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |reset=categories |distinct=strict |suppresserrors=true

|resultsheader=

May 19

|includepage=* |includemaxlength=300 }} {{#dpl: category=Published&May 18, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |reset=categories |distinct=strict |suppresserrors=true

|resultsheader=

May 18

|includepage=* |includemaxlength=300 }}