https://micras.org/wiki/index.php?title=Template:Cat_handler&feed=atom&action=history
Template:Cat handler - Revision history
2024-03-28T12:55:29Z
Revision history for this page on the wiki
MediaWiki 1.39.2
https://micras.org/wiki/index.php?title=Template:Cat_handler&diff=133458&oldid=prev
Craitman at 17:26, 14 January 2020
2020-01-14T17:26:11Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:26, 14 January 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l84">Line 84:</td>
<td colspan="2" class="diff-lineno">Line 84:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }}</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> }}</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>}}<noinclude></div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>}}<noinclude><ins style="font-weight: bold; text-decoration: none;">[[Category: Formatting templates]]</ins></noinclude></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div></noinclude></div></td><td colspan="2" class="diff-side-added"></td></tr>
</table>
Craitman
https://micras.org/wiki/index.php?title=Template:Cat_handler&diff=8984&oldid=prev
Guido zambelis: Created page with '{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat <!--"nocat=true", don't categorize--> }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{lc: …'
2011-01-31T20:29:35Z
<p>Created page with '{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat <!--"nocat=true", don't categorize--> }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{lc: …'</p>
<p><b>New page</b></p><div>{{#if:<br />
{{#ifeq: {{lc: {{{nocat|}}} }} | true<br />
| dontcat <!--"nocat=true", don't categorize--><br />
}}{{#ifeq: {{lc: {{{categories|}}} }} | no<br />
| dontcat<br />
}}{{#switch: {{lc: {{{category2|¬}}} }}<br />
| yes<br />
| ¬ = <!--Not defined--><br />
| #default = dontcat <!--"category2 = no/'defined but empty'/'anything'"--><br />
}}{{#switch: {{lc: {{{subpage|}}} }}<br />
| no = <br />
{{basepage subpage<br />
| <br />
| dontcat <!--"subpage=no" and on a subpage--><br />
| page = {{{page|}}} <!--For testing--><br />
}}<br />
| only = <br />
{{basepage subpage<br />
| dontcat <!--"subpage=only" and not on a subpage--><br />
| page = {{{page|}}} <!--For testing--><br />
}}<br />
}}<br />
<br />
| <!--Don't categorise (result was "dontcat" or "dontcatdontcat" and so on)--><br />
| <!--Check blacklist--><br />
{{#switch:<br />
{{#ifeq: {{lc: {{{nocat|}}} }} | false<br />
| <!--"nocat=false", skip blacklist check--><br />
| {{#ifeq: {{lc: {{{categories|}}} }} | yes<br />
| <!--Skip blacklist check--><br />
| {{#ifeq: {{lc: {{{category2|}}} }} | yes<br />
| <!--Skip blacklist check--><br />
| {{cat handler/blacklist| page = {{{page|}}} }} <!--Check blacklist--><br />
}}<br />
}}<br />
}}<br />
| hide = <!--Blacklist returned "hide", don't categorize--><br />
| #default = <br />
<!--Check if any namespace parameter is defined--><br />
{{#ifeq: h0#384!5nea+w9 | {{{all| {{{main| {{{talk| {{{user| {{{wikipedia| {{{file| {{{mediawiki| {{{template| {{{help| {{{category| {{{portal| {{{book| {{{other| h0#384!5nea+w9 }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}<br />
| <!--No namespace parameters fed, basic usage--><br />
{{namespace detect<br />
| main = {{{1|}}}<br />
| file = {{{1|}}}<br />
| help = {{{1|}}}<br />
| category = {{{1|}}}<br />
| portal = {{{1|}}}<br />
| book = {{{1|}}}<br />
| page = {{{page|}}} <!--For testing and demonstration--><br />
}}<br />
| <!--Namespace parameters fed, advanced usage.<br />
If "data" is a number, return the corresponding <br />
numbered parameter, else return "data". --><br />
{{{all|}}}{{cat handler/numbered<br />
| 1 = {{{1|}}}<br />
| 2 = {{{2|}}}<br />
| 3 = {{{3|}}}<br />
| 4 = {{{4|}}}<br />
| 5 = {{{5|}}}<br />
| 6 = {{{6|}}}<br />
| 7 = {{{7|}}}<br />
| 8 = {{{8|}}}<br />
| 9 = {{{9|}}}<br />
| 10 = {{{10|}}}<br />
| data = <br />
<!--Check what namespace, and return the data for it.<br />
Respecting empty parameters on purpose. --><br />
{{namespace detect<br />
| main = {{{main| {{{other|}}} }}}<br />
| talk = {{{talk| {{{other|}}} }}}<br />
| user = {{{user| {{{other|}}} }}}<br />
| wikipedia = {{{wikipedia| {{{project| {{{other|}}} }}} }}}<br />
| file = {{{file| {{{image| {{{other|}}} }}} }}}<br />
| mediawiki = {{{mediawiki| {{{other|}}} }}}<br />
| template = {{{template| {{{other|}}} }}}<br />
| help = {{{help| {{{other|}}} }}}<br />
| category = {{{category| {{{other|}}} }}}<br />
| portal = {{{portal| {{{other|}}} }}}<br />
| book = {{{book| {{{other|}}} }}}<br />
| other = {{{other|}}} <!--Namespace special or a new namespace--><br />
| page = {{{page|}}} <!--For testing and demonstration--><br />
}}<br />
}}<br />
}}<br />
}}<br />
}}<noinclude><br />
</noinclude></div>
Guido zambelis