Help:URL: Difference between revisions

8 bytes added ,  29 September 2024
no edit summary
(Created page with "{{About|various URLs of Bharatpedia and other Bharatmedia servers|how to markup links|Help:Link}} {{redirect|BP:URL|the user rights log|Special:Log/rights}} {{Bharatpedia how to|H:URL|BP:URL}} Like all pages on the World Wide Web, the pages delivered by Bharatmedia's servers have '''URLs''' to identify them. These are the addresses that appear in your browser's address bar when you view a page. Bharatpedia editors also have the ability to create hyperlink...")
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 44: Line 44:
|}
|}


==URLs of Wikipedia pages==
==URLs of Bharatpedia pages==
{{anchor|BP}}{{shortcut|BP:URLs}}
{{anchor|BP}}{{shortcut|BP:URLs}}
English Bharatpedia's URLs begin https://en.bharatpedia.org/. That address on its own is redirected to the [[Main Page]].
English Bharatpedia's URLs begin https://en.bharatpedia.org/. That address on its own is redirected to the [[Main Page]].


* The main form of a URL to a Wikipedia page:
* The main form of a URL to a Bharatpedia page:
*:https://en.bharatpedia.org/wiki/Page_name (used in [[Help:Link#Wikilinks|wikilinks]], recommended when a URL has to be given)
*:https://en.bharatpedia.org/wiki/Page_name (used in [[Help:Link#Wikilinks|wikilinks]], recommended when a URL has to be given)
* An alternative form:
* An alternative form:
Line 57: Line 57:


Extended URLs are used:
Extended URLs are used:
* To go to a [[bP:Redirect|redirect]] page without following the redirect: https://en.bharatpedia.org/w/index.php?title=Railway_train&redirect=no
* To go to a [[BP:Redirect|redirect]] page without following the redirect: https://en.bharatpedia.org/w/index.php?title=Railway_train&redirect=no
* To go to the edit page (or view the source of a protected page): https://en.bharatpedia.org/w/index.php?title=Train&action=edit. Other parameters can be added, such as ''section=5'' or ''section=new'' to edit or add a page section. There are also parameters for preloading text into the edit box of a new page, as used by the inputbox extension (see [[mw:Extension:InputBox]]).
* To go to the edit page (or view the source of a protected page): https://en.bharatpedia.org/w/index.php?title=Train&action=edit. Other parameters can be added, such as ''section=5'' or ''section=new'' to edit or add a page section. There are also parameters for preloading text into the edit box of a new page, as used by the inputbox extension (see [[mw:Extension:InputBox]]).
* To access the [[Help:Page history|edit history]] of a page: https://en.bharatpedia.org/w/index.php?title=Train&action=history (or further parameters can be added, as in https://en.bharatpedia.org/w/index.php?title=Train&limit=5&offset=90&action=history, which displays edits 91–95).
* To access the [[Help:Page history|edit history]] of a page: https://en.bharatpedia.org/w/index.php?title=Train&action=history (or further parameters can be added, as in https://en.bharatpedia.org/w/index.php?title=Train&limit=5&offset=90&action=history, which displays edits 91–95).
Line 76: Line 76:
* To display a page formatted for mobile devices, add .m after en https://en.m.bharatpedia.org/wiki/Train
* To display a page formatted for mobile devices, add .m after en https://en.m.bharatpedia.org/wiki/Train


If constructing URLs for Wikipedia pages, remember to convert spaces into underscores, and to percent-code special characters where necessary, as described in the previous section. (For how to do this in template code, see [[#Templates and programming|Templates and programming]] below.)
If constructing URLs for Bharatpedia pages, remember to convert spaces into underscores, and to percent-code special characters where necessary, as described in the previous section. (For how to do this in template code, see [[#Templates and programming|Templates and programming]] below.)


Various kinds of error message may appear if an invalid URL, or one to which you do not have access, is submitted. In other cases the URL may redirect to a valid one (for example, page titles are converted to their [[BP:Canonical|canonical form]] as they are when they appear in wikilinks).
Various kinds of error message may appear if an invalid URL, or one to which you do not have access, is submitted. In other cases the URL may redirect to a valid one (for example, page titles are converted to their [[BP:Canonical|canonical form]] as they are when they appear in wikilinks).


=== Shorter URL ===
=== Shorter URL ===
[[Bharatpedia:URLShortener]] gives a way to make short URLs to Wikipedia pages.
[[Bharatpedia:URLShortener]] gives a way to make short URLs to Bharatpedia pages.


An unofficial redirect site mentioned at [[User:Tl-lomas/enwp.org]] also offers shorter URLs.
An unofficial redirect site mentioned at [[User:Tl-lomas/enwp.org]] also offers shorter URLs.