Toggle menu
1
18
1
210
技术文档中心
Toggle preferences menu
Toggle personal menu
Administrator Login Only
Access is restricted to site administrators.

Template:下载项: Difference between revisions

Template page
初始化技术文档中心框架
 
Git release 5e4241dd8446
 
Line 1: Line 1:
<div class="techdocs-download-card">
<includeonly>
<div class="techdocs-download-card__type">{{{类型|FILE}}}</div>
<div class="lcd-download-card">
<div class="techdocs-download-card__body">
<div class="lcd-download-card__type">{{{类型|FILE}}}</div>
<div class="lcd-download-card__body">
<strong>{{{名称|未命名资料}}}</strong>
<strong>{{{名称|未命名资料}}}</strong>
<span>{{{说明|点击下载技术资料}}}</span>
<span>{{{说明|点击下载技术资料}}}</span>
<small>版本 {{{版本|1.0}}} · {{{大小|大小见文件页}}}</small>
<small>版本 {{{版本|1.0}}}</small>
</div>
</div>
<div class="techdocs-download-card__action">[[Media:{{{文件}}}|下载]]</div>
<div class="lcd-download-card__action">[[Media:{{{文件}}}|下载]]</div>
</div>
</div>
</includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 13: Line 15:
   "description": "展示一个可下载的技术资料附件。",
   "description": "展示一个可下载的技术资料附件。",
   "params": {
   "params": {
     "类型": {"label": "资料类型", "type": "string", "example": "PDF"},
     "类型": {"label": "资料类型", "type": "string"},
     "名称": {"label": "显示名称", "type": "string", "required": true},
     "名称": {"label": "显示名称", "type": "string", "required": true},
     "说明": {"label": "简短说明", "type": "string"},
     "说明": {"label": "简短说明", "type": "string"},
     "版本": {"label": "版本", "type": "string"},
     "版本": {"label": "版本", "type": "string"},
    "大小": {"label": "文件大小", "type": "string"},
     "文件": {"label": "MediaWiki 文件名", "type": "wiki-file-name", "required": true}
     "文件": {"label": "MediaWiki 文件名", "type": "wiki-file-name", "required": true}
   }
   }

Latest revision as of 22:35, 25 July 2026


展示一个可下载的技术资料附件。

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
资料类型类型

no description

Stringoptional
显示名称名称

no description

Stringrequired
简短说明说明

no description

Stringoptional
版本版本

no description

Stringoptional
MediaWiki 文件名文件

no description

Filerequired