Template:Listnews: Difference between revisions

Jump to navigation Jump to search
(New page: <includeonly>{{#dpl: category=Published |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=sortkey,category,lastedit |addauthor=false |reset...)
 
No edit summary
Line 1: Line 1:
<includeonly>{{#dpl:
<includeonly>{{#dpl:
category=Published
category=Published
|uses=Template:Newsarticle
|namespace=News
|namespace=News
|notcategory=Disputed
|notcategory=Disputed
|notcategory=Not_published
|notcategory=Not_published
|shownamespace=false
|shownamespace=false
|ordermethod=sortkey,category,lastedit
|ordermethod=category,sortkey
|addauthor=false
|addauthor=false
|reset=categories
|reset=categories

Revision as of 20:18, 15 February 2009


Template usage

  • use like
    • {{Listnews}} to display today's news
    • {{Listnews|prev=1}} to display today & yesterday's news.
    • {{Listnews|len=200}} to display today's news and limit display length per article.
    • {{Listnews|prev=1|len=200}} to display today & yesterday's news with length limit.
  • Note: default limit is 300 chars


example display (last 20 days' news)

{{#dpl: category=Published |uses=Template:Newsarticle |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=category,sortkey |addauthor=false |reset=categories |addfirstcategorydate=true |userdateformat=Y-m-d (D) |mode=userformat |format = ,,, |noresultsheader=  |distinct=strict

|resultsheader=

Wikidoc Daily News

|includepage={newsarticle}.dpl |secseparators = \n,\n }}