Jump to content

Template:Download

From SpinetiX Wiki

Template documentation

This template displays a distinctive text block, having a download icon on the left.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Filefile

The file name to download.

Example
Configuration_API.pdf
Filesuggested
Titletitle

Text written at the top with bigger font size.

Example
Configuration API Technical Documentation
Stringsuggested
Texttext

Text to be displayed with bold characters.

Stringoptional
Text 2text2

Text to be displayed with normal characters.

Stringoptional
Versionversion

The document version number. If file is present, then a revision history link is added.

Stringoptional
Datedate

The release date.

Dateoptional
CSS classclass

Additional CSS class.

Suggested values
big right left
Stringoptional
CSS stylecssStyle

Additional block styling provided as CSS code.

Example
width: 50%;
Stringoptional
floatfloat

Enter "right" or "left" to force the block to be floated on the right/left side of the page.

Stringdeprecated
multirowsmultirows

Enter a non-empty value (like multirows=yes) to alter the CSS code to accommodate multiple rows of text (useful especially when using both text and text2 parameters).

Stringdeprecated
widthwidth

Used to specify a certain width for the Download box, like width=50%.

Stringdeprecated

Examples

0. An example without parameters ({{Download}})is shown on top of the page.


1. With a custom text on one line:

{{Download|text=Download this resource ...}}
Download this resource ...


2. With a custom text on multiple lines and a custom width:

{{Download | cssStyle=width:50%; | class=big right | text=Download this resource ... | text2=Here is a long message, which is sufficiently wordy to run onto multiple lines and still being nicely aligned. Here is a long message, which is sufficiently wordy to run onto multiple lines and still being nicely aligned. }}
Download this resource ...
Here is a long message, which is sufficiently wordy to run onto multiple lines and still being nicely aligned. Here is a long message, which is sufficiently wordy to run onto multiple lines and still being nicely aligned.

3. For technical documentations:

{{Download  | class=big | file=Configuration_API.pdf | title=Configuration API Technical Documentation | version=5.0 | date=June 10, 2020 | text2=Applies to: [[HMP400]]/[[HMP400W|W]], [[HMP350]], [[HMP300]], [[DiVA]] }}
Version: 5.0 (revision history)
Release date: June 10, 2020
Applies to: HMP400/W, HMP350, HMP300, DiVA

See also

We use only essential cookies for site functionality.