Template:DownloadItem: Difference between revisions
Template page
More actions
Git release 5e4241dd8446 |
English parameter names |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="lcd-download-card"> | <div class="lcd-download-card"> | ||
<div class="lcd-download-card__type">{{{ | <div class="lcd-download-card__type">{{{type|FILE}}}</div> | ||
<div class="lcd-download-card__body"> | <div class="lcd-download-card__body"> | ||
<strong>{{{ | <strong>{{{name|Unnamed Resource}}}</strong> | ||
</div> | </div> | ||
<div class="lcd-download-card__action">[[Media:{{{ | <div class="lcd-download-card__action">[[Media:{{{file}}}|Download]]</div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
| Line 13: | Line 11: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Displays a downloadable technical resource attachment.", | ||
"params": { | "params": { | ||
" | "type": {"label": "Resource Type", "type": "string"}, | ||
" | "name": {"label": "Display Name", "type": "string", "required": true}, | ||
" | "file": {"label": "MediaWiki File Name", "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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Resource Type | type | no description | String | optional |
| Display Name | name | no description | String | required |
| MediaWiki File Name | file | no description | File | required |