Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ExternalFileDownload: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions 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>&nbsp;&nbsp;{{{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>&nbsp;&nbsp;{{{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:   Spline-Road-Toolkit v2.0.zip

Template Data

Creates a download button for the given file, assuming the file is stored at fswiki.xpmodder.com/externalFiles

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Filename1

Name of the file to download including file ending

Stringrequired
classclass

Optional css class to apply to button

Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.