Template:Listnews: Difference between revisions
Jump to navigation
Jump to search
Jacki Buros (talk | contribs) No edit summary |
Jacki Buros (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
|includepage={newsarticle}.dpl,{newsarticle2}.dpl | |includepage={newsarticle}.dpl,{newsarticle2}.dpl | ||
|secseparators = \n,\n | |secseparators = \n,\n | ||
{{#if:{{{articlecount|}}}|{{!}}count={{{articlecount}}}}} | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 03:47, 16 February 2009
Template usage
- use like
- {{Listnews}} to display recent news (30 articles by default)
- {{Listnews|articlecount=1}} to display most recent 1 news article.
- {{Listnews|articlecount=50}} to display 50 recent news articles.
- Note: default article display limit is set by Template:Newsarticle.dpl
- Note: default number of articles is 30 articles
Template customization
- Edit display per article in news listing
- Edit display of summary in article contents
- View use of news article template
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= |includepage={newsarticle}.dpl,{newsarticle2}.dpl |secseparators = \n,\n
}}