Template:Searchnews2: Difference between revisions
Jump to navigation
Jump to search
Jacki Buros (talk | contribs) No edit summary |
Jacki Buros (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#dpl: | <includeonly>{{#switch: {{#ifeq:{{{find|}}}|text|{{#ifeq:{{{title|}}}|title|neither}}}} | ||
| #default = {{#dpl: | |||
category=Published{{#if:{{{prevmon|}}}|&{{#time:F Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevmon}}} months}}}}{{#if:{{{prevyear|}}}|&{{#time:Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevyear}}} years}}}}{{#if:{{{year|}}}|&{{{year}}}}}{{#if:{{{cat|}}}|&{{{cat}}}}} | |||
|debug=0 | |||
|allowcachedresults={{#if:{{{cacheresults|}}}|{{{cacheresults}}}|true}} | |||
|namespace=News | |||
|notcategory=Disputed | |||
|notcategory=Not_published | |||
|shownamespace=false | |||
|ordermethod=sortkey | |||
|order=descending | |||
|addauthor=false | |||
|reset=categories | |||
|mode=userformat | |||
|format = ,,, | |||
|noresultsheader=* (no results - search [[:Category:Published|all news]]) | |||
|distinct=true | |||
|resultsheader= | |||
|include={newsarticle}.dplsearch,{newstitle}.dpl | |||
|count={{#if:{{{numarticles|}}}|{{{numarticles}}}|200}} | |||
}} | |||
|text = {{#dpl: | |||
category=Published{{#if:{{{prevmon|}}}|&{{#time:F Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevmon}}} months}}}}{{#if:{{{prevyear|}}}|&{{#time:Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevyear}}} years}}}}{{#if:{{{year|}}}|&{{{year}}}}}{{#if:{{{cat|}}}|&{{{cat}}}}} | category=Published{{#if:{{{prevmon|}}}|&{{#time:F Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevmon}}} months}}}}{{#if:{{{prevyear|}}}|&{{#time:Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevyear}}} years}}}}{{#if:{{{year|}}}|&{{{year}}}}}{{#if:{{{cat|}}}|&{{{cat}}}}} | ||
|debug=0 | |debug=0 | ||
Line 12: | Line 33: | ||
|addauthor=false | |addauthor=false | ||
|reset=categories | |reset=categories | ||
|mode=userformat | |mode=userformat | ||
|format = ,,, | |format = ,,, | ||
Line 21: | Line 40: | ||
|include={newsarticle}.dplsearch,{newstitle}.dpl | |include={newsarticle}.dplsearch,{newstitle}.dpl | ||
|count={{#if:{{{numarticles|}}}|{{{numarticles}}}|200}} | |count={{#if:{{{numarticles|}}}|{{{numarticles}}}|200}} | ||
}}</includeonly><noinclude><nowiki> | |includematch=/({{{find|}}}{{ #foreach: find$n$ |{{!}}{{{textsearch$n$}}}}})/si | ||
}} | |||
| title = {{#dpl: | |||
category=Published{{#if:{{{prevmon|}}}|&{{#time:F Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevmon}}} months}}}}{{#if:{{{prevyear|}}}|&{{#time:Y|01-{{CURRENTMONTH}}-{{CURRENTYEAR}} -{{{prevyear}}} years}}}}{{#if:{{{year|}}}|&{{{year}}}}}{{#if:{{{cat|}}}|&{{{cat}}}}} | |||
|titlematch=%{{{title}}}%{{ #foreach: title$n$ |{{!}}%{{{title$n$}}}%}} | |||
|debug=0 | |||
|allowcachedresults={{#if:{{{cacheresults|}}}|{{{cacheresults}}}|true}} | |||
|namespace=News | |||
|notcategory=Disputed | |||
|notcategory=Not_published | |||
|shownamespace=false | |||
|ordermethod=sortkey | |||
|order=descending | |||
|addauthor=false | |||
|reset=categories | |||
|mode=userformat | |||
|format = ,,, | |||
|noresultsheader=* (no results - search [[:Category:Published|all news]]) | |||
|distinct=true | |||
|resultsheader= | |||
|include={newsarticle}.dplsearch | |||
|count={{#if:{{{numarticles|}}}|{{{numarticles}}}|200}} | |||
}}}}</includeonly><noinclude><nowiki> | |||
|includematch=/({{#if:{{{find|}}}|{{{find}}}}}{{ #foreach: find$n$ |{{!}}{{{find$n$}}}}})/si | |includematch=/({{#if:{{{find|}}}|{{{find}}}}}{{ #foreach: find$n$ |{{!}}{{{find$n$}}}}})/si | ||
</nowiki></noinclude> | </nowiki></noinclude> |
Revision as of 01:54, 20 February 2009
|includematch=/({{#if:{{{find|}}}|{{{find}}}}}{{ #foreach: find$n$ |{{!}}{{{find$n$}}}}})/si