“Template:Information/doc”的版本间的差异

来自萌娘共享
跳转至: 导航搜索
第1行: 第1行:
== 語法描述==
+
== 参数==
<pre>{{Information
+
{| class="wikitable"
| Description = (摘要:必填,不填时会显示缺少说明)
+
|-
| Source = (来源:必填)
+
! 参数 !! 说明 !! 默认值 !! 是否
| Date = (日期:可以为空)
+
|-
| Author = (作者: 填,不填时会显示缺少作者信息)
+
| description<br/>Description<br/> <br/>A ||  文件的简介 || 无 || 是
| Permission = (版权:可以为空)
+
|-
| other_versions = (其他版本:可以为空)
+
| source<br/>Source<br/> 来源<br/>B ||  文件的来源 信息 || 无 || 是
}}</pre>
+
|-
==模板参数==
+
| date<br/>Date<br/> 日期<br/>C ||  文件的创建或者上传日期 || 无 || 是
<templatedata>
+
|-
{
+
| author<br/>Author<br/> 作者<br/>D ||  文件的作者 || 无 || 是
"description": "标 图片的摘要,来源,授权协议等信息。",
+
|-
"params": {
+
| permission<br/>Permission<br/> 许可<br/>E ||  文件的 授权 许可 || 无 || 否
"Description": {
+
|-
"aliases": [
+
| other_versions<br/>Other_Versions<br/>other versions<br/>Other Versions<br/> 其他版本<br/>F ||  文件的其他版本 || 无 || 否
"description,A"
+
|-
],
+
| Other_fields<br/>Other fields<br/>other fields<br/>其他领域||  文件 的其他信息(比如色彩,矢量图校验 效性),需要配合相关模板使用 || 无 || 否
"label": "文件描述",
+
|-
"description": " 文件的简介 。",
+
| Other_fields'''''<sub>i</sub>'''''<br/>Other fields'''''<sub>i</sub>'''''<br/>other fields'''''<sub>i</sub>'''''<br/> 其他 领域'''''<sub>i</sub>'''''||  文件的第i(i>0)个 其他 信息(比如色彩,矢量图校验有效性),需要配合相关模板 使用 且其他领域参数不能为空 || 无 || 否
"required": true,
+
|-
"example": "XX动画的BGM的音乐片段。",
+
|cellstyle||  标题单元格style || "background: lightgreen; text-align: right; vertical-align: middle;" || 否
"type": "string"
+
|}
},
 
"Source": {
 
"aliases": [
 
"source,B"
 
],
 
"label": "文件 来源",
 
"description": " 文件的来源 ,可以配合[[Template:Fwc]]等模板使用。",
 
"required": true,
 
"example": "自己的作品。",
 
"type": "string"
 
},
 
"Date": {
 
"aliases": [
 
"date,C"
 
],
 
"label": "文件 日期",
 
"description": " 文件的创建或者上传日期",
 
"example": "2016年10月25日",
 
"type": "date",
 
"suggested": true
 
},
 
"Author": {
 
"aliases": [
 
"author,D"
 
],
 
"label": "文件 作者",
 
"description": " 文件的作者 信息",
 
"example": "萌百娘",
 
"required": true,
 
"type": "string"
 
},
 
"Permission": {
 
"aliases": [
 
"permission,E"
 
],
 
"label": "文件 许可",
 
"description": " 文件的许可 信息,建议使用[[:Category:授权协议|Category:授权协议]]中的模板。",
 
"example": "CC BY-SA",
 
"type": "string",
 
"suggested": true
 
},
 
"other_versions": {
 
"aliases": [
 
"other versions,Other Versions,Other_Versions,F"
 
],
 
"label": " 其他版本",
 
"description": " 文件的其他版本 ,当 文件有其他 姊妹图或者 其他 格式版本时 使用 。",
 
"type": "string"
 
}
 
}
 
}
 
</templatedata>
 

2021年1月6日 (三) 12:09的版本

参数

参数 说明 默认值 是否必须
description
Description
说明
A
文件的简介
source
Source
来源
B
文件的来源信息
date
Date
日期
C
文件的创建或者上传日期
author
Author
作者
D
文件的作者
permission
Permission
许可
E
文件的授权许可
other_versions
Other_Versions
other versions
Other Versions
其他版本
F
文件的其他版本
Other_fields
Other fields
other fields
其他领域
文件的其他信息(比如色彩,矢量图校验有效性),需要配合相关模板使用
Other_fieldsi
Other fieldsi
other fieldsi
其他领域i
文件的第i(i>0)个其他信息(比如色彩,矢量图校验有效性),需要配合相关模板使用且其他领域参数不能为空
cellstyle 标题单元格style "background: lightgreen; text-align: right; vertical-align: middle;"