Jump to content

도움말:하위문서

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

Subpages introduce some hierarchical organization into wiki pages, with levels of the hierarchy separated by slashes (/).

작동 방식

By default, MediaWiki's subpage feature is turned off in the main namespace, but can be used on talk pages and user pages. See 도움말:이름공간 for description of namespaces and $wgNamespacesWithSubpages to learn how to modify this default behavior. In namespaces where the feature is switched off, any forward slashes (/) within a page name are simply part of the page name and do nothing special.

When subpages are enabled in a namespace, a forward slash in the title of a page always causes the page to be a subpage. If this is not desired, you can #Bypass subpages using alternative characters.

어떻게 작동하나요?

Slashes (/) within a page name break the page into parent and subpages, recursively, e.g.:

Page relationships
Help:Subpages /sub /sub/subi /sub/sub1/sub /sub/sub1/sub/sub
CURRENT PAGE child grandchild great grandchild great great grandchild
parent CURRENT PAGE child 1 grandchild great grandchild
child 2 grandchild great grandchild
grandparent parent CURRENT PAGE child grandchild
great grandparent grandparent parent CURRENT PAGE child
great great grandparent great grandparent grand-parent parent CURRENT PAGE

You can link directly to any page’s subpage using the normal double square brackets notation, by providing the full name – including the slash(es) and the individual subpage name(s). You can also link from one page to one of its own subpages using certain shortcuts, which are covered at Help:Links.

There are Magic words to split the name of a subpage, such as {{BASEPAGENAME}} and {{SUBPAGENAME}}, and the parser function {{#titleparts:}} for finer control.

Note that the part of page names after a slash is case sensitive including the first letter.

Breadcrumb links will appear automatically at the top of the subpage, linking to each parent page that exists. These links do not appear, however, if the parent pages have not yet been created or if the subpage feature is turned off.

As these automatic breadcrumb links are not in the page content, the breadcrumbs do not place parent pages in the What links here and Related changes lists.

If you move (rename) a parent page, you will be shown a list of the subpages, and users with the move-subpages user right will have the option to automatically move subpages (up to 100).

하위문서 사용하기

하위 문서는 다양한 용도가 있는데, 몇 가지 일반적인 사용법은 다음과 같습니다.

  • 오래된 사용자 토론을 보존할 때
  • 사용자 문서에서 편집 공간을 분리할 때
  • 다언어 위키들에서 다른 언어 버전의 문서 번역을 생성할 때
  • to create a template's subpages for its documentation, for its code sandbox, for its testcases, and for any subtemplate code

하위문서는 정보의 상속을 조직화할 때 유용합니다. 한편, 하위문서의 전체적인 이름이 길어지는 것은 찾는 걸 어렵게 만들기 때문에 최대한 가능한 짧게 쓰는 것이 사용자에게 좋습니다. You can also organize pages with the category feature, which is more suitable for creating a hierarchical network of information.

하위문서를 보는법

하위문서는 PrefixIndex 기능을 이용해 매우 단순화하여 목록화될 수 있습니다.

{{Special:PrefixIndex/Help:Subpages/}}

Which produces this:

Since the magic word {{FULLPAGENAME}} outputs the current page, the general wiki markup to show all subpages of the current page is {{Special:PrefixIndex/{{FULLPAGENAME}}/}}. You can pass parameters to this, e.g. {{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}}

The subpage extensions, such as Extension:SubPageList or Extension:SubpageNavigation , let you customize the display of subpages.

Bypass subpages using alternative characters

As a consequence of the forward slash being a reserved character when subpages are enabled, an alternative character might be needed. Back slashes (\) are treated as normal characters in subpage naming and can be used in place of forward slashes. Additionally, as a crude hack, a character similar to the forward slash can be used instead, such as the "big solidus" (U+29F8), which results in Foo⧸bar (cf. a real slash: Foo/bar), or the solidus (U+2044), which results in Foo⁄bar. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:

  1. People without the necessary fonts won’t be able to view the character properly;
  2. 슬래시가있는 제목에서 redirects를 만들어야 링크걸기 및 검색이 올바르게 작동합니다.
  3. Both the subject and talk versions of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move). For example, subpages are disabled in the main namespace in Wikipedia, so while the talk page won't work unless the solidus character is used to prevent having them marked as subpages, the corresponding page in the main namespace could accidentally keep an actual slash. The risk is that the visual similarity might make this go unnoticed by human editors.

같이 보기