Difference between revisions of "Template:Fix/category"
m (Updating) |
m (Updating) |
||
Line 1: | Line 1: | ||
− | + | {{{cat|[[Category:All pages needing cleanup]]}}}{{{all|[[Category:All pages needing cleanup]]}}}{{#if:{{{cat-date|}}}{{#if:{{{date|}}} | |
− | + | |[[{{{date}}} from | |
− | | | + | |{{{cat-date}}} |
− | }} | + | ]]}}{{#if:{{{date|}}} |
− | |{{#ifexist:{{{ | + | |{{#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> |
Revision as of 15:20, 11 May 2023
Template documentation
I think it would be more elegant to change in {{Fix}} {{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|}}} }}to
{{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|}}} }}