模板:Excerpt tree

勤求古訓,博采眾方
(重新導向自ExcerptTree
文檔圖示 模板文件[檢視] [編輯] [查看歷史] [清除快取]

Template:Documentation subpage

Use this template to navigate excerpt trees.

This template is a template gadget that requires the ExcerptTree gadget to work. Follow the installation instructions to get it working in your wiki.

Usage

Template:Markup

Installation

To install this template in your wiki:

  1. Create a template with any name and the following markup (you can adjust the parameter names and defaults to suit your wiki):
    <div class="ExcerptTree">
    {{{1}}}
    </div>[[Category:ExcerptTree.js]]
    
  2. Create MediaWiki:Gadget-ExcerptTree.js with the following code:
    /**
     * ExcerptTree enables navigation of excerpt trees
     * Documentation: https://www.mediawiki.org/wiki/ExcerptTree
     * Source code: https://www.mediawiki.org/wiki/MediaWiki:Gadget-Global-ExcerptTree.js
     */
    mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-ExcerptTree' );
    
  3. Add the following gadget to MediaWiki:Gadgets-definition:
    * ExcerptTree[ResourceLoader|hidden|default|categories=ExcerptTree.js]|ExcerptTree.js
    

Done! Add your template to any page to verify that the installation was successful.

Template data

Use this template to navigate excerpt trees

模板參數

此模板以參數區塊格式為優先。

參數描述類型狀態
Links1

List of links to the roots of the excerpt trees

字串必填

See also

上述文檔內容嵌入自Template:Excerpt tree/doc編輯 | 歷史
編者可以在本模板的沙盒創建 | 鏡像和測試樣例創建頁面進行實驗。
請將模板自身所屬的分類添加在文檔中。本模板的子頁面