「Template:Information field/doc」修訂間的差異

出自 萌娘共享
前往: 導覽搜尋
范例
范例
行 32: 行 32:
 
|other fields1={{Information field|其他领域1|值1}}
 
|other fields1={{Information field|其他领域1|值1}}
 
|other fields2={{Information field|其他领域2|值2}}
 
|other fields2={{Information field|其他领域2|值2}}
 +
|other fields3={{Information field|其他领域3|值3}}
 
}}
 
}}
 
</pre>
 
</pre>
行 44: 行 45:
 
|other fields1={{Information field|其他领域1|值1}}
 
|other fields1={{Information field|其他领域1|值1}}
 
|other fields2={{Information field|其他领域2|值2}}
 
|other fields2={{Information field|其他领域2|值2}}
 +
|other fields3={{Information field|其他领域3|值3}}
 
}}
 
}}

於 2021年1月7日 (四) 08:52 的修訂

簡介

本模板用於為{{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