Template:Dailynews: Difference between revisions
Jump to navigation
Jump to search
Jacki Buros (talk | contribs) No edit summary |
Jacki Buros (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
|addauthor=false | |addauthor=false | ||
|reset=categories | |reset=categories | ||
|noresultsheader= | |||
|distinct=strict | |distinct=strict | ||
|resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3> | |resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3> | ||
|includepage=* | |includepage=* | ||
Line 21: | Line 21: | ||
** <nowiki>{{Dailynews|prev=1|len=200}}</nowiki> to display yesterday's news with length limit. | ** <nowiki>{{Dailynews|prev=1|len=200}}</nowiki> to display yesterday's news with length limit. | ||
* Note: default limit is 300 chars | * Note: default limit is 300 chars | ||
=== example display (today & yesterday's news) === | === example display (today & yesterday's news) === |
Revision as of 21:34, 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&January 14, 2025 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |reset=categories |noresultsheader= |distinct=strict
|resultsheader=
January 14
|includepage=* |includemaxlength=300 }} {{#dpl: category=Published&January 13, 2025 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |reset=categories |noresultsheader= |distinct=strict
|resultsheader=
January 13
|includepage=* |includemaxlength=300 }}