Template:R from move/except: Difference between revisions

From The Goon Show Depository
en>Wbm1058
(populate new subcategory Category:Redirects for discussion with talk page redirects – without making template loops!)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|Template:R from move/except=
|Template:R from move/except=
|#default=[[Category:Redirects from moves]]
|#default=[[Category:Redirects from moves]]
}}{{#ifeq: {{NAMESPACENUMBER}}|1|
}}{{#switch: {{NAMESPACENUMBER}}
    {{#ifeq: {{#invoke:redirect|isRedirect|{{FULLPAGENAME}}}}|yes|
  |1={{#ifeq: {{#invoke:redirect|isRedirect|{{FULLPAGENAME}}}}|yes|
       {{#ifeq: {{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|
       {{#ifeq: {{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|
         {{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||
         {{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||
Line 15: Line 15:
       |{{#ifexist:{{SUBJECTPAGENAME}}|
       |{{#ifexist:{{SUBJECTPAGENAME}}|
         {{#ifeq: {{SUBJECTPAGENAME}}|{{Target of|{{SUBJECTPAGENAME:{{Target of|{{FULLPAGENAME}}}}}}}}|[[Category:Articles with unsynchronized talk page redirects]]|
         {{#ifeq: {{SUBJECTPAGENAME}}|{{Target of|{{SUBJECTPAGENAME:{{Target of|{{FULLPAGENAME}}}}}}}}|[[Category:Articles with unsynchronized talk page redirects]]|
           {{#ifexpr: {{#invoke:string|find|{{#invoke:page|getContent|{{SUBJECTPAGENAME}}|as=raw}}|#invoke:RfD}}|[[Category:Redirects for discussion with talk page redirects]]|[[Category:Articles with talk page redirects]]}}}}
           {{#ifexpr: {{#invoke:string|find|{{#invoke:page|getContent|{{SUBJECTPAGENAME}}|as=raw}}|:Rfd}}|[[Category:Redirects for discussion with talk page redirects]]|[[Category:Articles with talk page redirects]]}}}}
         }}
         }}
       }}
       }}
     |{{error|Page is not a redirect, misplaced [[Template:R from move]]}}
     |{{error|Page is not a redirect, misplaced [[Template:R from move]]}}
     }}
     }}
   }}<noinclude>
   |0={{#switch:{{NAMESPACENUMBER:{{#invoke:redirect|main|{{FULLPAGENAME}}}}}}|0|4|10|12|14|100=|#default={{R from move/Cross-namespace}}}}
}}<noinclude>
{{Documentation|Template:R from move/doc}}
{{Documentation|Template:R from move/doc}}
</noinclude>
</noinclude>

Latest revision as of 18:28, 18 July 2024

This is the exception page for {{R from move}}. This page makes exceptions that include certain pages that should not inhabit either Category:Unsynchronized talk page redirects or Category:Redirects from moves. If necessary, new exceptions may be added with no need to edit the main template, {{R from move}}.