Extension:린터
![]() 출시 상태: 안정 |
|
---|---|
![]() |
|
구현 | 특수 문서 |
설명 | 린트 오류를 노출시키고 추적합니다 |
만든 이 | Kunal Mehta (Legoktm토론) |
MediaWiki | >= 1.41 |
데이터베이스 변경 | 예 |
테이블 | linter |
라이선스 | GNU 일반 공중 사용 허가서 2.0 or later |
다운로드 | README |
|
|
Quarterly downloads | 81 (Ranked 88th) |
Public wikis using | 884 (Ranked 294th) |
Linter 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
이슈 | 미해결 작업 · 버그 보고 |
린터 확장 기능은 외부 서비스로부터 린트 오류를 추적합니다. 현재 주된 이용 목적은 Parsoid가 식별한 오류를 추적한 다음 이것들을 편집자에게 표시해주는 것입니다. 오류 수정을 원하는 사용자를 위한 도움말은 Help:Extension:Linter 에서 볼 수 있습니다.
설치
- 파일을 다운로드하고
Linter
폴더를extensions/
디렉토리에 넣어 주세요. - 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
wfLoadExtension( 'Linter' );
- 갱신 스크립트를 실행합니다. 이 스크립트는 이 확장기능을 필요로 하는 데이터 베이스 테이블을 자동적으로 작성합니다.
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
구성 변수
In the $wgParsoidSettings section of your LocalSettings.php file, set
$wgParsoidSettings = [
'linting' => true
];
API
list=linterrors (lnt)
- This module requires read rights.
- Source: Linter
- License: GPL-2.0-or-later
Get a list of lint errors
- lntcategories
Categories of lint errors
- Values (separate with | or alternative): bogus-image-options, deletable-table-tag, fostered, html5-misnesting, misc-tidy-replacement-issues, misnested-tag, missing-end-tag, multi-colon-escape, multiline-html-table-in-list, multiple-unclosed-formatting-tags, obsolete-tag, pwrap-bug-workaround, self-closed-tag, stripped-tag, tidy-font-bug, tidy-whitespace-bug, unclosed-quotes-in-heading, wikilink-in-extlink
- Default: deletable-table-tag|html5-misnesting|misc-tidy-replacement-issues|multiline-html-table-in-list|multiple-unclosed-formatting-tags|pwrap-bug-workaround|self-closed-tag|tidy-font-bug|tidy-whitespace-bug|unclosed-quotes-in-heading|bogus-image-options|fostered|misnested-tag|multi-colon-escape|wikilink-in-extlink|missing-end-tag|obsolete-tag|stripped-tag
- lntinvisible-categories
Invisible categories of lint errors
- Values (separate with | or alternative): large-tables, missing-end-tag-in-heading
- Default: large-tables|missing-end-tag-in-heading
- lntlimit
Number of results to query
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- lntnamespace
Only include lint errors from the specified namespaces
- Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 90, 91, 92, 93, 100, 101, 102, 103, 104, 105, 106, 107, 486, 487, 710, 711, 828, 829, 1198, 1199, 2300, 2301, 2302, 2303, 2600, 5500, 5501
- To specify all values, use *.
- lntpageid
Only include lint errors from the specified page IDs
- Type: list of integers
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- lnttitle
Only include lint errors from the specified page title
- lntfrom
Lint ID to start querying from
- Type: integer
- Get all lint errors of the obsolete-tag category
- api.php?action=query&list=linterrors&lntcategories=obsolete-tag [open in sandbox]
meta=linterstats (lntrst)
- This module requires read rights.
- Source: Linter
- License: GPL-2.0-or-later
Get number of lint errors in each category
- Get number of lint errors in each category
- api.php?action=query&meta=linterstats [open in sandbox]
린터 분류
린터 분류 목록은 사이트 정보 속성에서 볼 수 있습니다.
Bootstrap or reprocess all pages
Instead of running refreshLinks.php , it's possible to populate lint errors by querying parsoid directly. See phab:T161556#3184216 for an example script.
![]() | 이 확장 기능은 하나 이상의 위키미디어 프로젝트에서 사용 중입니다. 이것은 아마도 이 확장 기능이 안정적이고 트래픽이 많은 웹 사이트에서 사용할 수 있을 만큼 충분히 잘 작동한다는 것을 의미합니다. 설치된 위치를 확인하려면 위키미디어의 CommonSettings.php 및 InitialiseSettings.php 구성 파일에서 이 확장 기능의 이름을 찾습니다. 특정 위키에 설치된 확장 기능의 전체 목록은 위키의 Special:Version 문서에서 볼 수 있습니다. |
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Extensions bundled with MediaWiki 1.40/ko
- Stable extensions/ko
- Special page extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- APIQuerySiteInfoGeneralInfo extensions/ko
- BeforePageDisplay extensions/ko
- InfoAction extensions/ko
- LoadExtensionSchemaUpdates extensions/ko
- ParserLogLinterData extensions/ko
- RevisionFromEditComplete extensions/ko
- WikiPageDeletionUpdates extensions/ko
- All extensions/ko
- Extensions used on Wikimedia/ko
- Extensions included in Canasta/ko
- Extensions included in Miraheze/ko
- Extensions included in WikiForge/ko
- Extensions included in WikiTide/ko