Toggle menu
Toggle preferences menu
Toggle personal menu
Administrator Login Only
Access is restricted to site administrators.

Template:DownloadItem: Difference between revisions

Template page
初始化技术文档中心框架
 
English parameter names
 
(3 intermediate revisions by the same user not shown)
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">{{{type|FILE}}}</div>
<strong>{{{名称|未命名资料}}}</strong>
<div class="lcd-download-card__body">
<span>{{{说明|点击下载技术资料}}}</span>
<strong>{{{name|Unnamed Resource}}}</strong>
<small>版本 {{{版本|1.0}}} · {{{大小|大小见文件页}}}</small>
</div>
</div>
<div class="techdocs-download-card__action">[[Media:{{{文件}}}|下载]]</div>
<div class="lcd-download-card__action">[[Media:{{{file}}}|Download]]</div>
</div>
</div>
</includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
   "description": "展示一个可下载的技术资料附件。",
   "description": "Displays a downloadable technical resource attachment.",
   "params": {
   "params": {
     "类型": {"label": "资料类型", "type": "string", "example": "PDF"},
     "type": {"label": "Resource Type", "type": "string"},
     "名称": {"label": "显示名称", "type": "string", "required": true},
     "name": {"label": "Display Name", "type": "string", "required": true},
     "说明": {"label": "简短说明", "type": "string"},
     "file": {"label": "MediaWiki File Name", "type": "wiki-file-name", "required": true}
    "版本": {"label": "版本", "type": "string"},
    "大小": {"label": "文件大小", "type": "string"},
    "文件": {"label": "MediaWiki 文件名", "type": "wiki-file-name", "required": true}
   }
   }
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 23:54, 31 July 2026


Displays a downloadable technical resource attachment.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Resource Typetype

no description

Stringoptional
Display Namename

no description

Stringrequired
MediaWiki File Namefile

no description

Filerequired