你現在正在訪問的是萌娘百科用於保存和管理圖片、音頻等媒體文件的子項目萌娘共享,想要回到萌娘百科,請使用瀏覽器上的返回按鈕、或點擊這裡
「Template:Information field」修訂間的差異
行 8: | 行 8: | ||
=== Right side: value field === | === Right side: value field === | ||
--><td style="{{{stylevalue|}}}" ><!-- | --><td style="{{{stylevalue|}}}" ><!-- | ||
− | --> | + | -->{{#if:{{{stylevalue|}}}{{{classvalue|}}}{{{style|}}}{{{class|}}}{{{id|}}}|[[Category:Information field template with formatting]]}}<!-- |
-->{{#if:{{{classvalue|}}}<!-- | -->{{#if:{{{classvalue|}}}<!-- | ||
-->|<span class="{{{classvalue|}}}"> {{{value|{{{Value|{{{2|<noinclude>{{{value}}}</noinclude>}}}}}}}}}</span><!-- | -->|<span class="{{{classvalue|}}}"> {{{value|{{{Value|{{{2|<noinclude>{{{value}}}</noinclude>}}}}}}}}}</span><!-- | ||
行 16: | 行 16: | ||
</tr><noinclude></table> | </tr><noinclude></table> | ||
− | {{documentation}} | + | {{documentation}} |
</noinclude> | </noinclude> |
於 2021年1月12日 (二) 15:15 的修訂
{{{name}}} | {{{value}}} |
簡介
本模板用於為{{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;|其他领域|值}} }}
說明 | 作品名稱 |
---|---|
來源 | 作品來源 |
日期 | 作品日期 |
作者 | 作者 |
許可 | 許可 |
其他版本 | 其他版本 |
其他領域 | 值 |