Cèṭa'an:Is redirect/doc
TemplateStyles' src
attribute must not be empty.
This is a documentation subpage for Cèṭa'an:Is redirect. It contains usage information, categories and other content that is not part of the original cèṭa'an page. |
TemplateStyles' src
attribute must not be empty.
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
TemplateStyles' src
attribute must not be empty.
This template uses Lua: |
Returns yes
when |1=somepagename
is a redirect, and a <blank space> when not a redirect.
For illustration purposes, in this documentation redirect pages are in italics: Mainpage → Main_Page
- Expect 'yes':
{{Is redirect|Autism spectrum}}
→ - Expect '<blank>' (no):
{{Is redirect|Autism}}
→
Talkpage handling
beccè'By default, a check specifying a talk page is performed on the corresponding subject page (it's associated page in mainspace, or in Template space, etc.).
- To check the talkpage itself, both use
|talk=yes
and the talk page name. {{Is redirect|Talk:Autism spectrum|talk=yes}}
→
Background. By default, when entering a Talkpage to check (like Talk:Autism spectrum
), the check is performed on the subject page. This stems from the module used. For example:
- Page to check:
Talk:Autism spectrum
:{{Is redirect|Talk:Autism spectrum}}
- Current pages status: Autism spectrum is a redirect, Pakanḍhâ'ân:Autism spectrum is not a redirect (it has content).
{{Is redirect}}
returns:{{Is redirect|Autism spectrum}}
→{{Is redirect|Talk:Autism spectrum}}
→ Cèṭa'an:Question mark (unexpected for the talkpage itself)- Applying
Talk:Autism
: {{Is redirect|Talk:Autism spectrum|talk=yes}}
→- Applying the subject page
Autism
: {{Is redirect|Autism spectrum|talk=yes}}
→ (|talk=yes
for a subject page name checks the subject page, not the associated talk page)
Usage
beccè'- Main_Page (expect neg):
{{is redirect|Main_Page}}
→ yes - Mainpage (expect yes):
{{is redirect|Mainpage}}
→
Can be used as:
{{#if:{{Is redirect|somepagename}} |value when yes |value when no}}
Template Data
beccè'TemplateData for Is redirect
Returns "yes" or <blank> (for no) for the pagename entered
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
1 | 1 | tidak ada keterangan | Tak dikenal | opsional |
Check Talk | talk | By default, the subject page is checked
| Boolean | opsional |
See also
beccè'- {{no redirect}}, {{-r}} — link to the redirect page itself, not its target
- {{target of}} — returns the target of a redirect
- {{redirect}} — hatnote "Foo redirects here ..."
- {{Redirect and target}}