Template:Fix/category and Template:Fix/category/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
m 1 revision imported
 
m 1 revision imported
 
Line 1: Line 1:
<noinclude>{{pp-template|small=yes}}</noinclude>{{{cat|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}
{{{cat|[[Category:All pages needing cleanup]]}}}{{{all|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}{{#if:{{{date|}}}
  |[[{{{cat-date}}} {{#if:{{{date|}}}
  |[[{{{date}}} from
   |from {{{date}}}
   |{{{cat-date}}}
   }}]]{{#if:{{{date|}}}
   ]]}}{{#if:{{{date|}}}
   |{{#ifexist:{{{cat-date}}} from {{{date}}}|
   |{{#ifexist:{{{date}}} from {{{cat-date}}}|
     |[[Category:Articles with invalid date parameter in template]]
     |[[Category:Articles with invalid date parameter in template]]
   }}
   }}
Line 23: Line 23:
   }}
   }}
   }}
   }}
  }}
  }}{{#if:{{{cats|}}}
  |[[{{{cats}}} {{#if:{{{date|}}}
  |from {{{date}}}
  }}]]{{#if:{{{date|}}}
  |{{#ifexist:{{{cats}}} from {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  }}
}}{{#if:{{{all2|}}}|{{{all2}}}}}{{#if:{{{cats2|}}}
  |[[{{{cats2}}} {{#if:{{{date|}}}
  |from {{{date}}}
  }}]]{{#if:{{{date|}}}
  |{{#ifexist:{{{cats2}}} from {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  }}
}}{{#if:{{{all3|}}}|{{{all3}}}}}{{#if:{{{cats3|}}}
  |[[{{{cats3}}} {{#if:{{{date|}}}
  |from {{{date}}}
  }}]]{{#if:{{{date|}}}
  |{{#ifexist:{{{cats3}}} from {{{date}}}|
    |[[Category:Articles with invalid date parameter in template]]
  }}
  }}
}}<noinclude>
{{Documentation|
content=
I think it would be more elegant to change in {{Tl|Fix}} <pre>{{Category handler
  |main={{Fix/category
  |cat-date={{{cat-date|}}}
  |cat={{{cat|}}}
  |cat-date2={{{cat-date2|}}}
  |cat2={{{cat2|}}}
  |cat-date3={{{cat-date3|}}}
  |cat3={{{cat3|}}}
  |date={{{date|}}}
}}</pre> to
<pre>{{Category handler
  |main={{Fix/category
  |cat-date={{{cat-date|{{{cats|}}}}}}
  |cat={{{cat|{{{all|}}}}}}
  |cat-date2={{{cat-date2|{{{cats2|}}}}}}
  |cat2={{{cat2|{{{all2|}}}}}}
  |cat-date3={{{cat-date3|{{{cats3|}}}}}}
  |cat3={{{cat3|{{{all3|}}}}}}
  |date={{{date|}}}
}}</pre>
}}
</noinclude>