J u m p t o c o n t e n t
M a i n m e n u
M a i n m e n u
N a v i g a t i o n
● M a i n p a g e
● C o n t e n t s
● C u r r e n t e v e n t s
● R a n d o m a r t i c l e
● A b o u t W i k i p e d i a
● C o n t a c t u s
● D o n a t e
C o n t r i b u t e
● H e l p
● L e a r n t o e d i t
● C o m m u n i t y p o r t a l
● R e c e n t c h a n g e s
● U p l o a d f i l e
S e a r c h
Search
A p p e a r a n c e
● C r e a t e a c c o u n t
● L o g i n
P e r s o n a l t o o l s
● C r e a t e a c c o u n t
● L o g i n
P a g e s f o r l o g g e d o u t e d i t o r s l e a r n m o r e
● C o n t r i b u t i o n s
● T a l k
( T o p )
1
U s a g e
2
T e m p l a t e D a t a
T o g g l e t h e t a b l e o f c o n t e n t s
T e m p l a t e : R e d i r e c t o t h e r
A d d l a n g u a g e s
A d d l i n k s
● T e m p l a t e
● T a l k
E n g l i s h
● R e a d
● E d i t
● V i e w h i s t o r y
T o o l s
T o o l s
A c t i o n s
● R e a d
● E d i t
● V i e w h i s t o r y
G e n e r a l
● W h a t l i n k s h e r e
● R e l a t e d c h a n g e s
● U p l o a d f i l e
● S p e c i a l p a g e s
● P e r m a n e n t l i n k
● P a g e i n f o r m a t i o n
● G e t s h o r t e n e d U R L
● D o w n l o a d Q R c o d e
P r i n t / e x p o r t
● D o w n l o a d a s P D F
● P r i n t a b l e v e r s i o n
A p p e a r a n c e
F r o m W i k i p e d i a , t h e f r e e e n c y c l o p e d i a
This template determines whether the page it is used on is a redirect or not. If it is used on a redirect, it returns its first parameter. Otherwise, it returns its second parameter. Either could be absent or empty.
For example:
{{Redirect other |yes|no}}
will display yes
on a redirect and no
on a non-redirect (test: on this page, it says "no");
{{Redirect other |text}}
will display text
on a non-redirect, and nothing on a redirect (test: on this page, it says "text");
{{Redirect other |text}}
will display text
on a redirect, and nothing on a non-redirect (test: on this page, it says "").
Remember to place a "1=" and/or "2=" prefix on the arguments if they contain equals signs.
TemplateData [ edit ]
Template parameters[ Edit template data ]
This template prefers inline formatting of parameters.
Parameter Description Type Status On redirect 1
The text that's shown when the template is used on a redirect.
Unbalanced wikitext optional On non-redirect 2
The text that's shown when the template is used on a non-redirect.
Unbalanced wikitext optional
t
e
Namespace and pagename-detecting templates
Namespace
Pagename
When on basepage
Detects and acts according to whether it is on a basepage or on any subpage (that is, a ../..
subpage).
When pagename is
For pattern matching on the pagename.
Module:Page
Can take apart and put together pagenames in several ways.
IP-talk
Returns IP-user talkpage, registered-user talkpage or non-user talkpage.
IP-user other
For detecting IP-user pages.
Subpage other
Pagename has an after-slash part (not in mainspace)
Sandbox other
Page is subpage /sandbox (template space)
Testcases other
Page is subpage /testcases (template space)
Rootpage other
Page is rootpage (vs. /subpage) (template space)
Others
Stub other
Detects whether it is on a page with a stub template or not.
Redirect other
Detects whether it is on a redirect or not.
If preview
Detects whether page is viewed as a preview or not.
If IP
Displays different content to IP users and logged-in users.
If autoconfirmed
Displays different content to autoconfirmed and non-autoconfirmed users.
If extended confirmed
Displays different content to extended confirmed and non-extended confirmed users.
If administrator
Displays content only to admins.
If mobile
Displays different content to mobile users and desktop users.
Noscript
Detects whether page is viewed with a JavaScript-capable client or not.
R e t r i e v e d f r o m " https://en.wikipedia.org/w/index.php?title=Template:Redirect_other&oldid=1099663407 "
C a t e g o r i e s :
● W i k i p e d i a m e t a t e m p l a t e s
● T e m p l a t e n a m e s p a c e t e m p l a t e s
H i d d e n c a t e g o r y :
● N a v b o x e s u s i n g b a c k g r o u n d c o l o u r s
● T h i s p a g e w a s l a s t e d i t e d o n 2 2 J u l y 2 0 2 2 , a t 0 0 : 1 8 ( U T C ) .
● T e x t i s a v a i l a b l e u n d e r t h e C r e a t i v e C o m m o n s A t t r i b u t i o n - S h a r e A l i k e L i c e n s e 4 . 0 ;
a d d i t i o n a l t e r m s m a y a p p l y . B y u s i n g t h i s s i t e , y o u a g r e e t o t h e T e r m s o f U s e a n d P r i v a c y P o l i c y . W i k i p e d i a ® i s a r e g i s t e r e d t r a d e m a r k o f t h e W i k i m e d i a F o u n d a t i o n , I n c . , a n o n - p r o f i t o r g a n i z a t i o n .
● P r i v a c y p o l i c y
● A b o u t W i k i p e d i a
● D i s c l a i m e r s
● C o n t a c t W i k i p e d i a
● C o d e o f C o n d u c t
● D e v e l o p e r s
● S t a t i s t i c s
● C o o k i e s t a t e m e n t
● M o b i l e v i e w