Template:Download
Template documentation
This template displays a distinctive text block, having a download icon on the left.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File | file | The file name to download.
| File | suggested |
| Title | title | Text written at the top with bigger font size.
| String | suggested |
| Text | text | Text to be displayed with bold characters. | String | optional |
| Text 2 | text2 | Text to be displayed with normal characters. | String | optional |
| Version | version | The document version number. If file is present, then a revision history link is added. | String | optional |
| Date | date | The release date. | Date | optional |
| CSS class | class | Additional CSS class.
| String | optional |
| CSS style | cssStyle | Additional block styling provided as CSS code.
| String | optional |
| float | float | Enter "right" or "left" to force the block to be floated on the right/left side of the page. | String | deprecated |
| multirows | 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). | String | deprecated |
| width | width | Used to specify a certain width for the Download box, like width=50%. | String | deprecated |
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 ...}}
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. }}
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]] }}
See also
- {{Note}}
- {{Notes}}
- {{InfoNote}}
- {{Warning}}
- {{WarningNote}}
- {{Info}}
- {{TechnicalNote}}
- {{Color}}