“Template:Information field”的版本间的差异

来自萌娘共享
跳转至: 导航搜索
 
第15行: 第15行:
 
--></td>
 
--></td>
 
</tr><noinclude></table>
 
</tr><noinclude></table>
 
+
{{documentation}}[[Category:模板用模板]]
{{documentation}}
 
 
</noinclude>
 
</noinclude>

2021年1月15日 (五) 17:01的最新版本

{{{name}}}{{{value}}}
Template-info.svg 模板文档  [查看] [编辑] [历史] [刷新]

简介

本模板用于为{{information}}系列模板追加其他领域的各类信息。

参数

参数 说明 默认值 是否必须
name
Name
1
信息的标题
value
Value
2
信息的内容
class name参数所在的单元格中的class参数
单元格源代码:<td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>
style name参数所在的单元格中的style参数
单元格源代码:<td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>
id name参数所在的单元格中的id参数
单元格源代码:<td style="{{{style|}}}" class="fileinfo-paramfield {{{class|}}}" id="{{{id|}}}">{{{name}}}</td>
classvalue value参数所在的单元格中的class参数
单元格源代码:<td><span class="{{{classvalue|}}}">{{{value}}}</span></td>
stylevalue value参数所在的单元格中的style参数
单元格源代码:<td style="{{{stylevalue|}}}" >{{{value}}}</td>

范例

一般用法

{{Information
|description=作品名称
|source=作品来源
|date=作品日期
|author=作者
|permission=许可
|other versions=其他版本
|other fields={{Information field|其他领域|值}}
|other fields1={{Information field|其他领域1|值1}}
|other fields2={{Information field|其他领域2|值2}}
|other fields3={{Information field|其他领域3|值3}}
}}
说明 作品名称
来源 作品来源
日期 作品日期
作者 作者
许可 许可
其他版本 其他版本
其他领域
其他领域1值1
其他领域2值2
其他领域3值3

多条单参

{{Information
|description=作品名称
|source=作品来源
|date=作品日期
|author=作者
|permission=许可
|other versions=其他版本
|other fields={{Information field|其他领域|值}}
{{Information field|其他领域1|值1}}
{{Information field|其他领域2|值2}}
{{Information field|其他领域3|值3}}
}}
说明 作品名称
来源 作品来源
日期 作品日期
作者 作者
许可 许可
其他版本 其他版本
其他领域
其他领域1值1
其他领域2值2
其他领域3值3

改变样式

{{Information
|description=作品名称
|source=作品来源
|date=作品日期
|author=作者
|permission=许可
|other versions=其他版本
|other fields={{Information field|style=background:#ccf|stylevalue=color:red;font-weight: bold;|其他领域|值}}
}}
说明 作品名称
来源 作品来源
日期 作品日期
作者 作者
许可 许可
其他版本 其他版本
其他领域