http://www.psdevwiki.com/ps4/history/Template:Category_handler?feed=atom& Template:Category handler - Revision history 2024-03-29T09:55:20Z Revision history for this page on the wiki MediaWiki 1.39.6 http://www.psdevwiki.com/ps4/index.php?title=Template:Category_handler&diff=265687&oldid=prev Euss at 01:39, 30 January 2014 2014-01-30T01:39:19Z <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 02:39, 30 January 2014</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>}}&lt;noinclude&gt;[[Category:Template Automation]]</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>}}&lt;noinclude&gt;[[Category:Template Automation]]&lt;/noinclude&gt;</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><del style="font-weight: bold; text-decoration: none;">{{documentation}}</del></div></td><td colspan="2" class="diff-side-added"></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><del style="font-weight: bold; text-decoration: none;">&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;</del></div></td><td colspan="2" class="diff-side-added"></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>&lt;/noinclude&gt;</div></td><td colspan="2" class="diff-side-added"></td></tr> </table> Euss http://www.psdevwiki.com/ps4/index.php?title=Template:Category_handler&diff=1622&oldid=prev Anon: Created page with "{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat <!--"nocat=true", don't categorize--> }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{l..." 2013-06-19T00:07:05Z <p>Created page with &quot;{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat &lt;!--&quot;nocat=true&quot;, don&#039;t categorize--&gt; }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{l...&quot;</p> <p><b>New page</b></p><div>{{#if:<br /> {{#ifeq: {{lc: {{{nocat|}}} }} | true<br /> | dontcat &lt;!--&quot;nocat=true&quot;, don't categorize--&gt;<br /> }}{{#ifeq: {{lc: {{{categories|}}} }} | no<br /> | dontcat<br /> }}{{#switch: {{lc: {{{category2|¬}}} }}<br /> | yes<br /> | ¬ = &lt;!--Not defined--&gt;<br /> | #default = dontcat &lt;!--&quot;category2 = no/'defined but empty'/'anything'&quot;--&gt;<br /> }}{{#switch: {{lc: {{{subpage|}}} }}<br /> | no = <br /> {{basepage subpage<br /> | <br /> | dontcat &lt;!--&quot;subpage=no&quot; and on a subpage--&gt;<br /> | page = {{{page|}}} &lt;!--For testing--&gt;<br /> }}<br /> | only = <br /> {{basepage subpage<br /> | dontcat &lt;!--&quot;subpage=only&quot; and not on a subpage--&gt;<br /> | page = {{{page|}}} &lt;!--For testing--&gt;<br /> }}<br /> }}<br /> <br /> | &lt;!--Don't categorise (result was &quot;dontcat&quot; or &quot;dontcatdontcat&quot; and so on)--&gt;<br /> | &lt;!--Check blacklist--&gt;<br /> {{#switch:<br /> {{#ifeq: {{lc: {{{nocat|}}} }} | false<br /> | &lt;!--&quot;nocat=false&quot;, skip blacklist check--&gt;<br /> | {{#ifeq: {{lc: {{{categories|}}} }} | yes<br /> | &lt;!--Skip blacklist check--&gt;<br /> | {{#ifeq: {{lc: {{{category2|}}} }} | yes<br /> | &lt;!--Skip blacklist check--&gt;<br /> | {{category handler/blacklist| page = {{{page|}}} }} &lt;!--Check blacklist--&gt;<br /> }}<br /> }}<br /> }}<br /> | hide = &lt;!--Blacklist returned &quot;hide&quot;, don't categorize--&gt;<br /> | #default = <br /> &lt;!--Check if any namespace parameter is defined--&gt;<br /> {{#ifeq: h0#384!5nea+w9 | {{{all| {{{main| {{{talk| {{{user| {{{wikipedia| {{{file| {{{mediawiki| {{{template| {{{help| {{{category| {{{portal| {{{book| {{{other| h0#384!5nea+w9 }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}<br /> | &lt;!--No namespace parameters fed, basic usage--&gt;<br /> {{namespace detect<br /> | main = {{{1|}}}<br /> | file = {{{1|}}}<br /> | help = {{{1|}}}<br /> | category = {{{1|}}}<br /> | portal = {{{1|}}}<br /> | book = {{{1|}}}<br /> | page = {{{page|}}} &lt;!--For testing and demonstration--&gt;<br /> }}<br /> | &lt;!--Namespace parameters fed, advanced usage.<br /> If &quot;data&quot; is a number, return the corresponding <br /> numbered parameter, else return &quot;data&quot;. --&gt;<br /> {{{all|}}}{{category 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 /> &lt;!--Check what namespace, and return the data for it.<br /> Respecting empty parameters on purpose. --&gt;<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|}}} &lt;!--Namespace special or a new namespace--&gt;<br /> | page = {{{page|}}} &lt;!--For testing and demonstration--&gt;<br /> }}<br /> }}<br /> }}<br /> }}<br /> }}&lt;noinclude&gt;[[Category:Template Automation]]<br /> {{documentation}}<br /> &lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;<br /> &lt;/noinclude&gt;</div> Anon