Template:Dailynews: Difference between revisions
Jump to navigation
Jump to search
Brian Blank (talk | contribs) New page: <includeonly>{{#dpl: category=Published&{{#time:F j, Y|-{{{1}}} days}} |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addautho... |
Jacki Buros (talk | contribs) No edit summary |
||
(44 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#dpl: category=Published&{{#time:F j, Y|-{{{ | <includeonly>{{#ifeq:{{PAGESINCAT:{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}}}|0||{{#dpl: | ||
category=Published&{{#time:F j, Y|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}} | |||
|namespace=News | |||
|notcategory=Disputed | |||
|notcategory=Not_published | |||
|shownamespace=false | |||
|ordermethod=lastedit | |||
|addauthor=false | |||
|reset=categories | |||
|noresultsheader= | |||
|distinct=strict | |||
|mode=userformat | |||
|format = ,,, | |||
|resultsheader=<h3>{{#time:F j|{{#ifeq:{{{prev|}}}|||-{{{prev}}} days}}}}</h3> | |||
|includepage={newsarticle}.nodate,{newsarticle2}.nodate | |||
|secseparators = , | |||
|dominantsection=1 | |||
|count={{#if:{{{articlecount|}}}|{{{articlecount}}}|100}}}}}}</includeonly><noinclude> | |||
=== Template usage === | |||
* use like | |||
** <nowiki>{{Dailynews}}</nowiki> to display today's news | |||
** <nowiki>{{Dailynews|prev=1}}</nowiki> to display yesterday's news. | |||
** <nowiki>{{Dailynews|len=200}}</nowiki> to display today's news and limit display length per article. | |||
** <nowiki>{{Dailynews|prev=1|len=200}}</nowiki> to display yesterday's news with length limit. | |||
* Note: default limit is 300 chars | |||
=== example display (today & yesterday's news) === | |||
{{dailynews|prev=0}} | |||
{{dailynews|prev=1|len=100}} | |||
</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