Template:Dailynews: Difference between revisions

Jump to navigation Jump to search
(New page: <includeonly>{{#dpl: category=Published&{{#time:F j, Y|-{{{1}}} days}} |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addautho...)
 
No edit summary
Line 1: Line 1:
<includeonly>{{#dpl: category=Published&{{#time:F j, Y|-{{{1}}} days}} |namespace=News |notcategory=Disputed |notcategory=Not_published |shownamespace=false |ordermethod=lastedit |addauthor=true |noresultsheader=&nbsp; |resultsheader=<h3>{{#time:F j|-{{{1}}} days}}</h3> |includepage=* |includemaxlength=300 }}</includeonly><noinclude> === Template usage === * use like <nowiki>{{News2|1}}</nowiki> to display yesterday's news. * <nowiki>{{News2|0}}</nowiki> will display today's news, like this === example display (today & yesterday's news) === {{News2|0}} {{News2|1}} </noinclude>
 
 
<includeonly>{{#dpl:
 
category=Published&{{#time:F j, Y|-{{{1}}} days}}
 
|namespace=News
 
|notcategory=Disputed
 
|notcategory=Not_published
 
|shownamespace=false
 
|ordermethod=lastedit
 
|addauthor=true
 
|noresultsheader=&nbsp;
 
|resultsheader=<h3>{{#time:F j|-{{{1}}} days}}</h3>
 
|includepage=*
 
|includemaxlength=300
 
}}</includeonly><noinclude>
 
=== Template usage ===
 
* use like
 
<nowiki>{{News2|1}}</nowiki> to display yesterday's news.
 
* <nowiki>{{News2|0}}</nowiki> will display today's news, like this
 
=== example display (today & yesterday's news) ===
 
{{News2|0}}
 
{{News2|1}}
 
</noinclude>

Revision as of 19:54, 3 February 2009



Template usage

  • use like

{{News2|1}} to display yesterday's news.

  • {{News2|0}} will display today's news, like this

example display (today & yesterday's news)

Template:News2

Template:News2