More actions
No edit summary |
No edit summary |
||
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}} |
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 |