Template:R from move/except: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
en>Wbm1058
(populate new subcategory Category:Redirects for discussion with talk page redirects – without making template loops!)
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>This is the exception page for {{tl|R from move}}.  This page makes exceptions that include certain pages that should not inhabit either {{cat|Unsynchronized talk page redirects}} or {{cat|Redirects from moves}}.  If necessary, new exceptions may be added with no need to edit the main template, {{tl|R from move}}.
<noinclude>{{hatnote|This rcat template is automatically added to all new redirects that result from page moves; it must be added manually to older redirects when appropriate.}}{{This is a redirect/rcat}}
</noinclude>{{#switch: {{FULLPAGENAME}}
</noinclude>{{Redirect template
|MediaWiki:Move-redirect-text=
  |id=R from move
|Template:R from move/except=
  |name=From a page move
|#default=[[Category:Redirects from moves]]
  |from=a page that has been moved (renamed)
}}{{#ifeq: {{NAMESPACENUMBER}}|1|
  |info=This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.
    {{#ifeq: {{#invoke:redirect|isRedirect|{{FULLPAGENAME}}}}|yes|
  |all category=Redirects from moves
      {{#ifeq: {{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|
}}<includeonly>{{R from move/except}}</includeonly><noinclude>
        {{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||
<!-- Place categories on /doc subpage; interwikis go to Wikidata. -->
          {{#ifeq: {{FULLPAGENAME}}|{{SUBJECTPAGENAME}}||
{{Documentation}}
            {{#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}}|#invoke: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]]}}
    }}
  }}<noinclude>
{{Documentation|Template:R from move/doc}}
</noinclude>
</noinclude>

Latest revision as of 20:34, 19 June 2023

Page Template:Smallcaps/styles.css has no content.When used with the "Redirect category shell" (Rcat shell) Page Template:Smallcaps/styles.css has no content.template:

Template {{Redirect category shell}} may be used to add one or more rcat templates, along with their parameters and categories, to a redirect. For more information see the documentation page below.

Page Template:Smallcaps/styles.css has no content.When used by itself: Script error: No such module "Redirect template".