Template:Download

From SpinetiX Support Wiki

Jump to: navigation, search

Template documentation

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

It accepts the following parameters:

  • file
    The file name to download.
  • title
    Text written at the top with bigger font size.
  • text
    Text to be displayed with bold characters.
  • text2
    Text to be displayed with normal characters.
  • version
    The document version number. If file is present, then a revision history link is added.
  • date
    The release date.
  • class
    Additional CSS class.
  • cssStyle
    Additional block styling provided as CSS code.

Deprecated parameters:

  • float
    Enter "right" or "left" to force the block to be floated on the right/left side of the page. Use class=right instead.
  • multirows
    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). Use class=big instead.
  • width
    used to specify a certain width for the Download box, like width=50%. Use cssStyle=width: 50%; instead.

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
This page was last modified on 12 August 2020, at 15:35.