Help:कड़ियाँ

This page is a translated version of the page Help:Links and the translation is 95% complete.
Outdated translations are marked like this.
PD ध्यान दें: जब आप इस पृष्ठ को सम्पादित करते हैं, आप अपने योगदान को CC0 के अंतर्गत प्रकाशित करते हैं। अधिक जानकारी के लिए सार्वजनिक डोमेन के सहायता पृष्ठ की मदद लें। PD

मीडियाविकि पर कुल पाँच तरह की कड़ियाँ हैं:

  1. एक ही विकि पर दूसरे पृष्ठों की आंतरिक कड़ियाँ (जिन्हें अक्सर "विकिकड़ियाँ" कहा जाता है)
  2. दूसरे वेबसाइटों के पृष्ठों की बाहरी कड़ियाँ
  3. एक ही विकि पर आंतरिक पृष्ठों की बाहरी कड़ियाँ
  4. पहले से पंजीकृत विशेष उपसर्गों की मदद से दूसरे वेबसाइटों की इंटरविकि लिंक्स
  5. वर्तमान विकि के दूसरे भाषा संस्करण की अंतरभाषा कड़ियाँ

कृपया ध्यान रखें कि इसमें श्रेणियों की कड़ियाँ और चित्रों की कड़ियाँ शामिल नहीं हैं, जिनसे क्रमशः पृष्ठों को श्रेणियों में डाला जाता है और पृष्ठों पर चित्र या दूसरे मीडिया फाइल जोड़े जाते हैं।

आंतरिक कड़ियाँ

एक ही विकि पर पृष्ठ का एक आंतरिक कड़ी (एक "विकिलिंक") बनाने के लिए दो वर्गाकार ब्रैकेट्स के विकि मार्कअप का उपयोग करें, [[इस तरह]] जब आप अपने बदलावों को सहेजेंगे या उसका पूर्वावलोकन देखेंगे, आपको एक कड़ी दिखेगी जो लक्ष्य पृष्ठ पर लिंक करेगी। अगर पृष्ठ मौजूद है, कड़ी नीली होगी (जैसे इस अनुच्छेद के पहले वाक्य में "बनाना" शब्द); अगर पृष्ठ मौजूद नहीं है, कड़ी लाल होगी (तो [[इस तरह]] के लिंक को इस तरह से रेंडर किया जाता है)। ध्यान रखें कि डिफॉल्ट से विकि के रंग स्कीम को बदलने पर ये रंग भी अलग हो सकते हैं। Note that the colors could be different if the color scheme of the wiki has been changed from the default. किसी अनुपस्थित पृष्ठ के एक "लाल कड़ी" (चाहे वह लाल हो या न हो) पर क्लिक करने पर सदस्य पृष्ठ को बना पाएँगे।

टेक्स्ट के किसी स्ट्रिंग को मार्कअप करने के लिए (ज़रूरी नहीं कि उसे किसी पृष्ठ का नाम होना होगा), एक "वर्टिकल बार" या "पाइप" अक्षर का उपयोग करें, इस तरह: [[Help:Categories|श्रेणियों की कड़ियाँ]] का अंजाम होता है श्रेणियों की कड़ियाँ (ध्यान रखें कि यह देवनागरी पूर्णविराम से अलग है)

अगर विकि को इस तरह से कॉन्फिगर किया गया हो, कड़ी के लक्ष्य का पहला अक्षर केस-संवेदनशील नहीं है, यानी कड़ी को बड़े अक्षरों में लिखने में आवश्यकता नहीं है (यानी How to contribute और how to contribute समान हैं)। हालाँकि, पहले अक्षर के बाद के हर अक्षर को लक्ष्य पृष्ठ से मेल खाना होगा (यानी How to contribute और How To Contribute समान नहीं हैं)। पृष्ठ के नाम में खाली स्थानों को अंडरस्कोर्स से बदला जा सकता है (यानी How to contribute और How_to_contribute फिर समान हैं), पर अंडरस्कोर का इस्तेमाल करने पर ये पृष्ठ के टेक्स्ट पर भी दिख जाएँगे (एक "पाइप" का इस्तेमाल करके इसे सुलझाया जा सकता है)।

अगर आपके लिंक किए हुए पृष्ठ का नाम वही है जिसे आप सम्पादित कर रहे हैं, अंजाम कोई कड़ी नहीं, बल्कि मोटे अक्षरों में टेक्स्ट होगा (उदाहरणस्वरूप, इस पृष्ठ पर मार्कअप [[Help:Links/hi]] का अंजाम होता है Help:Links/hi)। अगर आप वर्तमान पृष्ठ की एक विकिकड़ी बनाना चाहते हैं, आप शायद पृष्ठ में ही किसी सेक्शन या एंकर पर लिंक करना चाहते हैं; नीचे के उदाहरण देखें।

मीडियाविकि आंतरिक विकिलिंक्स को ट्रैक करने के लिए pagelinks का उपयोग करती है।

नाम/विवरण सिंटैक्स परिणाम
आंतरिक कड़ी
[[Main Page]]

[[Help:Contents]]

[[Extension:DynamicPageList (Wikimedia)]]

Main Page

Help:Contents

Extension:DynamicPageList (Wikimedia)

पाइप की गई कड़ी
[[Help:Editing pages|editing help]]

लक्ष्य पृष्ठ पर किसी सेक्शन/एंकर की कड़ी

[[Help:Editing pages#Preview|previewing]]

वर्तमान पृष्ठ पर एंकर की पाइप की गई कड़ी

[[#See also|different text]]

meta:Help:Piped link भी देखें।

editing help

previewing

different text

Pipe trick
[[Manual:Extensions|]]

[[User:John Doe|]]

[[Extension:DynamicPageList (Wikimedia)|]]

[[Extension:DynamicPageList (third-party)|]]

पाइप ट्रिक से बदली गई कड़ियों के परिणाम अलग-अलग लक्ष्य हो सकते हैं, जैसे DynamicPageList के उदाहरणों में देखा गया है।

Extensions

John Doe

DynamicPageList

DynamicPageList

मध्य-शब्द कड़ियाँ
[[Help]]s

[[Help]]ing

[[Help]]ers

[[Help]]almostanylettersyoulikehere

[[Help]]BUTnotalways

यह हर भाषा के लिए अनुवादित किए गए "लिंकट्रेल नियमों" का पालन करता है।

Helps

Helping

Helpers

Helpalmostanylettersyoulikehere

HelpBUTnotalways

मध्य-अक्षर कड़ियों का निवारण करना
[[Help]]<nowiki />ful advice

[[wikipedia:GNU General Public License|GPL]]<nowiki />v3

Helpful advice

GPLv3

वर्तमान पृष्ठ पर एंकर की कड़ी
[[#See also]]

एंकर सेक्शन के शीर्षकों और पृष्ठ के ऊपर ([[#top]]) तक अपने आप दिए जाते हैं।

#See also
आने वाली कड़ियों के लिए एंकर सेट करना
<div id="Unique anchor name 1">optional text</div>

<span id="Unique anchor name 2">optional text</span>

क्रमशः ब्लॉक और इनलाइन में रेंडर किया जाता है। ऐसा करने पर वर्तमान पृष्ठ पर [[#एंकर संख्या 1]] या दूसरे पृष्ठ पर [[Help:Links/hi#एंकर संख्या 1]] तक कड़ी बनाई जा सकती है। "वैकल्पिक टेक्स्ट" को एक अदृश्य एंकर बना दें।

सेक्शन के शीर्षक में एक एंकर सेट करना

==<span id="Alternate Section Title"></span>Section heading==

स्थान पर गौर करें। इसे एक "span" टैग होना होगा, "div" नहीं। (ऐसे एंकर्स की मदद से सेक्शनों को आने वाली कड़ियों को तोड़े में दूसरे नाम दिए जा सकते हैं।)

वैकल्पिक टेक्स्ट

वैकल्पिक टेक्स्ट

Section heading
दूसरे पृष्ठ पर एंकर की कड़ी
[[Help:Images#Supported media types for images]]
Help:Images#Supported media types for images
वर्तमान पृष्ठ के वार्ता पृष्ठ की कड़ी
[[{{TALKPAGENAME}}|Discussion]]

Help:Magic words#Page names भी देखें

Discussion
उपपृष्ठ की कड़ी
[[/example]]

[[Help:Links/example|/example]] का शॉर्टकट। Help:Subpages भी देखें।

/example
बिना स्लैश के उपपृष्ठ की कड़ी।
[[/example/]]

[[Help:Links/example|example]] का शॉर्टकट।

example
वर्तमान पृष्ठ के जड़ पृष्ठ के उपपृष्ठ की कड़ी। सिर्फ उपपृष्ठों पर इसका उपयोग किया जा सकता है।
[[../example2]]

[[Help:Links/example2|example2]] के लिए शॉर्टकट अगर आप कड़ी को [[Help:Links/example|example]] पृष्ठ पर जोड़ते हैं।

example2
श्रेणी पृष्ठ की दृश्य कड़ी
[[:Category:Help]]

बिना कोलन के कड़ी दृश्य नहीं होती और इसकी जगह पृष्ठ को उस श्रेणी में डाल दिया जाता; यह एक अक्सर की जाने वाली गलती है। Help:श्रेणियाँ भी देखें।

Category:Help
चित्र या मीडिया फाइल की दृश्य कड़ी।

File:Example.jpg

file label

Media:Example.jpg

file label

हर पाठक के लिए विशेष पृष्ठ पर कड़ी जोड़ें (सदस्य पृष्ठ, आदि)।
[[Special:MyPage]]

[[Special:MyTalk]]

[[Special:Preferences]]

Special:MyPage

Special:MyTalk

Special:Preferences

किसी विशिष्ट अवतरण की आंतरिक कड़ी
[[Special:PermanentLink/2393992]]

अवतरणों की संख्या पृष्ठ के सम्पादन इतिहास में पाई जा सकती है। (अवतरणों को बाहरी कड़ियों के रूप में लिखना काफी आम है क्योंकि पूरे URL को काट-और-छापकर बाहरी कड़ी बनाना ज़्यादा आसान है।)

Special:PermanentLink/2393992
"अंतर" का आंतरिक कड़ी
[[Special:Diff/2393992]]

[[Special:Diff/2390639/2393992]]

डिफॉल्ट (ऊपर का पहला उदाहरण) है पिछले अवतरण से बदलाव दिखाना। पिछले आइटम में टिप्पणियाँ भी देखें।

Special:Diff/2393992

Special:Diff/2390639/2393992

अनुप्रेषण
#REDIRECT [[Main Page]]

पृष्ठ पर पहला और एकमात्र टेक्स्ट होना होगा। Help:Redirects देखें।

  Main Page

बाहरी कड़ियाँ

एक बाहरी कड़ी बनाने के लिए, जो कि आम तौर पर किसी दूसरे वेबसाइट का होता है, URL को एक रिक्त अक्षर और कड़ी के टेक्स्ट के साथ एक वर्गाकार ब्रैकेट के अंदर जोड़ें। जब आप पृष्ठ को सहेजेंगे या फिर उसका पूर्वावलोकन देखेंगे, आपको दिखेगा कि इसे एक आंतरिक विकिलिंक से थोड़ा अलग रेंडर किया जाता है। यह एक दूसरे रंग में हो सकता है और/या इसके बाद एक तीर का निशान हो सकता है जो संकेत देता है कि यह किसी दूसरे साइट की कड़ी है।

विवरण आप लिखेंगे आपको मिलेगा
विशिष्ट लिंक पाठ के साथ बाहरी कड़ी
[https://mediawiki.org MediaWiki]
MediaWiki
संख्य बाहरी कड़ी
[https://mediawiki.org]

अगर आप कड़ी के पाठ को हटा दें तो यह होता है। इसी तरह की कई कड़ियों को क्रम के अनुसार संख्याएँ दी जाती हैं। Multiple links of this type on the same page are numbered sequentially.

[१]
खाली बाहरी कड़ियाँ
https://mediawiki.org

"http://" और "https://" से शुरू होने वाले URL-ओं को अपने आप लिंक कर दिया जाता है, बिना ब्रैकेट्स के भी।

https://mediawiki.org
अपने आप जोड़े गए URL-ओं से दूर रहना
<nowiki>https://mediawiki.org</nowiki>
https://mediawiki.org
प्रोटोकोल-संबंधित बाहरी कड़ी
[//en.wikipedia.org Wikipedia]

[//en.wikipedia.org //en.wikipedia.org]

वर्तमान पृष्ठ के प्रोटोकोल पर निर्भर होकर कड़ी HTTP या HTTPS होगी (जो कि सदस्यानुसार भी बदल सकता है)। यह सिर्फ वर्गाकार ब्रैकेट्स [ ] के अंदर समर्थित है। सिर्फ "//en.wikipedia.org" का इस्तेमाल करने से यह कड़ी नहीं बनेगी।

Wikipedia

//en.wikipedia.org

वर्तमान सर्वर की बाहरी कड़ी
https://{{SERVERNAME}}/pagename
https://www.mediawiki.org/pagename
पृष्ठ के नाम को पास करते हुए दूसरे होस्ट की बाहरी कड़ी
https://google.com/search?q={{PAGENAMEE}}

ये भी देखें: URL से एनकोड किए गए पृष्ठ के नाम, Manual:PAGENAMEE encoding

https://google.com/search?q=Links
Mailto कड़ी
[mailto:info@example.org email me]
email me
विषय और संदेश के साथ Mailto
[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
info
अनुकूलित URI
[skype:echo123 call me]

आपके जोड़े किसी भी URI को सबसे पहले $wgUrlProtocols में मौजूद होना होगा। (यह उदाहरण MediaWiki.org पर सक्षम नहीं है)

[skype:echo123 call me]

Using email links

Email links use mailto: before the address. They're written like this: [mailto:anyone@example.org address name] (resulting in address name). If there's no name, the address is automatically numbered, like this: [mailto:anyone@example.org] becomes [२]. Addresses without square brackets won't be linked, e.g., anyone@example.com. You can also add a CC using [mailto:anyone@example.org?cc=anyone2@example.org address name] (resulting in address name). To add a subject, use [mailto:me@me.com?subject=Me] "

आंतरिक पृष्ठों की बाहरी कड़ियाँ

URL क्वेरी पैरामीटरों की मदद से एक ही विकि पर दूसरे पृष्ठ की कड़ी जोड़ने के लिए आपको बाहरी कड़ी के सिंटैक्स का उपयोग करना होगा।

विवरण आप लिखेंगे आपको मिलेगा
वर्तमान पृष्ठ के सम्पादन पृष्ठ की कड़ी
[https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]

[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]

Help:Magic_words#URL_data और ऊपर की बाहरी कड़ियाँ देखें।

Edit this page

Edit this page

वर्तमान पृष्ठ के सम्पादन पृष्ठ की बाहरी कड़ी जिसे आंतरिक कड़ी के रूप में दिखाने के लिए स्टाइल किया गया है।
<span class="plainlinks">[https://www.mediawiki.org/w/index.php?title=Help:Links&action=edit Edit this page]</span>

अगर आप किसी बाहरी कड़ी को आंतरिक कड़ी के रूप में दिखाना चाहते हैं, आप इसके बाद दिखने वाले आईकॉन को छिपाने के लिए plainlinks क्लास का उपयोग कर सकते हैं।

Edit this page

The arrow icon

Some skins add an arrow icon after each external link by default. However, this can be avoided by using class="plainlinks". For instance:

  • [http://a a] gives a
  • <span class="plainlinks">[http://a a]</span> gives a

Using Linksearch

Special:Linksearch is a built-in tool that helps find pages linked to a specific URL. By using the externallinks table, it generates a comprehensive list of page names where the link originates, along with the complete target link for each source page. You can search in all namespaces or just one. It supports wildcard (*) use, so you can search by top-level domain (e.g. [३]), second-level domain (e.g. [४]), etc. or refine your search by specifying parts of the URL e.g. [५].

Notes:

  • Avoid including "http://".
  • The program might not return any results if there is a colon in the URL.
  • MediaWiki page names in URLs should have underscores instead of spaces. The Linksearch function also requires underscores in URLs.
  • Linksearch is sensitive to capitalization, multiple underscores, and the use of "index.php". It may not find alternative URLs even if they lead to the same target. Therefore, when creating an external link, it's best to use the canonical form of the URL. If the address bar displays a modified URL after following a link, update the URL in the link accordingly for optimal use of Linksearch.
  • The list is sorted by URL, using standard page name order. Note that an underscore, unlike a blank space, is alphabetically positioned between "Z" and "a".

Using backlinks

Normally, internal links within a project are easy to spot and useful for finding related pages. But when there's a mix of internal and external links, it can be tricky to track backlinks, it necessitates the use of both "Help:What links here" and "Linksearch". However, for links to specific sections or anchors, it's possible to include both an internal link and, with CSS styling using "display=none" an external link to provide backlink.

External links are better than interwiki links. With Linksearch, you can even find backlinks to specific sections or anchors. So, combining both internal and external links while hiding the external ones "<span style="display:none">http://...</span>", gives us the best of both worlds.

सीमाएँ

  1. बाहरी कड़ियों में शब्द से ख़त्म होने वाली कड़ियों को नहीं गिना जाता।
  2. बाहरी कड़ियों को Special:WhatLinksHere में नहीं गिना जाता (कड़ियाँ)।

इंटरविकि कड़ियाँ

इंटरविकि कड़ियाँ आंरिक-रूपी कड़ियाँ हैं जो दूसरे वेबसाइटों तक जाती हैं (नाम को बावजूद, ज़रूरी नहीं कि वे विकियाँ ही हों)। उदाहरणस्वरूप, आप [[wikipedia:Sunflower]] या, इस विकि पर, छोटे [[w:Sunflower]] को लिखकर लेख https://en.wikipedia.org/wiki/Sunflower की एक कड़ी बना सकते हैं। दोनों का अंजाम wikipedia:Sunflower होगा। यह काम करता है क्योंकि मीडियाविकि डिफॉल्ट से wikipedia: को एक "इंटरविकि उपसर्ग" के रूप में कॉन्फिगर करता है जो [[ ]] के अंदर डाले जाने पर https://en.wikipedia.org/wiki/ में बदल जाता है। (अगर आपके विकि के प्रबंधक ने सेटिंग बदला है तो यह काम न भी कर सकता है।) आंतरिक कड़ियों के विपरीत, इंटरविकि कड़ियाँ पृष्ठ की उपस्थिति को नहीं जाँचते, यानी अगर पृष्ठ लक्ष्य विकि पर मौजूद नहीं भी है, तब भी इंटरविकि कड़ी नीली ही होगी।

आंतरिक पृष्ठों की कड़ियों की तरह, आप पाइप और एक वैकल्पिक कड़ी लेबल से कड़ियाँ बना सकते हैं, उदाहरणस्वरूप, [[wikipedia:Sunflower|बड़ा पीला फूल]] कड़ी बड़ा पीला फूल है और [[wikipedia:Sunflower|]] कड़ी सूरजमुखी है।

आसान भाषा में, इंटरविकि कड़ियाँ साधारणतः उपयुक्त लंबी बाहरी कड़ियों के लिए संक्षेपाक्षर हैं। [https://en.wikipedia.org/wiki/Sunflower बड़ा पीला फूल] की मदद से एक काफी मिलती-जुलती कड़ी बनाई जा सकती है।

Manual:Interwiki और m:Help:Interwiki linking पर अधिक जानकारी है। आपके विकि पर शायद इसके समर्थित सभी इंटरविकि उपसर्गों के साथ एक Special:Interwiki पृष्ठ है; यह डिफॉल्ट इंटरविकि सूची है। आप अपने साइट पर interwiki टेबल को सम्पादित कर सकते हैं।

अंतरभाषा कड़ियाँ

अगर आपके विकि के दूसरी भाषाओं में संस्करण हैं, आपको साइडबार पर टूलबॉक्स के नीचे "दूसरी भाषाओं में" वाले अनुभाग में अंतरभाषा कड़ियाँ मिलेंगे।

विकि मार्कअप में अंतरभाषा कड़ियाँ काफी-कुछ इंटरविकि कड़ियों जैसे दिखते हैं, पर उनका स्वभाव श्रेणी कड़ियों की तरह है क्योंकि इसे एक खास तरीके से रेंडर किया जाता है। जहाँ श्रेणी कड़ियाँ (आम तौर पर) पृष्ठ के नीचे एक खास सूची में आते हैं, अंतरभाषा कड़ियाँ पृष्ठ के साइडबार पर एक खास सूची में (या विकि के कॉन्फिगरेशन और उपयुक्त त्वचा के अनुसार कहीं और) आते हैं।

अंतरभाषा कड़ियों का लक्ष्य है एक ही विषय पर कई भाषाओं में पृष्ठों को जोड़ना। अंतरभाषा कड़ी बनाने के लिए पृष्ठ पर कहीं भी (ज़्यादातर नीचे की तरफ) [[भाषा उपसर्ग:पृष्ठ का नाम]] लिखें; भाषा उपसर्ग आपके विकि के दूसरे संस्करण के लिए चुना गया उपसर्ग है (आम तौर पर ISO 639-1 भाषा कोड)। अंतरभाषा कड़ी एक-तरफ़ा है, यह वर्तमान भाषा पर दूसरे भाषा के विकि से कड़ी को नहीं जोड़ता। इसलिए वहाँ पर एक समान कड़ी स्थापित करना आवश्यक है। यह विकिपीडिया के संस्करणों के "अन्य भाषाओं में" अनुभाग में "कड़ी सम्पादित करें" जैसे काम नहीं करता। पर इसका इस्तेमाल सभी नामस्थानों पर किया जा सकता है, दूसरे भाषाओं में प्रोफाइल पर लिंक करने के लिए 'सदस्य:' पृष्ठों पर भी।

अगर आप अंतरभाषा कड़ी को साइडबार की जगह पृष्ठ के कंटेंट में किसी जगह पर जोड़ना चाहते हैं, भाषा उपसर्ग से पहले एक कोलन जोड़ दें:

[[:en:Sunflower]]en:Sunflower

अगर एक कड़ी इंटरविकि और अंतरभाषा दोनों है, क्रम है wikipedia:en:Sunflower

अधिक जानकारी के लिए m:Help:Interwiki linking#Interlanguage links देखें।

Anchors

Linking to an anchor

Links in the format [[#anchor_name]] will direct to the first matching anchor on the page, typically corresponding to the first identical section heading.

You can add an [[#anchor_name]] to a link, directing it to the first matching section heading (or anchor) on the named page:

[[Help:Editing#Advanced editing]]

https://www.mediawiki.org/wiki/Help:Editing#Advanced_editing

Using an automatic anchor

Section headings serve as anchors, using the heading text as the anchor name. If there are multiple sections with identical headings, each subsequent occurrence is appended with "_2", "_3", etc.

The anchor #toc links to the page's table of contents, except when there's a section titled "toc."

A manual anchor

Manually-set anchors are beneficial for linking to "unlinkable" elements such as tables (titles or cells) or sections of plain text. For instance, in the External links to internal pages section above, although the column text "Description" resembles a (minor) heading, it is not.

There are several methods to set an anchor at any position:

  • The "anchor" template, if it exists on your wiki, specified as {{Anchor }}, offers a standardized method to create anchor points. Place the template where you want, using the syntax {{Anchor|Name_of_Anchor}}. For instance, {{Anchor|Description}} is placed in the "Description" column of the table below the "External links to internal pages" section. Clicking on #Description links to that anchor point created on the table. The anchor is only visible via the source code.
  • Use the generic anchor tag <span id="anchor_name">some text</span> with optional text for visible anchors. For hidden anchors, omit the text. To point to the anchor use [[#anchor_name]].
  • Avoid using manual HTML headings like <h2>Editing Instructions</h2>. This text serves as an anchor_name.
  • In certain instances, adding an ID attribute similar to HTML within a Wiki-element is necessary. Take, for instance, the table mentioned earlier, titled External links to internal pages:
border="1" class="wikitable" id="You type"
  • A top of a page can be accessed using the reserved term [[#top]].

See also Help:Section#Linking sections using an arbitrary id.

Using Linksearch anchors

As mentioned above, if external link style is used, e.g. [६], we can use Special:Linksearch: [७].

When using Linksearch, it's helpful to add leading zeros to numerical anchor names to prevent unintended matches. For example, instead of searching for "1", use "01" to avoid including "10". This practice is seen in w:Portal:Current events/DateHeader2. Similarly, if there are anchors like "a" and "ab", using "_a" can distinguish them in search results.

Anchorencode

The #anchorencode parser function encodes input to use as an anchor. For example, to external link to #Using linksearch anchors above, you would use https://www.mediawiki.org/wiki/Help:Links#{{anchorencode:Using Linksearch anchors}}, which resolves to https://www.mediawiki.org/wiki/Help:Links#Using_Linksearch_anchors

Subpage feature

MediaWiki has a subpage feature that may or may not be active depending on the project and namespace. If it's activated, the following rules apply; otherwise, "A/b" is simply a standalone page with that name.

A page's tree structure is formed using forward slashes in page names: A/b is considered a subpage of A, making A the parent of A/b; additionally, A/b/c is a subpage of A/b; meanwhile, A/a, A/b, and A/c are categorized as sibling pages.

The subpage body automatically displays links to all parent pages without needing specific wikitext. These links appear even if the parent page doesn't exist. However, if any ancestor page in the sequence is missing, the chain of links will stop before that point. Additionally, the capitalization of letters after the forward slash in the page name matters, meaning "/subpage" and "/Subpage" refer to different pages.

The functions, What links here and [Help:Related changes|]] do not consider these automatically generated links."

When the subpage feature is enabled within a namespace, any forward slash in a page's name automatically creates a subpage structure, regardless of whether it was intended or not.

You can find a list of subpages using Special:PrefixIndex.

Using variables

When utilizing the subpage feature within namespace A on page A:B/c/d, {{BASEPAGENAME}} shows B/c while {{SUBPAGENAME}} shows d.

Using relative links

Within a subpage hierarchy, you can utilize the following relative links:

  • [[../]] links to the parent page of the current subpage. For example, on page A/b, it takes you to page A, and on page A/b/c, it directs you to page A/b.
  • [[../../]] links to the grandparent page of the current subpage. For example, on page A/b/c, it points to page A.
  • [[../s]] links to a sibling page of the current subpage. For example, on page A/b, it leads to page A/s.
  • [[../../s]] links to an "uncle" page of the current subpage. For example, on page A/b/c, it points to page A/s.
  • [[/s]] links direct to a subpage. On page A, it functions similarly to [[A/s]]. However, linking from a namespace with an enabled subpage feature to a main namespace page starting with "/" requires a workaround: adding a colon before the page name.

Relative links remain functional even when all pages within a hierarchy are renamed to reflect a change in the root's name, even if the root becomes a child of a new parent. Users with the appropriate permissions, such as administrators and those with the move-subpages right, have the option to move both the main page and its subpages during a renaming process.

Learn more about subpages at w:Wikipedia:Subpages. See examples at Help:Link/example and Help:Link/example/example2

Subpage activation

This feature is only enabled in namespaces specified in the $wgNamespacesWithSubpages configuration setting, either its default namespaces, or any additional namespaces set in LocalSettings.php

Character conversion

The guidelines outlined in m:Help:Page name state that in wiki and interwiki links, conversions are made to non-literal characters automatically. For example,"[[Help:Page%20name]]" will display as "m:Help:Page name". Conversely, external links operate oppositely; literal characters are transformed into non-literal characters. For example, browsers typically convert ".../wiki/!" to ".../wiki/%21".

Applying a code like %70 to a redirect deactivates it, even though the link remains accessible from the redirect page. To ensure a successful redirect, the redirect page displays the canonical form of the target, unlike the preview page which shows the link in its regular format.

Miscellaneous

Some additional effects of links

  • Related changes
  • Backlinks, Linksearch
  • When you include a space after the pipe symbol ([[main Page| ]]), the outcome can vary depending on the browser. In some cases, it might only display a space (" "), without creating a clickable link. However, it's still recognized as a link by the "what links here" feature.

"Hover box" on links

In certain web browsers, when you place the cursor over a link, a tooltip may appear, displaying the content of the link's HTML title attribute. MediaWiki assigns different values to this attribute depending on the type of link: for internal wikilinks, it displays the page name and (page does not exist), if the page does not exist; for interwiki links, it displays the page name with a prefix; and for external links, it displays the URL.

The browser might also display similar information in its status bar, possibly showing which section it belongs to.

Using a piped link, even if it isn't clicked, can help clarify acronyms (like displaying "neutral point of view" as NPOV) or adding annotations. Hover boxes can also be created without links, you can customize the hover box content using markup like [[Link title|<span title="hoverbox">Display text</span>]].

You cannot include a title attribute directly within the href element for external links. Nevertheless, you can achieve a similar outcome by using a span element instead, like this: [http://www.example.com <span title="hover text on external link">www.example.com web site</span>] :
www.example.com web site

Retrieving links from a page

The MediaWiki API allows users to retrieve all links from a page. For example, you can utilize the API query called API:Links to achieve this.

Linking to a page from an image

You can utilize images to direct users to other pages. For further details, refer to the guidance on utilizing an image to link to a specific page in the help section.

सीमाएँ

एक आंतरिक कड़ी के अक्षरों की सीमा पृष्ठ के नाम की सीमा जितनी है।

यह भी देखें