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 10: | Line 10: | ||
|resultsheader=<h3>{{#time:F j|-{{{prev}}} days}}</h3> | |resultsheader=<h3>{{#time:F j|-{{{prev}}} days}}</h3> | ||
|includepage=* | |includepage=* | ||
|includemaxlength={{#ifeq:{{{ | |includemaxlength={{#ifeq:{{{2}}}||300|{{{2}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
=== Template usage === | === Template usage === | ||
Line 17: | Line 17: | ||
* <nowiki>{{Dailynews|prev=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|prev=0 | {{dailynews|prev=0}} | ||
{{dailynews|prev=1| | {{dailynews|prev=1|100}} | ||
</noinclude> | </noinclude> | ||
[[Category:Not_published]] | [[Category:Not_published]] |
Revision as of 21:04, 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&January 13, 2025 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader=
|resultsheader=
January 13
|includepage=* |includemaxlength={{{2}}} }} {{#dpl: category=Published&January 12, 2025 |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=false |noresultsheader=
|resultsheader=
January 12
|includepage=* |includemaxlength={{{2}}} }}