도움말:링크

This page is a translated version of the page Help:Links and the translation is 66% complete.
Outdated translations are marked like this.
PD 주의사항: 이 문서를 편집하면 CC0에 따라 당신의 기여한 것을 배포하는 데 동의하는 것으로 간주됩니다. 자세한 내용은 퍼블릭 도메인 도움말 문서를 확인 하세요. PD

미디어위키에는 5가지의 링크가 있습니다:

  1. 동일한 위키내에서 다른 페이지로 내부 링크 (보통 '위키링크' 라고 부릅니다)
  2. External links다른 웹 사이트의 페이지로
  3. External links to internal pages똑같은 위키에
  4. Interwiki links 미리 등록된 특수 접두사를 사용하여 다른 웹 사이트에 배포합니다.
  5. Interlanguage links현재 위키의 다른 언어 버전으로 등록된 다른 W위키에

이 목록에는 각각 페이지를 카테고리에 배치하고 이미지 또는 기타 미디어 파일을 표시하는 데 사용되는 category linksfile links가 포함되어 있지 않습니다.

내부 링크

같은 위키의 페이지에 대한 내부 링크("위키링크")를 create하려면 이중 대괄호 위키 마크업인 [[like this]]를 사용합니다. 변경 사항을 미리 보거나 저장하면 대상 페이지로 이동할 수 있는 링크가 표시됩니다. 페이지가 존재하면 링크가 파란색으로 표시되고(이 단락의 첫 문장에 있는 "create"라는 단어처럼), 페이지가 존재하지 않으면 링크가 빨간색으로 표시됩니다(따라서 [[이와 같이]] 링크는 실제로 이와 같이로 렌더링됩니다). 위키의 색 구성표가 기본값에서 변경된 경우 색이 달라질 수 있습니다. Note that the colors could be different if the color scheme of the wiki has been changed from the default. 누락된 페이지로 연결되는 이러한 "빨간색 링크"를 따라가면(실제로 빨간색인지 여부와 관계없이) 일반적으로 사용자가 페이지를 만들 수 있습니다.

페이지 제목이 아닌 임의의 텍스트 문자열을 링크로 마크업하려면 다음과 같이 "세로 막대" 또는 "파이프" 문자를 사용합니다: [[Help:Categories|category links]]category links 링크를 생성합니다.

링크 대상의 첫 글자는 일반적으로 대소문자를 구분하지 않으므로(위키를 다르게 구성하지 않는 한), 링크는 대문자를 사용할 수도 있고 사용하지 않을 수도 있습니다(따라서 How to contributehow to contribute은 동등합니다). 그러나 모든 후속문자의 대소문자는 대상 페이지와 정확히 일치해야 합니다(따라서 How to contributeHow To Contribute은 동등하지 않습니다). 페이지 제목의 공백은 밑줄로 표시할 수 있지만(따라서 How to contributeHow_to_contribute은 동일), 링크에 밑줄을 사용하면 페이지 텍스트에 표시됩니다(하지만 "pipe"를 사용하면 이를 방지할 수 있습니다).

링크하려는 페이지 제목이 편집 중인 페이지의 제목인 경우 결과는 하이퍼링크가 아니라 굵은 텍스트로 표시됩니다(예: 이 페이지에서 마크업 [[Help:Links/ko]]은 결과 2를 표시합니다). 현재 페이지에 대한 위키링크를 만들려는 경우 특정 section 또는 페이지 내의 anchor에 링크를 걸고 싶을 수 있습니다(아래 예시를 참조하세요).

미디어위키는 내부 위키링크를 추적하기 위해 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

each language 별로 localised "linktrail rules" 이라는 것을 따릅니다.

Helps

Helping

Helpers

Helpalmostanylettersyoulikehere

HelpBUTnotalways

단어 끝 링크 피하기
[[Help]]<nowiki />ful advice

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

Helpful advice

GPLv3

동일 문서에서 앵커(anchor)를 링크하기
[[#See also]]

앵커는 section headings 및 페이지의 top ([[#top]])에 자동으로 제공됩니다.

#See also
들어오는 링크에 앵커 설정하기
<div id="Unique anchor name 1">optional text</div>

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

각각 block-level and inline으로 렌더링됩니다. 이렇게 하면 같은 페이지에 [[#Unique anchor name 1]] 또는 다른 페이지에 [[Help:Links/ko#Unique anchor name 1]]이 허용됩니다. 보이지 않는 앵커의 경우 '선택적 텍스트'를 생략합니다.

섹션 제목에 앵커 설정하기

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

배치에 주의하세요. 이 태그는 "div"가 아닌 "span" 태그여야 합니다. (이러한 앵커를 사용하면 들어오는 링크가 끊어지지 않고 섹션의 제목을 변경할 수 있습니다.)

optional text

optional text

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]]로 바로 가기. 도움말:하위문서 추가보기.

/example
선행 슬래시 없이 하위 페이지로 링크하기
[[/example/]]

[[Help:Links/example|example]]로 바로 가기.

example
현재 페이지에 대한 상위 페이지의 하위 페이지로 링크. 하위 페이지에서만 사용할 수 있습니다.
[[../example2]]

[[Help:Links/example|example]]페이지에 링크를 게시하여 [[Help:Links/example2|example2]]로 바로 가기.

example2
카테고리 페이지에 표시되는 링크
[[:Category: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]]

수정본 번호는 각 페이지의 edit history에서 확인할 수 있습니다. (전체 URL을 잘라내어 붙여넣어 외부 링크를 만들 수 있기 때문에 특정 개정판에 대한 링크가 외부 링크로 구현되는 것은 매우 일반적입니다.)

Special:PermanentLink/2393992
"diff"에 대한 내부 링크
[[Special:Diff/2393992]]

[[Special:Diff/2390639/2393992]]

기본값(위의 첫 번째 예제)은 이전 수정본의 변경 사항을 표시하는 것입니다. 이전 항목의 댓글도 참조하세요.

Special:Diff/2393992

Special:Diff/2390639/2393992

넘겨주기
#REDIRECT [[Main Page]]

페이지의 첫 번째 그리고 유일한 줄이어야 합니다. 도움말:넘겨주기 보기.

  Main Page

외부 링크

일반적으로 다른 웹사이트의 페이지로 연결되는 외부 링크를 create하려면 URL 뒤에 공백을 넣고 링크 텍스트를 대괄호로 묶습니다(아래 예 참조). 페이지를 저장하거나 미리 볼 때 내부 위키링크와 약간 다르게 렌더링된 링크를 볼 수 있습니다. 다른 색상으로 표시되거나 다른 사이트로 연결될 수 있음을 나타내는 화살표 아이콘이 뒤에 올 수 있습니다.

설명 입력한 것 실제 결과
지정된 링크 텍스트가 있는 외부 링크
[https://mediawiki.org MediaWiki]
MediaWiki
숫자로된 외부 링크
[https://mediawiki.org]

링크 텍스트를 생략하면 이렇게 됩니다. 같은 페이지에 있는 이 유형의 여러 링크는 순차적으로 번호가 매겨집니다. Multiple links of this type on the same page are numbered sequentially.

[1]
외부 링크 노출
https://mediawiki.org

"http://" 및 "https://"로 시작하는 URL은 대괄호를 사용하지 않더라도 자동으로 연결됩니다.

https://mediawiki.org
자동 링크 URL 방지하기
<nowiki>https://mediawiki.org</nowiki>
https://mediawiki.org
Protocol-relative 외부 링크
[//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 encoded page names 참조, 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 [2]. 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 query parameters를 사용하여 같은 위키의 페이지에 링크를 추가하려면 외부 링크 구문을 사용해야 할 수 있습니다.

설명 입력한 것 실제 결과
현재 페이지의 편집 페이지로 연결되는 외부 링크
[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_dataExternal links도 참조하세요.

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 class는 외부 링크를 내부 링크처럼 보이게 하려는 경우 일반적으로 뒤에 표시되는 아이콘을 표시하지 않는 방식으로 사용할 수 있습니다.

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. [3]), second-level domain (e.g. [4]), etc. or refine your search by specifying parts of the URL e.g. [5].

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:를 "interwiki prefix"로 구성하여 [[ ]] 내에서 사용하면 https://en.wikipedia.org/wiki/로 바뀌기 때문에 작동합니다. (위키 관리자가 설정을 변경한 경우 작동하지 않을 수 있습니다.) 내부 링크와 달리 위키 간 링크는 페이지 존재 감지를 사용하지 않으므로 원격 위키에 페이지가 존재하지 않더라도 위키 간 링크가 파란색으로 표시됩니다.

내부 페이지 링크와 유사하게, 대체 링크 레이블을 사용하여 파이프 링크를 만들 수 있습니다(예: [[wikipedia:Sunflower|big yellow flower]]big yellow flower의 링크, [[wikipedia:Sunflower|]]Sunflower 링크).

기본적으로 위키 간 링크는 일반적으로 사용되는 긴 외부 링크의 약어입니다. 매우 유사한 링크는 [https://en.wikipedia.org/wiki/Sunflower big yellow flower]로 만들 수 있습니다.

자세한 내용은 메뉴얼:인터위키 m:Help:Interwiki linking 문서를 참고하세요. 위키가 지원하는 인터위키 접두사를 나열하는 Special:Interwiki 페이지가 있을 수 있습니다; 여기에 기본 인터위키 목록이 있습니다. 사이트에서 $1 표를 편집할 수 있습니다. Your wiki may have a Special:Interwiki page listing the interwiki prefixes it supports; here is the default interwiki list. You can edit the interwiki table on your site.

다국어 링크

위키에 다른 언어 버전이 있는 경우 interlanguage linkssidebar 바로 아래 toolbox 섹션의 "다른 언어"이라는 제목의 섹션에서 찾을 수 있습니다.

위키 마크업에서 언어 간 링크는 위키 간 링크와 매우 비슷해 보이지만, 특수한 방식으로 렌더링된다는 점에서 category link와 유사하게 작동합니다. 카테고리 링크는 (일반적으로) 페이지 하단의 특수 목록에 표시되지만, 언어 간 링크는 페이지의 sidebar에 있는 특수 목록에 표시됩니다(또는 위키의 구성과 사용된 skin에 따라 다른 곳에 표시될 수 있습니다).

언어 간 링크의 목적은 동일한 주제에 대한 페이지를 다른 언어로 연결하는 것입니다. 언어 간 링크를 만들려면 [[language prefix:page name]]을 페이지의 아무 곳(가급적 카테고리 링크처럼 하단에)에 입력합니다; 언어 접두사는 위키에서 다른 언어 버전에 대해 지정한 접두사(일반적으로 ISO 639-1 language code)를 의미합니다. 언어 간 링크는 일방적이며, 해당 페이지에서 다른 언어로 된 페이지로 되돌아가지 않습니다. 이를 위해서는 그에 상응하는 백링크도 함께 배치해야 합니다. 위키백과 언어 버전의 언어 섹션에 있는 "Edit links"와 같이 작동하지 않습니다. 하지만 다른 언어로 된 다른 프로필을 가리키는 'User:'를 포함하여 모든 이름 공간에서 사용할 수 있습니다.

언어 간 링크를 사이드바가 아닌 페이지 콘텐츠의 특정 위치에 표시하려면 언어 접두사 앞에 콜론을 추가합니다:

[[:en:Sunflower]]en:Sunflower

링크가 위키 간 및 언어 간인 경우 wikipedia:en:Sunflower의 순서를 따릅니다.

자세한 내용은 m:Help:Interwiki linking#Interlanguage links 문서를 참조하세요.


Piped links

A piped link is an internal link or interwiki link where the 'target page name' of the link and its 'label' are both specified.

This is useful in cases where the user wants to values of 'target page name' and 'label' to be different. This also enables linking a contextually relevant word or phrase within the text of a page rather than using the generic value "see also". The wording does not need to match the name of the target page. Depending on the preferences set for the current user and a supported browser, you can still see the link target: when you hover your cursor over the link, the name shows up in a pop-up window and is also shown in the status bar.

For example:

[[coffeehouse setup|Get Piping Hot Coffee Here!]]

will show: Get Piping Hot Coffee Here!

Let's take another example: [[help:Piped link|piped link]] will be displayed as piped link. This can be done when context makes it clear that the page being linked to is in the help namespace. The piped link is a better way of doing this, rather than mistakenly linking to piped link which might be a disambiguation page or not exist.

Fun Fact: The term piped refers to the use of the pipe character "|", which in this context is used to separate the more descriptive description from the actual name of the linked page.

The Pipe character was named after an alternative use of it; see Pipe (computing).

Using a redirect as an alternative

An alternative way is to use redirect pages.

To create Get Piping Hot Coffee Here!, use [[Get Piping Hot Coffee Here!]] and make it redirect to coffeehouse setup (please note: unlike above, what pops up when you point at the link, depending on your browser's support, is the text that is already shown).

It is convenient if the redirect is already there or will also be of use elsewhere. However, there are a few drawbacks.

  • the popup does not show the destination page
  • "Related changes" shows the changes in the redirect page not the redirect target
  • the redirect message that is shown on the target page slightly clutters it

Using a piped link and a redirect together, it is possible to provide information in the hover box that is not the name of the linked page, for example, the value of a unit in terms of other units. In that case, it is possible to make a page whose page name is the information that you'd like in the link title, and which redirects to the page with a more appropriate name.

For example, the page w:30.48 cm redirects to w:Foot (unit).

Pipe trick

If the part after the "|" in a piped link is left empty, it is converted to an abbreviated form of the page name on the left, based on the following rules:

  1. Any word that is before the first colon (:), as well as the colon character itself, is removed.This word may or may not be a 'namespace' prefix (such as "Help:") or an 'interwiki' prefix (such as "commons:").If the name of the page is preceded by a colon (:), "first" refers to "first after this".
  2. If there is some text in the parentheses at the end, then it will be removed.
  3. If there are no parentheses, but there is a comma (,) character, the comma and everything after it is removed.
  4. Note that this does not work for sections/anchors as [[Help:Piped_link#Pipe_trick|]] outputs [[Help:Piped_link#Pipe_trick|]].

Similar to using the three or four tildes when signing on Talk pages, and using 'subst', in a preview, the result shows up in the preview itself, but the conversion in the edit box is not shown yet. Click on the "Show changes" option to see the change in the wikitext.

Examples
  • [[Help:Template|]] is converted to [[Help:Template|Template]], which is shown as Template
  • [[Music: My life|]] is converted to [[Music: My life| My life]], which is shown as My life - although "Music:" itself is not a namespace (therefore the space after the colon character is not automatically removed), however, the shortcut works anyway
  • [[w:en:Pipe (computing)|]] is converted to [[w:en:Pipe (computing)|en:Pipe]], which is shown as en:Pipe.
  • [[commons:Boston, Massachusetts|]] is converted to [[commons:Boston, Massachusetts|Boston]], which is shown as Boston.
  • [[w:{{{1}}}|]] does not give [[w:{{{1}}}|{{{1}}}]], and calling the template with a value of parameter 1 gives a working link, but in the case of substitution only.
  • [[w:en:{{FULLPAGENAME}}|]] does not give [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]] and [[m:{{FULLPAGENAME}}|]] does not give [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]
  • [[Wikipedia:Village pump (technical)#Pipe trick|]] is not converted, so it does not give a working link.
This wikitext Produces
* [[project:a (b)|]]
* [[w:project:a (b)|]]
* [[:de:project:a (b)|]]
* [[wiktionary:project:a (b)|]]
* [[wiktionary:de:project:a (b)|]]
* [[wikibooks:project:a (b)|]]
* [[wikiquote:project:a (b)|]]
* [[wikisource:project:a (b)|]]
* [[wikisource:project:a (b)#c|]]
* [[w:en:{{FULLPAGENAME}}|]] [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]
* [[m:{{FULLPAGENAME}}|]] [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]
* a
* project:a
* project:a
* project:a
* de:project:a
* project:a
* project:a
* project:a
* [[wikisource:project:a (b)#c|]]
* [[w:en:Help:Links/ko|]] en:Help:Links/ko
* [[m:Help:Links/ko|]] Help:Links/ko
Category tag

Since the sortkey syntax of the category is similar to a piped link, the pipe trick also works for category tags, even though technically, it is not useful there.

Limitation

  • [[Help:L{{tc}}k|]] using template:tc is not converted, so the result is rendered as [[Help:Link|]] which is not as a working link.This is because like substitution, the pipe trick expansion occurs before ordinary expansion of the templates, etc.The pipe trick does not work if the linked page includes invalid characters.Therefore, while ordinarily the acceptability of the target page name is assessed after template expansion, the pipe trick expansion judges it before that.The braces are therefore considered invalid characters in the page name.Instead, a template can be used like template:pipe trick: {{pipe trick|Help:|L{{tc}}k}} which renders as Link.

Inverse pipe trick

On page "A (c)", [[|b]] is converted to [[b (c)|b]] automatically.

Similarly, on page "A, c", [[|b]] is converted to [[b, c|b]] automatically.

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. [6], we can use Special:Linksearch: [7].

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.

한계

내부 위키 링크는 최대 page title 크기로 제한됩니다.

같이 보기