Extension:Header Footer/ko
Appearance
출시 상태: 안정 |
|
|---|---|
| 구현 | 내 위키, 확장 구문 |
| 설명 | Allows content to be included at the top and bottom of the wiki's page content section |
| 만든 이 | Jean-Lou Dupont, James Montalvo, Douglas Mason, Hallo Welt! GmbH |
| 최신 버전 | 4.0 |
| 호환성 정책 | For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension. |
| MediaWiki | 1.43+ |
| 데이터베이스 변경 | 아니오 |
| Composer | mediawiki/header-footer |
|
|
| Licence | GNU General Public License 2.0 or later |
| 다운로드 | |
| Header Footer 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
The Header Footer extension allows content to be included at the top and bottom of the wiki's page content section per namespace and per page.
Features
- Speed - integrated with parser caching
- Secure - header and footer articles are located in the NS_MEDIAWIKI namespace
- Controllable - headers and/or footers can be disabled on pages which are edit protected
- Customizable - headers and footers are wrapped in
<div>elements
설치
- 파일을 다운로드하고
HeaderFooter폴더를extensions/디렉토리에 넣어 주세요.
개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HeaderFooter
- 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
wfLoadExtension( 'HeaderFooter' );
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
Usage
Per-Namespace Header and Footer
Edit the pages:
MediaWiki:Hf-nsheader-namespace nameMediaWiki:Hf-nsfooter-namespace name
namespace name must be in the language of the wiki (see $wgLanguageCode)
For the 'main' namespace, just use blank i.e. no string, but with the hyphen:
MediaWiki:Hf-nsheader-MediaWiki:Hf-nsfooter-
Per-Page Header and Footer
Edit the pages:
MediaWiki:Hf-header-page nameMediaWiki:Hf-footer-page name
Disable commands
On edit protected pages, one can add:
__NOHEADER__- to suppress the page level header__NOFOOTER__- to suppress the page level footer__NONSHEADER__- to suppress the namespace level header__NONSFOOTER__- to suppress the namespace level footer
CSS
- Page Level Header:
<div class="hf-header"> - Namespace Level Header:
<div class="hf-nsheader"> - Page Level Footer:
<div class="hf-footer"> - Namespace Level Footer:
<div class="hf-nsfooter">
Examples
- Page MediaWiki:hf-nsheader-Extension would contain the wikitext to be included as header for all pages of the Extension namespace.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NONSHEADER__in it.
- In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add
- Page MediaWiki:hf-footer-Extension:HeaderFooter would contain the wikitext to be included as footer for the page Extension:HeaderFooter.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
__NOFOOTER__in it.
- In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add
See also
- Extension:PageNotice – provides a way for you to define fixed notice messages for the top or the bottom of a page (by individual page name), or entire namespaces (by namespace number).
| This extension is included in the following wiki farms/hosts and/or packages: |
Categories:
- Stable extensions/ko
- Personalization extensions/ko
- Extended syntax extensions/ko
- Extensions supporting Composer/ko
- OutputPageParserOutput extensions/ko
- ResourceLoaderGetConfigVars extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- All extensions/ko
- Extensions included in BlueSpice/ko
- Extensions included in Canasta/ko
- Extensions included in ProWiki/ko
- Extensions included in wiki.gg/ko
- View page extensions/ko
- Headers and footers extensions/ko
