More actions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<templatestyles src="Template:ExternalFileDownload/styles.css"/> | <templatestyles src="Template:ExternalFileDownload/styles.css"/> | ||
[//fswiki.xpmodder.com/externalFiles/{{urlencode:{{{1|404.html}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all | <span class="ui-button-container">[//fswiki.xpmodder.com/externalFiles/{{urlencode:{{{1|404.html}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all | ||
{{{class|}}}" role="button" aria-disabled="false"><span class="ui-button-text"><i class="fa-solid fa-download"></i> {{{1|No file specified!}}}</span></span>]</span></includeonly> | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
Test: {{ExternalFileDownload|Spline-Road-Toolkit v2.0.zip | Test: {{ExternalFileDownload|Spline-Road-Toolkit v2.0.zip}} | ||
===Template Data=== | |||
<templatedata>{ | |||
"description": "Creates a download button for the given file, assuming the file is stored at fswiki.xpmodder.com/externalFiles", | |||
"params": { | |||
"1": { | |||
"label": "Filename", | |||
"description": "Name of the file to download including file ending", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"class": { | |||
"description": "Optional css class to apply to button", | |||
"type": "string" | |||
} | |||
}, | |||
"format": "inline", | |||
"paramOrder": [ | |||
"1", | |||
"class" | |||
] | |||
}</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 14:12, 25 January 2025
Test:
Template Data
Creates a download button for the given file, assuming the file is stored at fswiki.xpmodder.com/externalFiles
Parameter | Description | Type | Status | |
---|---|---|---|---|
Filename | 1 | Name of the file to download including file ending | String | required |
class | class | Optional css class to apply to button | String | optional |