你现在正在访问的是萌娘百科用于保存和管理图片、音频等媒体文件的子项目萌娘共享,想要回到萌娘百科,请使用浏览器上的返回按钮、或点击这里
“Template:Information”的版本间的差异
(将Wikitable改为HTML Table,并将other_fields增加到最大100项) |
|||
第1行: | 第1行: | ||
− | + | <div class="mw-parser-output"><table cellpadding="3" class="toccolours" width="100%"> | |
− | ! id="fileinfotpl_desc" style="background: lightgreen; text-align: right; vertical-align: middle;" width="15%" | + | |
− | + | <!-- Description --> | |
− | {{#if:{{{A|{{{Description|{{{description|}}}}}}}}}|{{{A|{{{Description|{{{description|}}}}}}}}}|{{Description missing}}}} | + | <tr style="vertical-align: top"> |
− | + | <th id="fileinfotpl_desc" style="background: lightgreen; text-align: right; vertical-align: middle;" width="15%"> 说明</th> | |
− | + | <td>{{#if:{{{A|{{{Description|{{{description|{{{说明|{{{説明|}}}}}}}}}}}}}}}|{{{A|{{{Description|{{{description|{{{说明|{{{説明|}}}}}}}}}}}}}}}|{{Description missing}}}}</td> | |
− | + | </tr> | |
− | {{#if:{{{B|{{{Source|{{{source|}}}}}}}}}|{{{B|{{{Source|{{{source|}}}}}}}}}|{{Source missing}}}} | + | |
− | + | <!-- Source --> | |
− | + | <tr style="vertical-align: top"> | |
− | + | <th style="background: lightgreen; text-align: right; vertical-align: middle;" id="fileinfotpl_src"> 来源</th> | |
− | + | <td>{{#if:{{{B|{{{Source|{{{source|{{{来源|{{{來源|}}}}}}}}}}}}}}}|{{{B|{{{Source|{{{source|{{{来源|{{{來源|}}}}}}}}}}}}}}}|{{Source missing}}}}</td> | |
− | + | </tr> | |
− | + | ||
− | {{#if:{{{D|{{{Author|{{{author|}}}}}}}}}|{{{D|{{{Author|{{{author}}}}}}}}}|{{Author missing}}}} | + | <!-- Date --> |
− | + | <tr style="vertical-align: top"> | |
− | {{#switch: {{{E|{{{Permission|{{{permission|}}}}}}}}} | + | <th style="background: lightgreen; text-align: right; vertical-align: middle; white-space: nowrap" id="fileinfotpl_date"> 日期 |
+ | </th> | ||
+ | <td>{{ISOdate|{{{C|{{{Date|{{{date|{{{日期|}}}}}}}}}}}}}}</td> | ||
+ | </tr> | ||
+ | |||
+ | <!-- Author --> | ||
+ | <tr style="vertical-align: top"> | ||
+ | <th style="background: lightgreen; text-align: right; vertical-align: middle;" id="fileinfotpl_aut"> 作者</th> | ||
+ | <td>{{#if:{{{D|{{{Author|{{{author|{{{作者|}}}}}}}}}}}}|{{{D|{{{Author|{{{author|{{{作者|}}}}}}}}}}}}|{{Author missing}}}}</td> | ||
+ | </tr> | ||
+ | |||
+ | <!-- Permission --> | ||
+ | {{#switch: {{{E|{{{Permission|{{{permission|{{{许可|{{{許可|}}}}}}}}}}}}}}} | ||
+ | | =<nowiki/> | ||
+ | | - =<nowiki/> | ||
+ | |none =<nowiki/> | ||
+ | |#default = <nowiki/> | ||
+ | <tr style="vertical-align: top"> | ||
+ | <th style="background: lightgreen; text-align: right; vertical-align: middle;" id="fileinfotpl_perm">许可</th> | ||
+ | <td>{{{E|{{{Permission|{{{permission|{{{许可|{{{許可|}}}}}}}}}}}}}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | <!-- Other versions --> | ||
+ | {{#switch: {{{F|{{{other_versions|{{{Other_Versions|{{{Other Versions|{{{other versions|{{{其他版本|}}}}}}}}}}}}}}}}}} | ||
| = | | = | ||
| - = | | - = | ||
|none = | |none = | ||
| #default = <nowiki/> | | #default = <nowiki/> | ||
− | + | <tr style="vertical-align: top"> | |
− | + | <th style="background: lightgreen; text-align: right; vertical-align: middle;" id="fileinfotpl_ver">其他版本</th> | |
− | {{{ | + | <td>{{{F|{{{other_versions|{{{Other_Versions|{{{Other Versions|{{{other versions|{{{其他版本|}}}}}}}}}}}}}}}}}}</td> |
− | | | + | </tr>}} |
− | {{# | + | |
− | | | + | <!-- Other fields --> |
− | | | + | {{{other_fields|{{{Other_fields|{{{Other fields|{{{other fields|{{{ 其他领域|{{{其他領域|}}}}}}}}} }}} }}} }}} |
− | | | + | |
− | | # | + | <!-- Other fields #i --> |
− | + | {{#vardefine:i|1}}{{#vardefine:first_fields|0}} | |
− | {{ | + | {{#if:{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|{{{其他领域|{{{ 其他領域|}}}}}}}}} }}} }}} }}}|{{#vardefine:first|1}}}} |
− | {{{ | + | {{#if:{{{other_fields|{{{Other_fields|{{{other fields|{{{Other fields|{{{其他领域|{{{其他領域|}}}}}}}}} }}} }}} }}}|{{#vardefine:first_fields|1}}}} |
− | {{{other_fields|{{{Other_fields|{{{ | + | {{#while:|{{#ifexpr:{{#if:{{{other_fields{{#var:i}}|{{{Other_fields{{#var:i}}|{{{Other fields{{#var:i}}|{{{other fields{{#var:i}}|{{{ 其他领域{{#var:i}}|{{{ 其他領域{{#var:i}}|}}}}}}}}} }}} }}} }}}|1|0}} and {{#var:first_fields}}|true}}|{{{other_fields{{#var:i}}|{{{Other_fields{{#var:i}}|{{{Other fields{{#var:i}}|{{{other fields{{#var:i}}|{{{其他领域{{#var:i}}|{{{其他領域{{#var:i}}|}}}}}}}}} }}} }}} }}} {{#vardefine: i|{{ #expr: {{ #var: i }} + 1 }}}} }} |
− | {{ | + | |
+ | </table><noinclude>{{Documentation}}</noinclude> |
2020年12月22日 (二) 17:03的版本
说明 | |
---|---|
来源 | |
日期 | |
作者 |
简介
本模板用于列出文件的详细信息。
参数
参数 | 说明 | 默认值 | 是否必须 |
---|---|---|---|
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 fields 其他领域 |
文件的其他信息(比如色彩,矢量图校验有效性),需要配合相关模板使用 | 无 | 否 |
Other_fieldsi other fieldsi Other fieldsi other fieldsi 其他领域i |
文件的第i(i>0)个其他信息(比如色彩,矢量图校验有效性),需要配合相关模板使用且其他领域参数不能为空 | 无 | 否 |
cellstyle | 标题单元格style | 无 | 否 |
用例
自己的作品
{{Information |Description=范例印章 |Source=自己的作品 |Date=2021年1月9日 |Author=[[user:Ikemen|Ikemen]]<!--可以配合{{Zhmoegirllink}}链接到主站用户页--> |Permission=CC BY-SA}}
说明 | 范例印章 |
---|---|
来源 | 自己的作品 |
日期 | 2021年1月9日 |
作者 | Ikemen |
许可 | CC BY-SA |
改编的作品
{{Information |Description=Origin游戏平台的Logo |Source=[https://www.origin.com/hkg/zh-tw/ Origin官网] |Date=2020年6月15日 |Author={{AutVec|[[zhmoe:美国艺电|美国艺电]]|v=[[zhmoe:User:Xzonn|Xzonn]]}} }}
说明 | Origin游戏平台的Logo |
---|---|
来源 | Origin官网 |
日期 | 2020年6月15日 |
作者 | 原作者: 美国艺电矢量化: Xzonn |
来自维基共享的文件
{{Information |Description=A symbol for list-class articles. |Source={{fwc}} |Date=2008-05-03 |Author= {{wikiuser|en|Mysid}} |Permission= |other_versions= }}
说明 | A symbol for list-class articles. |
---|---|
来源 | 维基共享 |
日期 | 2008-05-03 |
作者 | Mysid |
来自P站的文件
{{Information |Description=博丽灵梦 |Source={{pixivlink|14547395|博麗の巫女さん|ja}} |Date=2010年11月13日 |Author={{pixivauthor|1593245|tucana}} |Permission= |Other_versions= }}
说明 | 博丽灵梦 |
---|---|
来源 | 博麗の巫女さん, Pixiv |
日期 | 2010年11月13日 |
作者 | tucana |
来自其他网站的文件
{{Information |Description =打叉 |Source =[https://openclipart.org/detail/16982/cross Cross] |Author =[https://openclipart.org/artist/jean_victor_balin jean_victor_balin] |Date =2008-05-26 |Permission = |other_versions= }}
说明 | 打叉 |
---|---|
来源 | Cross |
日期 | 2008-05-26 |
作者 | jean_victor_balin |
注意
- 本模板可能未必适合所有文件,比如作者难以查证的文件,在作者缺失的情况下,该模板会为页面添加作者:未知分类。
- 本模板是可选项,不是必要项,用于补充信息,如果认为文件信息已经完善则可以考虑不填写。