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 1: | Line 1: | ||
<includeonly>{{#dpl: | <includeonly>{{#dpl: | ||
category=Published&{{#time:F j, Y|-{{{ | category=Published&{{#time:F j, Y|-{{{prev}}} days}} | ||
|namespace=News | |namespace=News | ||
|notcategory=Disputed | |notcategory=Disputed | ||
Line 8: | Line 8: | ||
|addauthor=false | |addauthor=false | ||
|noresultsheader= | |noresultsheader= | ||
|resultsheader=<h3>{{#time:F j|-{{{ | |resultsheader=<h3>{{#time:F j|-{{{prev}}} days}}</h3> | ||
|includepage=* | |includepage=* | ||
|includemaxlength=300 | |includemaxlength=300 | ||
Line 14: | Line 14: | ||
=== Template usage === | === Template usage === | ||
* use like | * use like | ||
* <nowiki>{{Dailynews|1}}</nowiki> to display yesterday's news. | * <nowiki>{{Dailynews|prev=1}}</nowiki> to display yesterday's news. | ||
* <nowiki>{{Dailynews|0}}</nowiki> will display today's news, like this | * <nowiki>{{Dailynews|prev=0}}</nowiki> will display today's news, like this | ||
=== example display (today & yesterday's news) === | === example display (today & yesterday's news) === | ||
{{dailynews|0}} | {{dailynews|prev=0}} | ||
{{dailynews|1}} | {{dailynews|prev=1}} | ||
</noinclude> | </noinclude> | ||
[[Category:Not_published]] | [[Category:Not_published]] |
Revision as of 20:46, 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&December 26, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader=
|resultsheader=
December 26
|includepage=* |includemaxlength=300 }} {{#dpl: category=Published&December 25, 2024 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader=
|resultsheader=
December 25
|includepage=* |includemaxlength=300 }}