Template:R from move/except: Difference between revisions

From All Skies Encyclopaedia
imported>Wbm1058
populate Category:Articles with talk page redirects, then see what this test captures. will need to accommodate false-positive redirects to intentionally shared talk pages.
imported>SilverLocust
Have that R2 tracking category also show a message
 
(13 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|{{SUBJECTPAGENAME}}}}|yes|
  |1={{#ifeq: {{#invoke:redirect|isRedirect|{{FULLPAGENAME}}}}|yes|
  {{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||
      {{#ifeq: {{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|
  {{#ifeq: {{FULLPAGENAME}}|{{SUBJECTPAGENAME}}||
        {{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||
    {{#ifeq: {{Str left|{{PAGENAME}}|16}}|List of ships of||[[Category:Unsynchronized talk page redirects]]
          {{#ifeq: {{FULLPAGENAME}}|{{SUBJECTPAGENAME}}||
            {{#ifeq: {{Str left|{{PAGENAME}}|16}}|List of ships of||[[Category:Unsynchronized talk page redirects]]
            }}
          }}
        }}
      |{{#ifexist:{{SUBJECTPAGENAME}}|
        {{#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}}|: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]]}}
     }}
     }}
  }}
  |0={{#switch:{{NAMESPACENUMBER:{{#invoke:redirect|main|{{FULLPAGENAME}}}}}}|0|4|10|12|14|100=|#default={{R from move/Cross-namespace}}}}
  }}
|[[Category:Articles with talk page redirects]]}}
}}<noinclude>
}}<noinclude>
{{Documentation|Template:R from move/doc}}
{{Documentation|Template:R from move/doc}}
</noinclude>
</noinclude>

Latest revision as of 00:57, 8 May 2024

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