Template:Excerpt tree/doc
Appearance
This is a documentation subpage for Template:Excerpt tree. It contains usage information, categories and other content that is not part of the original Template page. |
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
[edit]Markup | Renders as |
---|---|
|
|
Installation
[edit]To install this template in your wiki:
- 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]]
- 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' );
- 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
[edit]Use this template to navigate excerpt trees
Parameter | Description | Type | Status | |
---|---|---|---|---|
Links | 1 | List of links to the roots of the excerpt trees | String | required |
See also
[edit]- es:Plantilla:Árbol de extractos - Spanish localization of this template
- User:Sophivorus - Main author of this template