Template:Category see also/Category pair check: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>BrownHairedGirl |plain=true |
meta>BrownHairedGirl fixes |
||
Line 2: | Line 2: | ||
--><br>''on a category page''<br><br>''BASEPAGENAME = {{BASEPAGENAME}}''<br>{{#if: {{#invoke:String|match|{{BASEPAGENAME}}|%d+[snrt][tdh]%-century.+$|ignore_errors=true}}<!-- | --><br>''on a category page''<br><br>''BASEPAGENAME = {{BASEPAGENAME}}''<br>{{#if: {{#invoke:String|match|{{BASEPAGENAME}}|%d+[snrt][tdh]%-century.+$|ignore_errors=true}}<!-- | ||
-->|<br>''on a century category''<br><!-- it's on a century category | -->|<br>''on a century category''<br><!-- it's on a century category | ||
--><br>''first param= [{{{1|}}}]''<br><br>match=" | --><br>''first param= [{{{1|}}}]''<br><br>match="{{#invoke:String|match|{{{1|}}}|{{#invoke:String|match|{{BASEPAGENAME}}|-century.+$|ignore_errors=true}}|ignore_errors=true|plain=true}}"{{#if: {{#invoke:String|match|{{{1|}}}|{{#invoke:String|match|{{BASEPAGENAME}}|-century.+$|ignore_errors=true}}|ignore_errors=true|plain=true}}<!-- | ||
-->|<!-- the link is to a similar century category | -->|<!-- the link is to a similar century category | ||
-->[[Category:Template Category see also used when Template Category pair probably should be]]<!-- | -->[[Category:Template Category see also used when Template Category pair probably should be]]<!-- |
Revision as of 17:21, 28 April 2018
Check whether Template:Category see also has been used when Template:Category pair probably should be use.
The test is:
- Is this page in the Category namespace?
- Does this page's title end in "nn(st|nd|rd|th))-century something"
- does the first linked cat's title end in the same "-century something" as the title of the page it is used on?
If the answer to all 3 is yes, then categorise the page in the hidden tracking category Category:Template Category see also used when Template Category pair probably should be