More actions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<templatestyles src="Template:ExternalFileDownload/styles.css"/> | <templatestyles src="Template:ExternalFileDownload/styles.css"/> | ||
<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 | <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> | {{{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=== | ===Template Data=== | ||
<templatedata>{ | <templatedata>{ | ||
"description": " | "description": "Creates a download button for the given file, assuming the file is stored at fswiki.xpmodder.com/externalFiles", | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
Line 16: | Line 14: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"class": { | |||
"description": "Optional css class to apply to button", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
"format": "inline", | "format": "inline", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1", | ||
"class" | |||
] | ] | ||
}</templatedata> | }</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 |