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 |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#dpl: | <includeonly>{{#ifeq:{{PAGESINCAT:{{#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 8: | Line 8: | ||
|addauthor=false | |addauthor=false | ||
|reset=categories | |reset=categories | ||
|noresultsheader= | |||
|distinct=strict | |distinct=strict | ||
| | |mode=userformat | ||
|format = ,,, | |||
|resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3> | |resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3> | ||
|includepage= | |includepage={newsarticle}.nodate,{newsarticle2}.nodate | ||
| | |secseparators = , | ||
}}</includeonly><noinclude> | |dominantsection=1 | ||
|count={{#if:{{{articlecount|}}}|{{{articlecount}}}|100}}}}}}</includeonly><noinclude> | |||
=== Template usage === | === Template usage === | ||
* use like | * use like | ||
Line 21: | Line 24: | ||
** <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) === | ||
{{dailynews|prev=0}} | {{dailynews|prev=0}} | ||
{{dailynews|prev=1|100}} | {{dailynews|prev=1|len=100}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:52, 17 March 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