Template:Listnews

Revision as of 22:36, 15 February 2009 by Jacki Buros (talk | contribs)
Jump to navigation Jump to search


Template usage

  • use like
    • {{Listnews}} to display recent news (30 articles by default)
    • {{Listnews|articlecount=1}} to display most recent 1 news article.
    • {{Listnews|articlelen=200}} to display recent news and limit display length per article.
    • {{Listnews|articlecount=50|articlelen=200}} to display 50 recent news articles with length limit.
  • Note: default article display limit is 300 chars
  • Note: default number of articles is 30 articles

Template customization

example display (last recent news with defaults)

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

|resultsheader=

Wikidoc Daily News

|includepage={newsarticle}.dpl[10] |secseparators = \n,\n |count=30 }}