Extension:Header Footer/zh

Header Footer擴展可用於單獨的命名空間或頁面

功能

 * 速度 - 与解析器缓存集成
 * 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 elements

Per-Namespace Header and Footer
Edit the pages: must be in the language of the wiki (see Manual:$wgLanguageCode)

For the 'main' namespace, just use blank i.e. no string, but with the hyphen:



每页的页眉和页脚
Edit the pages:



禁用命令
On edit protected pages, one can add
 * to suppress the page level header
 * to suppress the page level footer
 * to suppress the namespace level header
 * to suppress the namespace level footer

CSS

 * Page Level Header:
 * Namespace Level Header:
 * Page Level Footer:
 * Namespace Level Footer:

-{zh-hans:示例; zh-hant:範例;}-

 * 1) Page MediaWiki:hf-nsheader-Extension would contain the wikitext to be included as header for all pages of the Extension namespace.
 * 2) * In this case, to suppress the header of the page Extension:HeaderFooter one should a) edit protect it, and b) add  in it.
 * 3) Page MediaWiki:hf-footer-Extension:HeaderFooter would contain the wikitext to be included as footer for the page Extension:HeaderFooter.
 * 4) * In this case, to suppress the footer of the page Extension:HeaderFooter one should a) edit protect it, and b) add  in it.



参见

 * PageNotice extension – 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).