Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

도움말:문서 상태 인디케이터

From mediawiki.org
This page is atranslated version of the pageHelp:Page status indicators and the translation is 27% complete.
Languages:

문서 상태 인디케이터는 아이콘(또는 줄여서 스니펫)에서 문서의 주요 내용 영역 외에 표시되며, 문서 상태(예를 들면, 해당 문서가보호된 문서이거나알찬 글 문서일 때)를 가리키는 것입니다.

호출 이름도 탑 아이콘, 문서 아이콘, 호출 아이콘으로 여러가지입니다.

이 기능이Gerrit change 162609에서MediaWiki 1.25에 추가된 이유는T25796 해소와 이 문제에 대응하기 위해서 잠정적으로 더해진, 영어판 위키백과의‘top icon‘ 틀을 대표로 하는 복수 해결책을 없애버리기 위합입니다.

문서 상태 인디케이터를 표시

벡터 스킨에서는 스크린샷에 빨간 상자로 표시시킨 부분에 표시됩니다.

문서 상태 인디케이터는 보통 문서의 오른쪽 상단이나 문서 내용의 바깥쪽, 또는 제목 앞에 표시됩니다.정확한 위치는스킨에 따라 다릅니다.

문서 상태 인디케이터 추가하기

다음 문법을 통해 문서에 인디케이터를 추가하고, 태그의name 속성과 내용을 입맛대로 바꾸세요.

It is strongly recommended to create atemplate for each indicator type you're going to need, instead of including the tag syntax directly in articles.

Wikitext syntax:

<indicatorname="foo">[[File:Foo.svg|20px]]</indicator>

Lua module syntax:

mw.getCurrentFrame():extensionTag{name="indicator",content='[[File:Foo.svg|20px]]',args={name="foo"}}

Note that:

  • When using a caption on the image, the caption automatically becomes atitle attribute with the contents of the caption.
  • Any wikitext can be added, not just images.(TemplateStyles is only supported starting with미디어위키 1.39, seeT188443.)
  • Every indicator must have a unique identifier (name).It's not possible to have several indicators with the same name – in case of duplicates, the latest occurrence of the tag wins.
  • Indicators are displayed ordered by their names (case-sensitive) and not in order of their occurrence.This ensures consistency across pages and provides a simple means of ordering or grouping them.
  • Indicators are not tracked.They are intended to merely reflect the content or metadata that is already present on the page, and not be data themselves.You should be able to use the appropriatetracking category, templatetransclusions list,special page report, or other means to list pages that include a given indicator.

Known problems

Customizing display on your wiki

If the skin you're using supports page status indicators (all default skins do), you can adjust their display usingsite and user CSS.The CSS classes to style are.mw-indicators (for the entire containing block) and.mw-indicator (for each separate indicator).

Each indicator is also given an ID of#mw-indicator-name, wherename is the name assigned to the indicator using the<indicatorname="foo"> syntax.

Adding support for indicators in skins

Seearray-indicators onManual:SkinMustache.php#Template_data.

Using indicators from PHP code

Access theOutputPage object and call itssetIndicators() method, passing an ID and the HTML string you want displayed.If you're adding a help link to documentation, call itsaddHelpLink() method, also implemented bySpecialPage and other classes.This puts a help link in the indicators area; for example, seeSpecial:WhatLinksHere.

Retrieved from "https://www.mediawiki.org/w/index.php?title=Help:Page_status_indicators/ko&oldid=6386940"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp