Template:Dailynews: Difference between revisions
Jump to navigation
Jump to search
Brian Blank (talk | contribs) No edit summary |
Brian Blank (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#dpl: | <includeonly>{{#dpl: | ||
category=Published&{{#time:F j, Y|-{{{1}}} days}} | category=Published&{{#time:F j, Y|-{{{1}}} days}} | ||
|namespace=News | |namespace=News | ||
|notcategory=Disputed | |notcategory=Disputed | ||
|notcategory=Not_published | |notcategory=Not_published | ||
|shownamespace=false | |shownamespace=false | ||
|ordermethod=lastedit | |ordermethod=lastedit | ||
|addauthor=true | |addauthor=true | ||
|noresultsheader= | |noresultsheader= | ||
|resultsheader=<h3>{{#time:F j|-{{{1}}} days}}</h3> | |resultsheader=<h3>{{#time:F j|-{{{1}}} days}}</h3> | ||
|includepage=* | |includepage=* | ||
|includemaxlength=300 | |includemaxlength=300 | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
=== Template usage === | === Template usage === | ||
* use like | * use like | ||
<nowiki>{{News2|1}}</nowiki> to display yesterday's news. | <nowiki>{{News2|1}}</nowiki> to display yesterday's news. | ||
* <nowiki>{{News2|0}}</nowiki> will display today's news, like this | * <nowiki>{{News2|0}}</nowiki> will display today's news, like this | ||
=== example display (today & yesterday's news) === | === example display (today & yesterday's news) === | ||
{{News2|0}} | {{News2|0}} | ||
{{News2|1}} | {{News2|1}} | ||
</noinclude> | </noinclude> |
Revision as of 19:55, 3 February 2009
Template usage
- use like
{{News2|1}} to display yesterday's news.
- {{News2|0}} will display today's news, like this