Template:Dailynews: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#dpl:
<includeonly>{{#ifeq:{{PAGESINCA{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}}}|0||{{#dpl:
category=Published&{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}
category=Published&{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}
|namespace=News
|namespace=News
Line 13: Line 13:
|includepage=*
|includepage=*
|includemaxlength={{#ifeq:{{{len|}}}||300|{{{len}}}}}
|includemaxlength={{#ifeq:{{{len|}}}||300|{{{len}}}}}
}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
=== Template usage ===
=== Template usage ===
* use like
* use like

Revision as of 22:02, 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


example display (today & yesterday's news)

{{#dpl: category=Published&November 9, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |reset=categories |noresultsheader=  |distinct=strict

|resultsheader=

November 9

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

|resultsheader=

November 8

|includepage=* |includemaxlength=100 }}