Help:输入框

From ForexstarWiki

Jump to: navigation, search

嘉瑞基百科全书使用手册
当前软件版本——[[Special:Version|]]

目录 | 读者手册 | 编辑手册 | 管理手册

输入框是一个MediaWiki扩展,由Erik Möller编写。创建它的最初目的是在维基新闻中加上一个“创建条目”的按钮。它需要[MW 1.5+],和扩展脚本。

目录

通用语法

输入框的结构大致如下:

 <inputbox>
 type=类型
 参数1=值1
 参数2=值3
 </inputbox>

“type”参数必须要有。其他参数可自选。

类型

类型 样例
type=search

<inputbox> type=search </inputbox>

默认宽度为50字符。按钮文字可设置,默认为MediaWiki:TryexactMediaWiki:Searchfulltext。下同。
type=create

<inputbox> type=create </inputbox>

创造新页面。
type=comment

<inputbox> type=comment </inputbox>

向存在页面添加章节,或创造页面。编辑摘要自动为章节标题。

参数

参数
类型范围
描述 样例

bgcolor=
所有类型

设置背景色。不要设置引用。
<inputbox>
type=search
bgcolor=#eeeeff
</inputbox>

得到:

<inputbox> type=search bgcolor=#eeeeff </inputbox>

width=
所有类型

设置输入框宽度。
<inputbox>
type=create
width=6
</inputbox>

得到:

<inputbox> type=create width=6 </inputbox>

default=
所有类型

在输入框中放置默认文字。
<inputbox>
type=comment
default=User talk:Mountain
</inputbox>

得到:

<inputbox> type=comment default=User talk:Mountain </inputbox>

preload=

comment, create

在新创建的页面文字框中预装文字。
<inputbox>
type=create
width=20
preload=MediaWiki:Editthispage
</inputbox>

得到:

<inputbox> type=create width=20 preload=MediaWiki:Editthispage </inputbox>

editintro=
comment, create
(不清楚)
<inputbox>
type=comment
width=20
editintro=MediaWiki:Missingcommenttext
</inputbox>

得到:

<inputbox> type=comment width=20 editintro=Mediawiki:Missingcommenttext </inputbox>

buttonlabel=
All types
按钮文字。
<inputbox>
type=comment
buttonlabel=来造谣
</inputbox>

得到:

<inputbox> type=comment buttonlabel=来造谣 </inputbox>

searchbuttonlabel=
search
此标示用作搜索全文。
<inputbox>
type=search
searchbuttonlabel=深度优先搜索
</inputbox>

得到:

<inputbox> type=search searchbuttonlabel=深度优先搜索 </inputbox>

break=
yes
输入框和按钮之间是否换行。
<inputbox>
type=create
break=yes
</inputbox>

得到

<inputbox> type=create break=yes </inputbox>

所使用MediaWiki名字空间的文本只是样例,几乎任何页面都可使用。

警告

  • 变量、参数、模板不可用于输入框。
到其他帮助页面的链接
 
帮助目录 - 所有帮助页面
阅读
链接|搜索|分类|重定向|章节|名字空间|URL|跨维基链接|打印页面|随机页面|特殊页面
登录与参数设置
登录|参数设置|用户样式
跟踪更改
页面历史|差异|链入页面|链出更改|最近更改|增强的最近更改|监视列表|编辑摘要|用户贡献|小修改
编辑
创建新页面|编辑页面|使用表格|图像|模板|HTML|页面重命名|特殊字符|回退|脚注|ISBN|签名
高级
变量|魔术字|默认参数|模板扩展语法|替换引用|计算|数学公式|简易时间线语法|输入框

 
关于我们 | 资讯中心 | 社区中心 | 服务中心 | 广告合作 | 网站地图 | 服务协议 | 免责条款 | 版权声明 | 人才招聘 | 帮助中心

Copyright ◎ 2005-2006 Forexstar.com.cn . ALL rights resserved. 嘉瑞基外汇之星 版权所有 京ICP证050832号.