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

来自萌娘共享
跳转至: 导航搜索
参数
多条单参
 
(未显示同一用户的2个中间版本)
第4行: 第4行:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! 参数 (每行任选一个) !! 说明 !! 默认值 !! 是否必须
+
! 参数 !! 说明 !! 默认值 !! 是否必须
 
|-
 
|-
 
| name<br/>{{Another parameter‎‎|Name}}<br/>{{Another parameter‎‎|1}} || -{zh-hans:信息;zh-hant:資訊}-的标题  || 无 || 是
 
| name<br/>{{Another parameter‎‎|Name}}<br/>{{Another parameter‎‎|1}} || -{zh-hans:信息;zh-hant:資訊}-的标题  || 无 || 是
第22行: 第22行:
  
 
==范例==
 
==范例==
 +
===一般用法===
 
<pre>
 
<pre>
 
{{Information
 
{{Information
第47行: 第48行:
 
|other fields2={{Information field|其他领域2|值2}}
 
|other fields2={{Information field|其他领域2|值2}}
 
|other fields3={{Information field|其他领域3|值3}}
 
|other fields3={{Information field|其他领域3|值3}}
 +
}}
 +
===多条单参===
 +
<pre>
 +
{{Information
 +
|description=作品名称
 +
|source=作品来源
 +
|date=作品日期
 +
|author=作者
 +
|permission=许可
 +
|other versions=其他版本
 +
|other fields={{Information field|其他领域|值}}
 +
{{Information field|其他领域1|值1}}
 +
{{Information field|其他领域2|值2}}
 +
{{Information field|其他领域3|值3}}
 +
}}
 +
</pre>
 +
{{Information
 +
|description=作品名称
 +
|source=作品来源
 +
|date=作品日期
 +
|author=作者
 +
|permission=许可
 +
|other versions=其他版本
 +
|other fields={{Information field|其他领域|值}}
 +
{{Information field|其他领域1|值1}}
 +
{{Information field|其他领域2|值2}}
 +
{{Information field|其他领域3|值3}}
 +
}}
 +
===改变样式===
 +
<pre>
 +
{{Information
 +
|description=作品名称
 +
|source=作品来源
 +
|date=作品日期
 +
|author=作者
 +
|permission=许可
 +
|other versions=其他版本
 +
|other fields={{Information field|style=background:#ccf|stylevalue=color:red;font-weight: bold;|其他领域|值}}
 +
}}
 +
</pre>
 +
{{Information
 +
|description=作品名称
 +
|source=作品来源
 +
|date=作品日期
 +
|author=作者
 +
|permission=许可
 +
|other versions=其他版本
 +
|other fields={{Information field|style=background:#ccf|stylevalue=color:red;font-weight: bold;|其他领域|值}}
 
}}
 
}}

2021年1月15日 (五) 16:54的最新版本

简介

本模板用于为{{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;|其他领域|值}}
}}
说明 作品名称
来源 作品来源
日期 作品日期
作者 作者
许可 许可
其他版本 其他版本
其他领域