萌娘百科衷心希望新型冠状病毒肺炎疫情早日结束! | 创建原型类条目前请阅读关于原型类条目收录方针变动的公告!
针对音乐条目收录范围的修正案(2021.02.20)正在讨论中,欢迎参与!
- 你好~!欢迎来到萌娘百科!如果您是第一次来到这里,点这里加入萌娘百科!
- 欢迎具有翻译能力的同学~有意者请点→Category:需要翻译的条目←
- 如果您在萌娘百科上发现某些内容错误/空缺,请勇于修正/添加!编辑萌娘百科其实很容易!
- 觉得萌娘百科有趣的话,请推荐给朋友哦~
- 萌娘百科群119170500欢迎加入,加入时请写明【萌娘百科+自己的ID】~
- 萌娘百科Discord群组已经建立,请点此加入!
帮助:使用插件
本页面原来自另一个维基计划,其版权协定可能与萌百有异。 |
插件(extensions)是对萌娘百科所使用的MediaWiki系统所进行的功能扩充的方式。不同的插件对功能有不同的扩充,使用方法也有所不同。
下面列出一些常用插件的使用方法。但本页内容可能随更新有所变化。
Poem
Poem插件增加了<poem></poem>标签,该标签允许其中包裹的内容可以实现“一次编辑换行=一次实际换行”。这为歌词等内容提供了方便。
例如,当写下:
<poem> 大家好 大家好 大家好 大家好 </poem>
时,则会显示为:
大家好
大家好
大家好
大家好
如果不使用该标签,则会变为: 大家好 大家好 大家好 大家好
InputBox
InputBox插件提供了标签<inputbox></inputbox>。利用该标签,您可以在任一页面创建一个输入框,并与口袋维基的页面有所联系。该功能主要用于修改、新建、搜索页面。
完整使用格式为:
<inputbox> type= bgcolor= width= default= preload= editintro= buttonlabel= hidden= searchbuttonlabel= break= namespaces= prefix= </inputbox>
使用范例
输入:
<inputbox> type=search width=42 buttonlabel=Go searchbuttonlabel=Search break=no </inputbox>
将显示:
其中等号左侧的为参数名,右侧的为参数值。参数的值应由您来提供,其可选值如下。
参数
参数 适用范围 |
示例 |
---|---|
bgcolor= All types 设定背景色(HTML值,无需含引号) |
<inputbox> type=search bgcolor=#eeeeff </inputbox> |
width= All types 设定输入框的宽度(字数) |
<inputbox> type=create width=24 </inputbox> |
default= All types 设定输入框内的默认文字 |
<inputbox> type=comment default=User talk:Eloquence </inputbox> |
preload= comment, create 设定标题下预先载入的页面 |
<inputbox> type=create preload=Log </inputbox> |
您可以尝试在框中输入页面名称进行效果测试 | |
editintro= comment, create 设定出现在输入框之上的内容 |
<inputbox> type=comment editintro=沙盒 </inputbox> |
buttonlabel= All types 设定默认按钮上的文本 |
<inputbox> type=comment buttonlabel=Add new rumor </inputbox> |
hidden= create, comment 该参数可使输入框不显示 |
<inputbox> type=comment editintro=Extension:InputBox/editintro comment preload=Extension:InputBox/preload hidden=yes default=Extension talk:Inputbox buttonlabel=Post a comment on the talk page </inputbox> |
searchbuttonlabel= search, fulltext 设定“全文搜索”按钮的文本 |
<inputbox> type=search searchbuttonlabel=Dig deeper </inputbox> |
break= All types 是否将按钮与输入框分行显示 |
<inputbox> type=create width=24 break=no </inputbox> |
namespaces= search, fulltext 设定可选的名称空间 |
<inputbox> type=search namespaces=Main**,Help </inputbox> |
prefix= search, fulltext 设定默认的名称空间 |
<inputbox> type=search prefix={{FULLPAGENAME}}/Archive </inputbox> |
|