Template:Dailynews: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#dpl:
<includeonly>{{#dpl:
category=Published&{{#time:F j, Y|-{{{prev}}} days}}
category=Published&{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}
|namespace=News
|namespace=News
|notcategory=Disputed
|notcategory=Disputed

Revision as of 21:16, 3 February 2009

Template usage

  • use like
    • {{Dailynews|prev=1}} to display yesterday's news.
    • {{Dailynews|prev=0}} will display today's news, like this


example display (today & yesterday's news)

{{#dpl: category=Published&May 16, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader= 

|resultsheader=

May 16

|includepage=* |includemaxlength=300 }} {{#dpl: category=Published&May 15, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader= 

|resultsheader=

May 15

|includepage=* |includemaxlength=300 }}