Extension:Display Title/ko

DisplayTitle 확장기능은 문서 내에 Displaytitle 기능이 쓰인 경우, 문서의 표시되는 문자와 링크되는 문자를 계속 쓰지 않고 일반 링크를 달 때 처럼 링크를 달아도 링크된 문서 내에 있는 새 제목을 표시하도록 허용합니다. 둘 모두 다른 문서로 향하는 링크 뿐 아니라 문서 자체 편집도 가능합니다. DisplayTitle 확장기능은 해당 문서와 그 토론 문서 내에서 다른 제목을 보이게 하는 데에도 사용합니다. 사용자 입맛대로 원래 문서 이름을 문서의 부제목으로 표시할 수 있습니다. 또한 문서 제목 표기를 돕는 파서 함수 기능을 제공합니다.

이 확장 기능은  매직 워드를 지원하는 MediaWiki core 기능 기반으로 작동합니다. 함수를 displaytitle 문서 안에 집어넣으면 (여기서는 원하는 문서 제목이 쓰였습니다) 해당 문서는 가능한 경우 제목 표시줄의 원본 제목으로 표시합니다. 문서 설정은 MediaWiki 데이터베이스의 page_props 테이블에 저장됩니다. DisplayTitle 확장기능은 page_props 데이터베이스 테이블의 "displaytitle" 값을 쿼리하여 확장기능을 제공합니다.

구성 설정
While not strictly necessary for the functioning of Display Title, in order to allow the  magic word to function as expected, set the following MediaWiki core configuration variables:

Display title on edit pages and edit links
In order for the Display Title to be used on edit pages and links to them, edit the following system messages on your wiki (substituting the wiki's local language where appropriate):

And if you also use Page Forms.

문서 연결
The behavior of the Display Title extension for different types of links is summarized below. The table shows what the link text will be for different situations. In the table, A represents a page title and a represents the page title with the first character of the page name (i.e. the part after the Namespace: if there is a namespace) in lower case. Note that if a page is a redirect (i.e. Page A in the "Page A Redirects to Page B" columns below) and has a display title set, that display title will be ignored by this extension.

parser function
The  parser function gets the display title of the page provided. For example:

will show the displaytitle of page. To get the display title of the current page, use:

Lua/Scribunto support
Two Lua (see ) functions exist for getting and setting a page's display title:  and. To use them, you could create a page  containing the following:

You could then use  on a page to set the page's display title to My Display Title, and you could use   to get the display title of page My Page.

Redirects
For redirect pages, if the target page has a display title, it will be used as the display title of the redirect page.

Note that this has two implications that may be unexpected the first time a user sees them. When a page with a display title is moved leaving a redirect, on the page indicating that the move was a success the link text will be the same for both the source and target pages. And, on the Special:WhatLinksHere page for a page with a display title that is the target of a redirect, the link text of the redirect page will be the display title of the target page.

A single level of redirect will be followed.

History
The functionality in this extension evolved as part of the Semantic Title extension. Special thanks go to Van de Bugger, the author of version 1.0 of Semantic Title.

Display Title relies only on functionality in MediaWiki core; it does not depend on any other extension. The functionality in Display Title has been removed from Semantic Title, which now retains solely the functionality to set a page's display title from a Semantic MediaWiki property or Cargo field. However, it is recommended that a page's display title be set using  rather than the functionality in Semantic Title. Semantic Title is being maintained for backward compatibility.

Release notes

 * Version 2.2.0
 * Add  array to define a list of pages on which links should not use DisplayTitle
 * Fix behavior when there are underscores in the link text
 * Don't use deprecated ParserBeforeStrip hook
 * Version 2.1.0
 * Added tests
 * Added null title check
 * Version 2.0.0
 * Compatibility dropped with MW 1.28 and lower
 * Bug fixes:
 * T181669: Handle integers passed as link text
 * Fixed bug introduced in version 1.5.2 that caused self links to be wrapped in HtmlArmor
 * Version 1.5.3
 * On redirect pages, show display title of target page
 * Follows a single level of redirect
 * Version 1.5.2
 * Bug fixes:
 * T180413: Use supplied link text rather than display title when link text matches page title except for case of first character
 * T180409: Undefined variable: found in "DisplayTitleHooks.php" on line 152
 * T181228: Display titles with italics show as HTML
 * Version 1.5.1
 * Fixed issue for logged-in users on using action "info"
 * Version 1.5
 * Text that should have overridden link text was being ignored
 * Fix link to user page in header (personal URLs)
 * Version 1.4
 * Updated to work with MediaWiki 1.28+
 * Version 1.3
 * Modified self-links to determine display text identically to non-self-links
 * Version 1.2
 * Added mw.ext.displaytitle.get and mw.ext.displaytitle.get Lua functions written by User:Oetterer
 * Version 1.1
 * Added check for title with only fragment when creating link
 * Version 1.0
 * Initial release

알려진 비호환성
Thus the original page title will not display below the title bar.
 * Configuration parameter  will not work if you also have the Semantic Breadcrumb Links extension lower than version 1.5.0 installed.

같이 보기

 * DISPLAYTITLE magic word