Tags: Mobile edit Mobile web edit Advanced mobile edit |
|
Line 1: |
Line 1: |
| {{Short description|Bharatpedia editing guideline about page redirects}} | | {{short description|Bharatmedia help page}} |
| {{pp-vandalism |small=yes}} | | {{about|directing a search term to a Bharatpedia article|clarifying redirected search terms at the article itself|Template:Redirect|guidance on the use of redirects|Bharatpedia:Redirect|the WikiProject|Bharatpedia:WikiProject Redirect}} |
| {{pp-move}}
| | {{Bharatpedia how-to|H:R|H:REDIR}} |
| {{Redirect-multi|2|BP:R|BP:RDR}}
| | A '''redirect''' is a page created so that navigation to a given title takes the reader directly to a different page. A redirect is created using the syntax: |
| <noinclude>{{Subcat guideline|editing guideline|Redirect|BP:R|BP:REDIR|BP:RDR}}</noinclude>
| | <syntaxhighlight lang="wikitext"> |
| {{Nutshell|Redirects aid navigation and searching by allowing a page to be reached under alternative titles.}}
| | #REDIRECT [[Target]] |
| | </syntaxhighlight> |
| | ...where "target" is the name of the target page. It is also possible to add a [[BP:section|section]] header to make a redirect to a specific section of the target page in the following manner: |
| | <syntaxhighlight lang="wikitext"> |
| | #REDIRECT [[Target#Section header]] |
| | </syntaxhighlight> |
| | The pound/number/hash sign (#) is also used to link to [[BP:anchor|page anchors]]. |
|
| |
|
| [[File:EnWiki redirect - Pichilemo.png|thumb|right|upright=1.25|An example of a Bharatpedia redirect, showing a message that [[Pichilemo]] redirects to [[Pichilemu]]]] | | Usually, [[BP:RCAT|redirect maintenance categories]] should also be added. |
| [[File:Bharatpedia-minerva-neue-redirect.png|thumb|right|upright=1.25|An example of a redirect on the MinervaNeue skin, from [[Web redirect]] to [[URL redirection]]]]
| |
|
| |
|
| A '''redirect''' is a page that automatically sends visitors to another page, usually an article or section of an article. For example, if you type "UK" in the search box or click on the wikilink [[UK]], you will be taken to the article [[United Kingdom]] with a note at the top of the page (or on mobile, in a black message bar at the bottom): "<span style="font-size: 84%; line-height: 1.2em; color: rgb(84, 84, 84);">(Redirected from {{No redirect|UK}})</span>". This is because the page {{No redirect|UK}} contains special wikitext that defines it as a redirect page and indicates the target article. It is also possible to redirect to a specific [[Help:Section|section]] of the target page, using more advanced syntax. | | ==Syntax== |
| | {{Shortcut|Bharatpedia:Hard redirect}} |
| | A page is treated as a redirect page if its [[BP:wikitext|wikitext]] begins with <code>#REDIRECT</code> followed by a valid [[Help:Link|wikilink]] or [[Help:Interwiki|interwikilink]]. A space is usually left before the link. (Note that some alternative capitalizations of "REDIRECT" are possible.) |
|
| |
|
| Redirect pages can contain other content below the redirect, such as [[Bharatpedia:Template index/Redirect pages#List of redirects by function|redirect category templates]], and category links (which provide a way to list article sections in categories).
| | Note that a redirect works as intended (takes the reader directly to the target page) only if the link is to an existing normal page (not a [[Help:special page|special page]]) on the same project (English Wikipedia). In other cases soft redirects are often used – see [[#Soft redirects|below]]. |
|
| |
|
| Redirects are used to help people arrive more quickly at the page they want to read; this page contains guidance on how to use them properly. For technical help relating to how redirects work, {{crossref|pw=y|see [[Help:Redirect]]}}. Other relevant pages are [[Bharatpedia:Double redirects]], [[Bharatpedia:Hatnote#Redirect|Bharatpedia:Hatnote § Redirect]] and [[Bharatpedia:WikiProject Redirect|WikiProject Redirect]].
| | Examples: |
| | * <code><nowiki>#REDIRECT [[France]]</nowiki></code> (redirects to the [[France]] article) |
| | * <code><nowiki>#REDIRECT [[France#History]]</nowiki></code> (redirects to the "History" section of the [[France]] article) |
| | * <code><nowiki>#REDIRECT [[fr:France]]</nowiki></code> (appears as a redirect to the [[France]] article on French Wikipedia, but does not work as a true redirect) |
|
| |
|
| == Purposes of redirects ==
| | Any text appearing after the redirect link is ignored in the display, but may be used to add categories, interwiki links, comments, etc. |
| {{Anchor|reasons|What do we use redirects for?}}
| |
| {{Shortcut|BP:POFR|BP:RPURPOSE}}
| |
| Reasons for creating and maintaining redirects include:
| |
| * Alternative names redirect to the [[Bharatpedia:Article titles|most appropriate article title]] (for example, [[Edson Arantes do Nascimento]] redirects to [[Pelé]]).
| |
| * Plurals (for example, [[Greenhouse gases]] redirects to [[Greenhouse gas]]).
| |
| * Closely related words (for example, [[Symbiont]] redirects to [[Symbiosis]]).
| |
| * Adjectives or adverbs point to noun forms (e.g., [[Treasonous]] redirects to [[Treason]])
| |
| * Less specific forms of names, for which the article subject is still the [[BP:PRIMARYTOPIC|primary topic]]. For example, [[Einstein]] redirects to [[Albert Einstein]], whereas [[Albert]] is a [[BP:Disambiguation|disambiguation]] page rather than a redirect, since no Albert is regarded as the primary topic for that name.
| |
| * More specific forms of names (for example, [[Articles of Confederation and Perpetual Union]] redirects to [[Articles of Confederation]]).
| |
| * Abbreviations and initialisms (for example, [[ADHD]] redirects to [[Attention deficit hyperactivity disorder]]). But often an abbreviation will have multiple meanings, none of which is a [[BP:PRIMARYTOPIC|primary topic]]—in that case a disambiguation page should be created rather than a redirect.
| |
| * Alternate forms of a name as found in reliable sources and common databases. For example, [[Cellular and Molecular Life Sciences : CMLS]] redirects to [[Cellular and Molecular Life Sciences]], based on its [https://www.ncbi.nlm.nih.gov/nlmcatalog?term=1420-682X PUBMED] entry.
| |
| * Alternative spellings or punctuation. For example, [[Colour]] redirects to [[Color]], and [[Al-Jazeera]] redirects to [[Al Jazeera]].
| |
| * Stylized forms of names. For example, [[Ty Dolla $ign]] redirects to [[Ty Dolla Sign]].
| |
| * Punctuation issues—some titles containing [[dash]]es should have redirects using [[hyphen-minus|hyphens]], and vice versa. The proper title depends on official spelling (in the case of a name, such as [[Olivia Newton-John]]), or established Bharatpedia policy and naming conventions (such as [[Spanish–American War]]).
| |
| * Representations using ASCII characters; that is, common transliterations (for example, [[Pele]] also redirects to [[Pelé]], while [[Kurt Goedel]] and [[Kurt Godel]] redirect to [[Kurt Gödel]]).
| |
| * Likely misspellings (for example, [[Condoleeza Rice]] redirects to [[Condoleezza Rice]]). Note: this criterion typically does not apply to redirects from typos in the [[Bharatpedia:Template namespace|template namespace]]; consensus is that such typos, unless they are very common, should remain as red links until they are fixed.
| |
| * Likely mixed-up technical names (for example, [[Oxygen chloride]] redirects to [[Chlorine oxide]]).
| |
| * Likely alternative capitalizations (for example, [[Natural Selection]] redirects to [[Natural selection]]). This is not necessary for user searches made via Bharatpedia's search engine, but may aid linking from other articles and external sites, as well as direct URL entry.
| |
| * To comply with the maintenance of nontrivial edit history, pursuant to [[Bharatpedia:Merging#PROMERGE]] for copyright licensing requirements.
| |
| * Subtopics or other topics that are described or listed within a wider article. (Such redirects are often targeted to a particular section of the article.)
| |
| {{anchor|RTOUNDAB|Redirects to unmarked disambiguation pages}}{{short|BP:RTOUNDAB}}
| |
| * Redirects to disambiguation pages that do not contain "(disambiguation)" in the title (for example, [[Durham (disambiguation)]] redirects to [[Durham]]). These help maintenance by allowing deliberate links to disambiguation pages to be distinguished from links that need to be disambiguated. {{crossref|pw=y|See [[BP:INTDAB]] for a fuller explanation.}}
| |
| * [[bP:Shortcut|Shortcuts]] (for example, [[BP:V]] and [[Bharatpedia:V]] redirect to [[Bharatpedia:Verifiability]]). This is commonly done in [[BP:Project namespace|project space]], but not in article space.
| |
| * Old-style [[Bharatpedia:CamelCase and Bharatpedia|CamelCase]] links (if already in existence) ([[AnnaKournikova]] redirects to [[Anna Kournikova]]).
| |
| * Links auto-generated from [[Exchangeable image file format]] information ([[Adobe Photoshop CS Windows]] redirects to [[Adobe Photoshop]]).
| |
| * Finding [[Help:What links here#Limitations|what links to a section]], when links are made to the redirect rather than the section.
| |
|
| |
|
| There are [[Bharatpedia:Template messages/Redirect pages|redirect templates]] to explain the [[Bharatpedia:Redirect#PLA|reason]] for a redirect.
| | Note that the redirect link must be explicit – it cannot contain [[Help:Magic word|magic words]], [[WP:template|templates]], etc. |
|
| |
|
| {{Anchor|note}}
| | When redirecting to a [[Help:category|category]] page, prefix the target pagename with a colon to prevent the redirect from showing up in the category. (Redirects from one category page to another should use soft redirects – see [[#Soft redirects|below]].) Redirects to [[Help:image|image]] pages also require the colon. |
| Note that redirects to other Bharatmedia wikis, other websites, [[Special:SpecialPages|special pages]], or direct file links ('''Media:''' namespace) do not work. These should be avoided or replaced with a {{Tl|soft redirect}} template. Soft redirects are also used in [[Help:Category|category space]] (using the {{Tl|category redirect}} template). Redirects from list titles to categories (e.g. a redirect from <nowiki>[[List of things]]</nowiki> to <nowiki>[[Category:Things]]</nowiki>) are highly discouraged.<ref>Discouraged after [[Wikipedia talk:Stand-alone lists/Archive 10#RfC about redirects to categories|a 2019 discussion]].</ref>
| |
|
| |
|
| == How to make a redirect == | | ==How it appears to the user== |
| {{main|Help:Redirect|Bharatpedia:How to make a redirect}}
| | If the redirect target is an existing page on English Bharatpedia and a reader navigates to the redirect page – by [[Help:Link|wikilink]], the search box, or a [[Help:URL|URL]] – the reader is taken directly to the target page. A small notice below the top title indicates that the user arrived via a redirect. For example, if you click [[Transportation]], you are redirected to the [[Transport]] article, and the top of the page looks like: |
| <!-- <div class="notice" style="background:#def; border:1px solid #468; padding:0.5em; margin:0.5em auto; background-color:#EBFFEB;"><center>Note: For a [[Bharatpedia:Autoconfirmed article creation trial|trial period]] from September 14, 2017 to at least March 14, 2018, users will not be able to create pages, including redirects, directly in the [[Bharatpedia:What is an article?#Namespace|article mainspace]] until their accounts are [[Bharatpedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]] – an editing threshold passed when a user's account is at least 4 days (96 hours) old, and has made more than ten edits. Non-autoconfirmed users can request creation of redirects at [[Bharatpedia:Articles for creation/Redirects and categories]].</center></div> -->
| |
|
| |
|
| === Editing the source directly === | | <blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;"> |
| To create a basic redirect using the source editor, type <code><nowiki>#REDIRECT [[target page name here]]</nowiki></code> as the only text on the page. The capitalization of the word <code>REDIRECT</code> doesn't matter. For instance, if you were redirecting from "{{No redirect|UK}}" to "[[United Kingdom]]", this would be the entire body of {{No redirect|UK|the "UK" page}}:
| | {{fake heading|Transport}} |
| | From Wikipedia, the free encyclopedia |
| | {{Indent|3}}<small>(Redirected from <span class="plainlinks">[{{fullurl:Transportation|redirect=no}} Transportation]</span>)</small> |
| | </blockquote> |
|
| |
|
| <code><nowiki>#REDIRECT [[United Kingdom]]</nowiki></code>
| | To go to the redirect page itself (to edit it, view its history, etc.), click the link in the "(Redirected from...)" notice. |
|
| |
|
| === Using VisualEditor ===
| | If the redirect target is a non-existing page ([[BP:redlink|redlink]]), or a [[Help:special page|special page]], or a page in another project, then the redirect is not followed, and the reader sees the display of the redirect page (as illustrated below). If the target is a non-existent section of an existing page, then the redirect will take the reader to the top of the target page. |
| To create a redirect using the [[Bharatpedia:VisualEditor|VisualEditor]]:
| |
| # Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor
| |
| # Select "Page settings"
| |
| # Check the box marked "Redirect this page to"
| |
| # Enter the name of the target page in the text box below the checkbox
| |
| # Click on the blue "Apply changes" button
| |
| # Save the page. You may enter an edit summary, or an automatic summary will be generated.
| |
|
| |
|
| === When moving a page ===
| | Chains of redirects are not followed. If title ''A'' redirects to ''B'', and ''B'' is itself a redirect page, then a reader navigating to ''A'' will see the display of the redirect page ''B'' (as illustrated). See [[BP:Double redirects|Double redirects]]. ([[Help:Bot|Bots]] fix such chains so that each redirect points directly to the final target page.) |
| Redirects can also be automatically created when you [[Bharatpedia:MOVE|move (rename) an existing page]].
| |
| === Requesting a redirect ===
| |
| If you can't create pages, you can request redirects at [[Bharatpedia:Redirect wizard]].
| |
|
| |
|
| == How to edit a redirect or convert it into an article ==
| | A redirect page viewed directly, either in the situations described above, or when the [[Help:URL|URL]] used to access the page contains the query parameter <code>redirect=no</code>, looks like this: |
| {{shortcut|BP:EDRED|BP:RTOA}}
| |
| Sometimes an existing redirect should really be handled by a full article, per [[:Category:Redirects with possibilities]]. For example, the name of a notable musician (who does not yet have an article) may instead be a redirect to an existing article about a band of which the musician is a member. In this case, you can edit the redirect to make it into an article. Also, if an existing redirect points to the wrong page, you can edit the redirect to point to a different page.
| |
|
| |
|
| If you want to edit a redirect page you must use a special technique in order to get to the redirect page itself. This is because when you try to go straight to the redirect page and edit it, the redirect page will automatically redirect you to its target page (because this is what a redirect page is meant to do). Below is an example of why you might need to go to a redirect page itself (to do a small edit) and how to actually get there.
| | <blockquote style="background-color: white; color: black; border:1px solid black; padding: 1em;"> |
| | {{fake heading|Transportation}} |
| | <small>From Bharatpedia, the free encyclopedia</small> |
| | <div>Redirect page</div> |
| | [[File:Redirect arrow without text.svg]] <span class="redirectText">[[Transport]]</span> |
| | </blockquote> |
|
| |
|
| For example, say [[Trygve Halvdan Lie]] did not have his own article, and so this link was a redirect to the page [[Secretary-General of the United Nations]]. If, later on, the page [[Trygve Lie]] was created as a biography, the page [[Trygve Halvdan Lie]] should be changed to redirect to [[Trygve Lie]] per [[BP:COMMONNAME]]. To do this, go to the redirect page by clicking the existing redirect note on the target page, which in this case would read "(Redirected from {{-r|Trygve Halvdan Lie}})". Once there, you may click the "Edit" tab, and change the page from
| | (See the actual {{no redirect|Transportation}} redirect page.) |
|
| |
|
| <code><nowiki>#REDIRECT [[Secretary-General of the United Nations]]</nowiki></code>
| | Redirects to articles that begin with a lowercase title, for example the redirect from the page at [https://en.bharatpedia.org/w/index.php?title=EBay.com&redirect=no Ebay.com] to the article at [[eBay]], will display the target page with a capitalized first letter, even though the article displays the title with a lowercase title. This is because the true title of the target page is actually capitalized — it just appears lowercase because of the use of the magic word [[Help:Magic words#Behavior switches|DISPLAYTITLE]]. (Usually, the template <nowiki>{{</nowiki>[[Template:Lowercase title|Lowercase title]]<nowiki>}}</nowiki> is used to implement the DISPLAYTITLE magic word for lowercase titles.) |
| : to
| |
| <code><nowiki>#REDIRECT [[Trygve Lie]]</nowiki></code>
| |
|
| |
|
| When adding or changing a redirect, always verify the links that already point there. For instance, if another person named Trygve Lie becomes very well known, it would make sense to make [[Trygve Lie]] a redirect to his page (after renaming the existing [[Trygve Lie]] page). Such a change cannot be made without changing all the preexisting links to [[Trygve Lie]]; these links can be found by clicking on [[Special:WhatLinksHere/Trygve_Lie|What links here]] in the left hand menu. Also, when changing the target of a redirect verify that its talk page is not also a redirect and if it is, either retarget it to the current target's talk page, replace the redirect with {{tl|talk page of redirect}} or if you turned the redirect into an article, remove it entirely unless [[BP:TALKCENT]] applies. | | ===Section redirects=== |
| | When the redirect target is a [[Help:section link|section link]], following a redirected link should lead to the section or other element identified by the link. Normally the redirected page includes the entire contents of the target page as if the section fragment wasn't specified, and uses [[JavaScript]] to jump to the section after the page is loaded. If JavaScript is disabled, this jump does not happen. |
|
| |
|
| == Targeted and untargeted redirects ==
| | When a redirect page is viewed directly without following the target link, the link is shown as an ordinary section link, and works as usual without the use of JavaScript. |
| {{Shortcut|BP:TARGET|BP:RSECT}}
| |
| {{See also|MOS:LINK2SECT}}
| |
|
| |
|
| Most redirects are ''untargeted'', i.e. they lead simply to a page, not to any specific section of the page. This is usually done when there is more than one possible name under which an article might be sought (for example, [[Cellphone]] redirects to the article [[Mobile phone]]). For deciding which should be the actual title of the article, {{crossref|pw=y|see [[BP:Article titles]]}}.
| | ==Purposes of a redirect== |
| | {{detail|Bharatpedia:Redirect#Purposes of redirects}} |
| | Redirects are usually created because readers may search for an article under different names (or editors may wish to link to it from different names). Examples are: |
| | * Alternative names for the same thing |
| | * Alternative spellings, capitalizations, etc. (although it is not necessary to create redirects from different capitalizations just because readers may enter them in the search box - the Go button in the Monobook skin resolves this automatically) |
| | * Common misspellings |
| | * Plurals |
| | * Subtopics that don't have their own article (in this case, you may redirect to a section of the target page) |
| | * [[BP:Shortcut|Shortcuts]] to a page, used mainly in project space (such as [[BP:AFD]]) |
| | * Redirects that keep links to a page active after it has been renamed (even if internal links are updated—this still applies for links from outside and [[Help:Edit summary#Internal and interwiki links in edit summaries|links in edit summaries]]) |
|
| |
|
| It is also possible to create a ''targeted redirect'', i.e. a redirect to a particular point on the target page—either a [[Help:Section|section header]] or an [[Help:Anchor|anchor]]. For example, the page [[Malia Obama]] contains the code <code><nowiki>#REDIRECT [[Family of Barack Obama#Malia and Sasha Obama]]</nowiki></code>, which redirects to the [[Family of Barack Obama#Malia and Sasha Obama|Malia and Sasha Obama]] section in the article [[Family of Barack Obama]]. Therefore, entering {{kbd|Malia Obama}} will bring the searcher straight to the content that deals with "Malia and Sasha Obama".
| | Note that it is not necessary to create redirects from every title an editor may conceivably wish to link to a given page – [[Help:Piped link|piped links]] can be used as an alternative. |
|
| |
|
| Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from... )" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect.
| | ==Creating and editing redirects== |
| | :''Unregistered users, and those not yet [[Bharatpedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]], can request a redirect be created at [[Bharatpedia:Articles for creation/Redirects]]. There is also a [[Bharatpedia:Article_wizard/Redirects|wizard]] that less experienced editors can use to create a redirect.'' |
|
| |
|
| The text given in the link on a targeted redirect page must exactly match the target section heading or anchor text, including capitalization and punctuation. (While spaces and underscores are interchangeable in the current implementation of the Bharatmedia software, it is generally good practice and aids maintenance to use exactly the same spelling in links as is used in the corresponding targets also for these characters.) (In the absence of a match, the reader will simply be taken to the top of the target page.) It is often helpful to leave a [[BP:HIDDEN|hidden comment]] in the target text, to inform other editors that a section title is linked, so that if the title is altered, the redirect can be changed. For example:
| | A redirect page can be created like any other page (see [[Help:Creating a new page|Creating a new page]]). Simply type in the wikitext <code><nowiki>#REDIRECT [[</nowiki>xxx]]</code>, replacing "xxx" with the title of the target page (optionally followed by a "#" sign and the section title). |
|
| |
|
| <pre> | | Make sure that there is no text ''before'' the #REDIRECT keyword, or the redirect will not work. There is not usually any reason to place any text after the link either, although sometimes categories (or categorizing templates—see [[BP:Categorizing redirects|Categorizing redirects]]), interwiki links (see [[BP:Interlanguage links|Interlanguage links]]) or HTML comments (<code><nowiki><!-- comment --></nowiki></code>) are added. |
| == Vaccine overload ==
| |
| <!-- "Vaccine overload" redirects here. -->
| |
| </pre> | |
|
| |
|
| To ensure that a redirect will not break if a section title gets altered, or to create a redirect to a point on the page other than a section heading, create an explicit target anchor in the page, e.g., by using the {{Tl|anchor}} template. Alternative anchors for section headings are ideally placed directly after the name of the heading (but before the closing equals signs):
| | Similarly, any existing page can be edited to turn it into a redirect. |
| <pre>== Section title {{subst:Anchor|anchor name}} ==</pre>
| |
|
| |
|
| [[Bharatpedia:Substitution|Substitution]] (<code><nowiki>{{subst:Anchor}}</nowiki></code>) is preferable to simply using {{tlx|Anchor}} because otherwise, when the section is edited via its own {{nowrap |"[ edit ]"}} link, the anchor markup and alternative section title(s) will appear as undesirable clutter at the beginning of revision history entries. {{crossref|pw=y|See [[MOS:RENAMESECTION]] for further discussion of this.}}
| | To edit a page that is already a redirect (or to view its history, talk page, etc.), follow the redirect to the target page, then click on the link in the "(Redirected from ...)" notice at the top of the page. This takes you to the redirect page itself. (The [[Help:URL|URL]] for accessing a redirect page without following the redirect contains the query parameter ''redirect=no''.) |
|
| |
|
| The anchor text will not be visible on the page, but it will serve as a permanent marker of that place on the page. Editors should generally not remove or alter such anchors without checking all incoming links and redirects. If several logically independent aspects of a topic are discussed under a single section header and should be linked to, it is sometimes useful to define separate anchors for them, if the current amount of information doesn't justify a division into multiple sections already. This makes it easier to rearrange contents on a page as it develops since those anchors can be moved with their corresponding contents without a need to fix up incoming links.
| | Another way to get to a redirect page is to go to the target page, and click "[[Help:What links here|What links here]]" (in the toolbox on the left of the page). This will show you all the [[backlink]]s to that page, including redirects. Clicking on a redirect in this list will take you to the redirect page, not the target. |
|
| |
|
| For example, in the [[Google Search]] article, the text {{tnull|anchor|calculator}} is placed at the point where ''Google Calculator'' is discussed. The title [[Google Calculator]] can then be redirected to [[Google Search#calculator]].
| | The [[Help:edit summary|edit summary]] box can be left blank; the summary will then be automatically generated stating that the page has been redirected to the given target. (This applies for: a new redirect page; an existing article page turned into a redirect page; and a change to the target of an existing redirect.) The generated summary is overridden if the editor supplies their own summary. |
|
| |
|
| When a section title is known to be the target of incoming links, the Bharatpedia Manual of Style [[MOS:RENAMESECTION|suggests creating a redundant anchor with the same name as the section title]], so that such links will continue to work even if someone renames the section without creating an anchor with the old name. Technically, the redundant section and anchor names result in invalid HTML.<ref>{{cite web |title=The id attribute |url= https://www.w3.org/TR/html51/dom.html#the-id-attribute |website=HTML - Living Standard |publisher=[[WHATWG]] |access-date=June 3, 2022}}</ref> However, when a document contains multiple tags with the same <code>id</code> value, browsers are required to return the first one, so in practice, this is not a problem.<ref>{{cite web |title=getElementById |url= https://dom.spec.whatwg.org/#dom-nonelementparentnode-getelementbyid |website=DOM – Living Standard |publisher=[[WHATWG]] |access-date=June 3, 2022}}</ref>
| | === Using VisualEditor === |
| | | To create a redirect using the [[Bharatpedia:VisualEditor|VisualEditor]]: |
| Be careful with anchor capitalization, as redirects are case-sensitive in standards-compliant browsers.<ref>{{cite web |title=Syntax of anchor names |url= http://www.w3.org/TR/html4/struct/links.html#h-12.2.1 |website=HTML 4.01 Specification - W3C Recommendation |date=24 December 1999 |publisher=[[W3C]] |access-date = June 3, 2022}}</ref>
| | # Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor |
| {{talkref}}
| | # Select "Page settings" |
| | | # Check the box marked "Redirect this page to" |
| == Double redirects ==
| | # Enter the name of the target page in the text box below the checkbox |
| {{Main|Bharatpedia:Double redirects}}
| | # Click on the blue "Apply changes" button |
| | | # Save the page. You may enter an edit summary, or an automatic summary will be generated. |
| The software will not follow chains of more than one redirect—this is called a double redirect. A redirect should not be left pointing to another redirect page.
| |
| | |
| Double redirects often arise after a page is [[BP:MOVE|moved]] (renamed)—after moving a page, check whether there are any redirects to the old title (using the link on the move result page, or using [[BP:WHATLINKSHERE|"What links here"]]), and change them to redirect straight to the new title. Double redirects are usually fixed by a [[Bharatpedia:Bots|bot]] in a few days; however, an editor should not leave behind any self-created double redirects.
| |
| | |
| == Linking to a redirect ==
| |
| {{Main|Bharatpedia:Manual of Style (linking)#Redirects}}
| |
| | |
| You can link to a redirect page just as you can [[Help:Link|link]] to an article page by placing the redirect page name within a set of double brackets, such as: <div style="margin-left: 2em"><code><nowiki>[[</nowiki>{{var|Redirect page name}}<nowiki>]]</nowiki></code></div> replacing {{var|Redirect page name}} with the name of the redirect page to link.
| |
| | |
| To link to a redirect page without following the underlying redirect, use: {{tlx|No redirect|{{var|Redirect page name}}}} replacing {{var|Redirect page name}} with the name of the redirect page to link. Clicking on a no-redirect link will send the reader to the redirect page rather than the final redirect destination.
| |
| | |
| == Categorizing redirect pages ==
| |
| {{Main|Bharatpedia:Categorizing redirects}}
| |
| | |
| Most redirect pages are not placed in article [[BP:Categorization|categories]]. There are three types of redirect categorization that are helpful and useful:
| |
| * Maintenance categories are in use for particular types of redirects, such as [[:Category:Redirects from initialisms]], in which a redirect page may be sorted using the {{Tl|R from initialism}} template. One major use of these categories is to determine which redirects are fit for inclusion in a [[WP:Printability|printed subset]] of Bharatpedia. {{crossref|pw=y|See [[BP:Template messages/Redirect pages]]}} for functional and alphabetical lists of these templates. A brief functional list of redirect category ([[BP:RCAT|rcat]]) templates is also found in the {{Tl|R template index}} navbar.
| |
| * {{short|BP:ACATR}}{{anchor|Redirects placed in article categories}} Sometimes a redirect is placed in an article category because the form of the redirected title is more appropriate to the context of that category, e.g. {{No redirect|Honey Lantree}} redirects to the band article [[The Honeycombs]], but the redirect is placed in [[:Category:1943 births]] and other categories which relate to Lantree as an individual. (Redirects appear in italics in category listings.)
| |
| * Discussion pages. If a discussion/talk page exists for a redirect, please ensure (1) that the talk page's WikiProject banners are tagged with the "class=Redirect" parameter and (2) that the talk page is tagged at the TOP with the {{Tl|Talk page of redirect}} template. If the discussion page is a redirect, then it may be tagged with appropriate redirect categorization templates (rcats).
| |
| | |
| === Redirects from moves ===
| |
| When a page is renamed/moved, a redirect that is titled with the replaced page name is created and is automatically tagged with the {{Tl|R from move}} template. This sorts the redirect into [[:Category:Redirects from moves]].
| |
| | |
| == When should we delete a redirect? <span id="CRD"></span><span id="crd"></span><span id="Criteria for redirect deletion"></span> ==
| |
| {{Shortcut|BP:R#CRD}}
| |
| | |
| To delete a redirect {{em|without replacing it with a new article}}, list it on [[Bharatpedia:Redirects for discussion|redirects for discussion]]. {{crossref|pw=y|See the [[BP:Deletion policy]]}} for details on how to nominate pages for deletion.
| |
| | |
| Listing is not necessary if you just want to replace a redirect with an article, or change where it points {{crossref|pw=y|(see [[meta:Help:Redirect#Changing a redirect|these instructions]] for help doing this)}}. If you want to {{em|swap}} a redirect and an article, but are not able to move the article to the location of the redirect, please use [[Bharatpedia:Requested moves]] to request help from an [[Bharatpedia:Administrators|admin]] in doing that.
| |
| | |
| {{Bharatpedia:Redirect/Deletion reasons}}
| |
| | |
| == What needs to be done on pages that are targets of redirects? ==
| |
| {{Anchor|PLA|pla|ASTONISH|SURPRISE}}
| |
| {{Shortcut|BP:RPLA|BP:RASTONISH}}
| |
| {{Further|Bharatpedia:Manual of Style/Text formatting#Other uses|Bharatpedia:Manual of Style/Lead section#Alternative names}}
| |
| | |
| Bharatpedia follows the "[[Bharatpedia:Guide to writing better articles#Principle of least astonishment|principle of least astonishment]]"; after following a redirect, the reader's first question is likely to be: "Hang on ... I wanted to read about {{em|this}}. Why has the link taken me to {{em|that}}{{-?}}" Make it clear to the reader that they {{em|have}} arrived in the right place.
| |
| | |
| Normally, we try to make sure that all "inbound redirects" other than misspellings or other obvious close variants of the article title are mentioned in the first couple of paragraphs of the article or section to which the redirect goes. It will often be appropriate to '''boldface''' the redirected term at its first occurrence in the target, though insignificant or minor redirects can skip this. For example:
| |
| * '''Alice Bradley Sheldon''' (August 24, 1915 – May 19, 1987) was an American science fiction and fantasy author better known as '''James Tiptree Jr.''' ...
| |
| ** [[James Tiptree Jr.]], redirects from [[Alice Sheldon]]
| |
| | |
| If the redirected term could have other meanings, a [[BP:Hatnote|hatnote]] ([[Bharatpedia:HATTEST#Redirect|examples]]) should be placed at the top of the target article or targeted section that will direct readers to the other meanings or to a relevant [[BP:DAB|disambiguation]] page. This is usually done using one of the [[Template:Redirect|redirect disambiguation templates]] {{crossref|pw=y|([[Bharatpedia:HATTEST#Redirect|examples]])}}.
| |
| | |
| It may also be helpful to [[Help:Searching|search]] the [[Help:Category#Listing all categories|List of Categories]] for [[Bharatpedia:FAQ/Categories#Can I specify categories when searching?|related terms]].
| |
| | |
| == Redirects that replace previous articles ==
| |
| {{Short|BP:BLANKANDREDIRECT|BP:BLAR}}
| |
| {{See also|Bharatpedia:Deletion policy#Redirection}}
| |
| | |
| [[bP:BLANK|Removing all content]] in a problematic article and replacing it with a redirect is common practice, known as ''blank-and-redirect''. If other editors [[BP:BRD|disagree]] with this blanking, its contents can be recovered from [[Help:page history|page history]], as the article has not been [[BP:DEL|deleted]]. If editors cannot agree, the content issues should be discussed at the relevant talk page, and other methods of [[Bharatpedia:Resolving disputes|dispute resolution]] should be used, such as restoring the article and nominating the article for [[Bharatpedia:Articles for deletion]].<ref>[[Special:Permalink/998395765#Request_for_comment:_Proposed_blank_and_redirects|An RfC closed in 2021]] found {{tq|Most users believe that AfD should be used to settle controversial or contested cases of blanking and redirecting.}}</ref>
| |
| | |
| To make it easier for other editors to find the history of the blanked article, it's good practice to add a short notice at the talk page of the target article, even if no content has been [[Bharatpedia:Merging|merged]] there. This is especially useful if the blanked article had few visits and infrequent edits. If the redirect replaces an article that has been deleted by an [[Bharatpedia:Administrators|administrator]], this notice is the only way for editors to know that a previous version of the article existed at all.
| |
| | |
| Template notices that can be used with this practice:
| |
| * {{tl|Blank and redirect notice}}
| |
| * {{tl|Uw-blar}}
| |
| | |
| {{talkref}}
| |
| | |
| === Content of the replaced article ===
| |
| {{seealso|Bharatpedia:Editing policy#Try to fix problems}}
| |
| The template {{tl|R with history}} should be added to the resulting redirect. If the topic of the article can be reasonably thought to describe a [[BP:N|notable]] topic, mark the redirect with the template {{Tl|Redirect with possibilities}} to indicate that [[Bharatpedia:Redirect#How to edit a redirect or convert it into an article|it could be expanded in the future]]. You may also consider [[Bharatpedia:Stubbing#Stubbing existing articles|turning the article into a stub]] by removing all unsourced content and keeping the valid references, instead of blanking it.
| |
| | |
| Note that certain forms of blanking are ''not'' allowed.
| |
| | |
| [[Bharatpedia:Vandalism#Blanking, illegitimate|Illegitimate blanking]] of valid content without reason is considered [[BP:vandalism|vandalism]], a form of [[Bharatpedia:disruptive editing|disruptive editing]]. Other forms of blank-and-redirect, although not vandalism, are still undesirable. If you want to [[BP:CUTPASTE|rename the article by cutting and pasting text]] to a new article with a different title, you should instead [[Bharatpedia:Moving a page|move the page]] with the ''Move'' option. If you want to keep some content from the blanked article and add it to the target article, you should follow the instructions at {{section link|Bharatpedia:Merging|How to merge}}. Both processes will create proper links to the edit history, which is required by the [[Bharatpedia:Copyrights|Wikipedia license]] for legal reasons to [[Bharatpedia:Copying within Wikipedia|preserve attribution of content to its authors]].
| |
| | |
| == Do not "fix" links to redirects that are not broken ==
| |
| {{Anchor|NOTBROKEN|notbroken}}{{Shortcut|BP:NOTBROKEN|BP:DONOTFIXIT}}
| |
| {{Redirect|BP:NOTBROKEN|text=You may be looking for {{section link|Bharatpedia:Typo Team|Some typos do not need to be corrected}}, or [[Bharatpedia:If it ain't broke, don't fix it]]}}
| |
| {{Further|Bharatpedia:Manual of Style/Linking#MOS:NOPIPE}}
| |
| | |
| There is usually nothing wrong with linking to redirects to articles. Some editors are tempted, upon finding a link to a redirect page, to bypass the redirect and point the link directly at the target page. However, changing to a piped link is beneficial only in a few cases. Piping links solely to avoid redirects is generally a time-wasting exercise that can actually be detrimental. It is almost never helpful to replace <syntaxhighlight lang="wikitext" inline>[[redirect]]</syntaxhighlight> with <syntaxhighlight lang="wikitext" inline>[[target|redirect]]</syntaxhighlight>.
| |
|
| |
|
| That is, editors should not change, for instance, <syntaxhighlight lang="wikitext" inline>[[Franklin Roosevelt]]</syntaxhighlight> to <syntaxhighlight lang="wikitext" inline>[[Franklin D. Roosevelt]]</syntaxhighlight> or <syntaxhighlight lang="wikitext" inline>[[Franklin D. Roosevelt|Franklin Roosevelt]]</syntaxhighlight> {{em|just}} to "fix a redirect". However, it is perfectly acceptable to change it to <syntaxhighlight lang="wikitext" inline>[[Franklin D. Roosevelt]]</syntaxhighlight> if for some reason it is preferred that "Franklin D. Roosevelt" actually appear in the visible text. Editors should also not change [[:Category:Redirects with possibilities|redirects with possibilities]] like <syntaxhighlight lang="wikitext" inline>[[Journal of the Franklin Institute]]</syntaxhighlight> to <syntaxhighlight lang="wikitext" inline>[[Franklin Institute#Journal of the Franklin Institute|Journal of the Franklin Institute]]</syntaxhighlight>, so that readers arrive at the more pertinent article in the eventuality that it is created.
| | ===With Template=== |
|
| |
|
| Reasons {{em|not}} to bypass redirects include:
| | For redirecting ''xyz'' to article ''abc'', enter ''xyz'' here, and type <nowiki>#REDIRECT [[abc]]</nowiki> in the body. |
| * Redirects can indicate [[:Category:Redirects with possibilities|possible future articles]] {{crossref|pw=y|(see {{Tl|R with possibilities}})}}.
| |
| * Introducing unnecessary invisible text makes the article more difficult to read in page source form.
| |
| * Non-piped links make better use of the "what links here" tool, making it easier to track how articles are linked and helping with large-scale changes to links.
| |
| * Shortcuts or redirects to embedded anchors or sections of articles or of [[Bharatpedia:Policies and guidelines|Bharatpedia's advice pages]] should never be bypassed, as the anchors or section headings on the page may change over time. Updating one redirect is far more efficient than updating dozens of piped links. (The [http://69.142.160.183/~dispenser/view/Rdcheck Rdcheck] tool is extremely useful in such cases for finding which redirects need to be changed after an article is updated.)
| |
| * Intentional links to [[Bharatpedia:Disambiguation|disambiguation pages]] always use the title with "(disambiguation)", even if that is a redirect.
| |
| * If editors persistently use a redirect instead of an article title, it may be that the article needs to be moved rather than the redirect changed. As such the systematic "fixing of redirects" may eradicate useful information that can be used to help decide on the "best" article title.
| |
|
| |
|
| {{Anchor|Bypass redirects in navigational templates|template link fix|template linkfix|templatelinkfix|TLF}}Good reasons to bypass redirects include:{{Shortcut|BP:BYPASSREDIRECT|abP:NAVNOREDIRECT|BP:BRINT|BP:MPNOREDIRECT|abP:DOFIXIT}}
| | <div style="float: left"><inputbox> |
| * It is usually preferable not to use redirected links in navigational templates, such as those found at the bottom of many articles (e.g., {{Tl|US presidents}} at the end of [[George Washington]]). When a template is placed on an article and contains a {{em|direct}} link to the same article (rather than a redirect), the direct link will display in '''bold''' (and not as a link), making it easier to navigate through a series of articles using the template. There are exceptions to this exception: where a redirect represents a distinct sub-topic within a larger article and is not merely a variant name, it is preferable to leave the redirect in the template.
| | type=create |
| * It may be appropriate to make this kind of change if the hint or [[BP:Tooltips|tooltip]] that appears when a user hovers over the link is misleading {{crossref|pw=y|(see [[BP:ASTONISH|Principle of least astonishment]])}}.
| | align=left |
| * Spelling errors and other mistakes should be corrected. Don't link to a misspelled redirect. This does not necessarily mean that the misspelled redirect should be deleted {{crossref|pw=y|(see {{tl|R from misspelling}})}}.
| | preload=Template:Redirect preload |
| * Links on disambiguation pages. {{crossref|pw=y|See {{section link|BP:Manual of Style/Disambiguation pages|Piping and redirects}} for rationale and exceptions.}}
| | editintro=Template:Redirect editintro |
| * Radio and TV station call letters, since call letters given up by one station can be used later by a different station.
| | buttonlabel=Create redirect |
| * In other namespaces, particularly the template and portal namespaces in which [[BP:Subpages|subpages]] are common, any link or transclusion to a former page title that has become a redirect following a page move or merge should be updated to the new title for naming consistency.
| | break=no |
| * Links on the [[Main Page]], to avoid stealthy vandalism by retargeting high-traffic redirects. Main Page links that point to an article section should utilise a [[Help:Section#Section linking|section link]].
| | </inputbox></div><div style="clear: both" ></div> |
|
| |
|
| === Self-redirects === | | == Deleting redirects == |
| {{Shortcut|abP:SELFRED}} | | {{see also|Bharatpedia:Redirect/Deletion reasons}} |
| {{See also|Help:Self link}}
| | [[BP:Administrator|Administrators]] can delete redirects in the same way as any other page. Deletion or other potentially controversial treatment of redirects can be proposed by any editor at [[BP:Redirects for discussion|Redirects for discussion]]. Please refer to Wikipedia's [[BP:deletion policy|deletion policy]] for details and instructions. |
|
| |
|
| Avoid linking to titles that redirect straight back to the page on which the link is found. This situation may arise if a redirect is created from a red link on the page, or if the title was once a separate page but was merged.
| | ==Moving pages== |
| | When a page is [[Help:Moving a page|moved]] (renamed), a redirect is automatically created from the old to the new name, and also one for the corresponding talk page (if that was moved as well). [[BP:Administrator|Administrators]] and [[BP:PGM|page movers]] can choose to [[Bharatpedia:Redirect#Suppressing redirects|suppress]] creation of the redirect. |
|
| |
|
| However, linking to a title that redirects to a section or anchor within the article (redirects with {{Tl|R to section}} or {{Tl|R to anchor}}) is acceptable, as it facilitates navigation in particular on long articles that cannot be viewed all at once on an average-sized computer screen. In addition to readability benefits, when such redirects are marked with {{Tl|R with possibilities}}, they have the potential to become independent articles in the future. However, consider using [[Bharatpedia:Manual of Style/Linking#Section links|section links]] instead, when such redirects do not already exist.
| | If the new page name is occupied by a redirect that has only one edit in its history and targeted to the old page name, it is replaced by the page being moved. If the redirect has more than one history entry, or has a different target page, then the move must be made by an administrator or pagemover. |
|
| |
|
| == Template redirects == | | ==Transclusion== |
| <!-- Bharatpedia:AutoWikiBrowser/General fixes links here -->
| | When a page called for [[BP:transclusion|transclusion]] is a redirect page, the redirect target is included instead, with the same parameters, without any redirect message. Hence if [[Template:AFD]] is redirected to [[Template:Afd]], then <code><nowiki>{{AFD|...}}</nowiki></code> will have the same effect as <code><nowiki>{{Afd|...}}</nowiki></code> As usual, [[BP:double redirects|double redirects]] are not followed. |
| A template can be redirected to another template in the same way, e.g., by entering the following markup at the top of a template T2:
| |
| <pre>
| |
| #REDIRECT [[Template:T1]]
| |
| </pre> | |
| This allows the template name T2 to be used instead of the actual template name T1. All the parameters of T1 will be respected by T2.
| |
|
| |
|
| A redirect categorisation ([[Bharatpedia:Categorizing redirects|rcat]]) template such as {{Tl|R from move}} may be added to T2 (on the third line below the <code><nowiki>#REDIRECT</nowiki></code> line) as follows:
| | ==Soft redirects== |
| <pre>
| | As an alternative to the normal "hard" redirects (which take the reader directly to the target page), it is possible to create [[Bharatpedia:Soft redirect|"soft" redirects]], which leave the reader on the redirect page, giving them the option of clicking the link to the target page. This is usually done in the following situations: |
| #REDIRECT [[Template:T1]]
| | * When the target is on another project ([[Bharationary]], [[MetaWiki|Meta]], other language Wikipedias, etc.) or is a [[Help:special page|special page]]. (In these situations a hard redirect would behave as a soft one in any case.) |
| | * For [[Help:Category#Moving and redirecting category pages|redirects between categories]]. (Hard redirects work for category pages, but soft ones are preferred because of the software's inability to recategorize pages from redirected categories.) |
|
| |
|
| {{Redirect category shell|
| | Soft redirects are created using the templates {{tl|soft redirect}} and {{tl|category redirect}}. |
| {{R from move}}
| |
| }}
| |
| </pre>
| |
| While template shortcut/alias redirects are common, they may infrequently cause confusion and make updating template calls more complicated. For example, if calls to T1 are to be changed to some new template NT1, articles must be searched for {{code|<nowiki>{{T1}}</nowiki>}} and a separate search must also be made for each of its aliases (including T2 in this example). Moreover, changes to syntax, corrections, scans and other processes (for example tag dating) must take into account {{em|all}} applicable redirects.
| |
|
| |
|
| == Redirect protection ==
| | ==See also== |
| {{Anchor|protection}}
| |
| {{Shortcut|BP:REDIRECTPROTECTION|BP:RPROTECTION}}
| |
| Sometimes, a redirect to an article pertaining to a very controversial topic will be fully or, more rarely, semi-protected indefinitely. This is done when any of the following criteria are met:
| |
| # There is no reason for it to be edited
| |
| # It is frequently expanded into whole articles
| |
| # It is an obvious vandalism target
| |
| # It redirects and/or refers to a very controversial topic
| |
| | |
| Redirects that are protected include [[Obama]], [[Hitler]], and [[9/11]]. '''[[BP:SRD|Soft redirects]]''' that are protected include obvious vandalism targets like [[dumbass]].
| |
| | |
| Redirects in other namespaces may be protected for technical reasons or are protected under existing guidelines. For example, a template redirect (shorthand) used thousands of times qualifies it as a [[Bharatpedia:High-risk template|highly visible template]], eligible for [[BP:TEMP-P|template protection]].
| |
| | |
| == Category redirects ==
| |
| {{Anchor|CATEGORY|category}}
| |
| {{Shortcut|BP:R#CATEGORY}}
| |
| {{About|technical issues with category redirects|making "soft" category redirects|Bharatpedia:Categories for discussion#Redirecting categories|section=yes}}
| |
| Do {{em|not}} create inter-[[Help:Category|category]] redirects, by adding a line <code>#REDIRECT [[<nowiki />:Category:{{var|target category}}]]</code> to a category page. Articles added to a "redirected" category do not show up in the target category, preventing proper categorization. What's worse, since redirected categories do not become "red links", editors won't be aware even when they add an article to a redirected category.
| |
| | |
| For an attempt to fix this issue in [[MediaWiki]], {{crossref|pw=y|see {{Phab|T5311}}}}.
| |
| | |
| Instead, [[BP:soft redirect|"soft" redirects]] are used. It can be created by placing {{Tlx|Category redirect|target}} in the category page. {{crossref|pw=y|See {{section link|BP:Categories for discussion#Redirecting categories}}.}}
| |
| | |
| ==Module redirects==
| |
| {{anchor|MODULE|module}}
| |
| It is possible to redirect a [[BP:module|module]], however it uses a different syntax. To redirect Module:A to Module:B, add the line <syntaxhighlight lang=lua inline>return require [[Module:B]]</syntaxhighlight> to Module:A. Module [[BP:XNR|XNR]]s however, use the regular syntax, see {{-r|Module:Kivu conflict detailed map}} ([[Special:PermanentLink/1232741140|permalink]]).
| |
| | |
| == Suppressing redirects ==
| |
| {{Anchor|SUPPRESS}}{{Shortcut|BP:R#SUPPRESS}}
| |
| {{further|Bharatpedia:Page mover#Redirect suppression criteria}}
| |
| When a page is moved, a redirect is automatically left behind. Some groups of users (those who possess a <code>suppressredirect</code> [[Special:ListGroupRights|right]]) have the ability to prevent the redirect being created, by unchecking the box labelled "{{MediaWiki:Move-leave-redirect}}." Currently these groups are [[Bharatpedia:Administrators|administrators]], [[Bharatpedia:Bots|bots]], [[Bharatpedia:Page mover|page movers]], and [[meta:Global rollback|global rollbackers]]. In some circumstances, a page should be moved, but a redirect from its current name is inappropriate, such as reverting [[Bharatpedia:Vandalism#Page-move vandalism|page-move vandalism]]. Suppressing the redirect can avoid an extra action (page removal) and save time in these cases.
| |
| | |
| However, in general, the redirect will be a useful entry in the history, and it is best to leave it behind, unless there is a good reason to suppress the redirect, such as vandalism, [[Bharatpedia:Userfication|userfying]] {{em|recently created}} malplaced items or freeing a title to be occupied immediately by another page (e.g., moving <u>term</u> to <u>accurate term</u> and <u>term (disambiguation)</u> to <u>term</u>). Redirects leave a trail to help readers find the old article, in case a new article is created at its previous location, and to prevent [[Bharatpedia:Linkrot|linkrot]]. Therefore, we usually neither suppress nor [[#When should we delete a redirect?|delete]] redirects. As Brion Vibber [[phab:T17842#205934|said]], "Not breaking links helps everyone, {{em|especially us first and foremost}}". He also [[phab:T17842#205878|said]] that the removal of (file) redirects is "extremely user-hostile and makes the project less useful".
| |
| | |
| == Technical notes ==
| |
| A Bharatpedia redirect is not the same as an [[HTTP redirect]]—it does not generate an [[HTTP 302]] (or other 30{{var|x}}) response. Instead, a page with almost the same content as the target of the redirect is generated by the MediaWiki software, differing in that a small-text note appears below the title of the page, identifying the name of the redirect used to get there (and linking to it in such a way that it can be accessed without the redirect, e.g. so it can be changed). When a user clicks on a redirect such as [[housecat]], the page URL initially will be https://en.bharatpedia.org/wiki/Housecat, but the URL shown by the browser will change to https://en.wikipedia.org/wiki/Cat after the page loads.
| |
| | |
| On one hand, this allows links like [[housecat#Anatomy]] to work as expected, but it also requires redirects to anchors to be implemented as a piece of JavaScript that jumps to an appropriate section after the page has loaded. For example, [[second-stage boot loader]], which is rendered as the URL https://en.bharatpedia.org/wiki/Second-stage_boot_loader, is a page defined as a #REDIRECT to [[Booting#SECOND-STAGE]]. "SECOND-STAGE", in this case, is a manually defined anchor (using the markup "<nowiki>=== Second-stage boot loader === {{anchor|SECOND-STAGE}}</nowiki>") that will persist even if the section is renamed. However, whether a redirect points to a manually defined anchor, or an anchor defined implicitly via a section name, the behavior will be the same: the page will automatically be scrolled down to the pointed-to anchor only after the page finishes loading (at which point the URL bar will also change to reflect the redirected-to URL, including "#{{var|anchor}}" portion, rather than the redirected-from URL).
| |
| <!-- https://phabricator.wikimedia.org/T37045 -->
| |
| | |
| == See also == | |
| {{Bharatpedia glossary}} | | {{Bharatpedia glossary}} |
| {{Commons category|MediaWiki redirects}}
| |
| * [[:Category:Redirect templates]] | | * [[:Category:Redirect templates]] |
| * [[:Category:Bharatpedia redirects]] | | * [[BP:HAT|Hatnote]] and [[Bharatpedia:HATTEST#Redirect|examples]] for page hatnotes |
| * [[Bharatpedia:Moving a page]]
| |
| * [[Help:Redirect]]
| |
| * [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]] | | * [[meta:Help:Redirect|Redirect technical help at Meta-Wiki]] |
| * [[Special:ListRedirects]] | | * [[Bharatpedia:Printability]] |
| * [[Special:BrokenRedirects]] | | * [[Bharatpedia:Template messages/Redirect pages]] |
| * [[Special:DoubleRedirects]]
| | * WikiProject Redirect's [[Bharatpedia:WikiProject_Redirect/Style_guide|style guide]] |
| * [[Template:Redirect]]
| | * [[Bharatpedia:Visualizing redirects]], for how to make links to redirects stand out (based on the <code>mw-redirect</code> CSS class) |
| * [[Template:No redirect]]
| | * [[mw:Extension:Scribunto/Lua_reference_manual#Renaming_or_moving_modules]], for how to make a Module redirect |
| * [[Template:Is redirect]]
| | {{Help navigation}} |
| * [[Bharatpedia:Articles for creation/Redirects]], to suggest a missing redirect
| | {{Bharatpedia technical help|collapsed}} |
| * [[Bharatpedia:Hatnote]] {{crossref|pw=y|(see [[#What needs to be done on pages that are targets of redirects?|above]])}}
| | [[Category:Bharatpedia article title help|Redirect]] |
| * [[Bharatpedia:Redirects for discussion]] | |
| * [[Bharatpedia:Soft redirect]]
| |
| * [[Bharatpedia:WikiProject Redirect]]
| |
| ** [[Bharatpedia:WikiProject Redirect/Style guide]]
| |
| * [[Bharatpedia:Database reports/Page count by namespace]] and by non-redirects/redirects | |
| * [[Bharatpedia:Deletion by redirection]] | |
| * [[User:Wugapodes/Capricorn|Capricorn]], a Bharatpedia gadget for categorizing redirects
| |
| * {{anli|Bharatpedia:Redirects are cheap}}
| |
| * {{anli|Bharatpedia:Redirects are costly}}
| |
| | |
| {{R template index}}
| |
| | |
| [[Category:Bharatpedia editing guidelines]] | |
| [[Category:Bharatpedia redirecting| ]] | | [[Category:Bharatpedia redirecting| ]] |
| | | [[Category:Bharatpedia features|Redirect]] |
| == How to make a redirect ==
| | [[Category:Bharatpedia page help|Redirect]] |
| <!-- <div class="notice" style="background:#def; border:1px solid #468; padding:0.5em; margin:0.5em auto; background-color:#EBFFEB;"><center>Note: For a trial period from September 14, 2017 to at least March 14, 2018, users will not be able to create pages, including redirects, directly in the [[Bharatpedia:What is an article?|article mainspace]] until their accounts are [[Bharatpedia:User access levels#Autoconfirmed and confirmed users|autoconfirmed]] – an editing threshold passed when a user's account is at least 4 days (96 hours) old, and has made more than ten edits. Non-autoconfirmed users can request creation of redirects below.</center></div> -->
| |
| | |
| === Editing the source directly ===
| |
| To create a basic redirect using the source editor, type <code><nowiki>#REDIRECT [[target page name here]]</nowiki></code> as the only text on the page. The capitalization of the word <code>REDIRECT</code> doesn't matter. For instance, if you were redirecting from "{{Noredirect|Ind}}" to "India", this would be the entire body of {{Noredirect|Ind|the "India" page}}:
| |
| | |
| <code><nowiki>#REDIRECT [[United Kingdom]]</nowiki></code>
| |
| | |
| === Using VisualEditor ===
| |
| To create a redirect using the VisualEditor:
| |
| # Open the "page options" menu (icon with three parallel horizontal bars) at the top right of the editor
| |
| # Select "Page settings"
| |
| # Check the box marked "Redirect this page to"
| |
| # Enter the name of the target page in the text box below the checkbox
| |
| # Click on the blue "Apply changes" button
| |
| # Save the page. You may enter an edit summary, or an automatic summary will be generated.
| |
| | |
| === When moving a page ===
| |
| Redirects can also be automatically created when you move (rename) an existing page.
| |