跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
中医百科
搜索
搜索
登录
个人工具
登录
深色模式
查看“Template:Excerpt tree/doc”的源代码
模板
讨论
中国大陆简体
不转换
简体
繁體
中国大陆简体
中國香港繁體
中國澳門繁體
马来西亚简体
新加坡简体
中國臺灣繁體
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
清除缓存
常规
链入页面
相关更改
特殊页面
页面信息
页面值
←
Template:Excerpt tree/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
{{Documentation subpage}} Use this template to navigate [[Template:Excerpt#Excerpt trees|excerpt trees]]. This template is a [[template gadget]] that requires the [[Special:Gadgets#gadget-ExcerptTree|ExcerptTree gadget]] to work. Follow the [[#Installation|installation instructions]] to get it working in your wiki. == Usage == {{Markup | 1 = <syntaxhighlight lang="wikitext"> {{Excerpt tree| * [[Architecture Repository]] * [[Platform Engineering Team]] }} </syntaxhighlight> | 2 = {{Excerpt tree| * [[Architecture Repository]] * [[Platform Engineering Team]] }} }} == Installation == 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): <syntaxhighlight lang="wikitext"> <div class="ExcerptTree"> {{{1}}} </div>[[Category:ExcerptTree.js]] </syntaxhighlight> # Create MediaWiki:Gadget-ExcerptTree.js with the following code: <syntaxhighlight lang="javascript"> /** * 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' ); </syntaxhighlight> # Add the following gadget to MediaWiki:Gadgets-definition: <syntaxhighlight lang="text"> * ExcerptTree[ResourceLoader|hidden|default|categories=ExcerptTree.js]|ExcerptTree.js </syntaxhighlight> Done! Add your template to any page to verify that the installation was successful. == Template data == <templatedata> { "description": "Use this template to navigate excerpt trees", "format": "block", "params": { "1": { "label": "Links", "description": "List of links to the roots of the excerpt trees", "type": "string", "required": true } } } </templatedata> == See also == * [[:es:Plantilla:Árbol de extractos]] - Spanish localization of this template * [[User:Sophivorus]] - Main author of this template <includeonly> [[Category:Template gadgets]] </includeonly>
该页面使用的模板:
Template:Documentation subpage
(
查看源代码
)
Template:Markup
(
查看源代码
)
返回
Template:Excerpt tree/doc
。
开关有限宽度模式