Template
Card2
From Dogcraft Wiki
Card template (dogcraft.net styled)
This is an interface template for creating a link card in the style of the main dogcraft.net website. Please check the template parameters before use!
Examples
Template data
Note: The image-height parameter uses a CSS hack, check implementation comments.
A lightweight link card in the style of the main dogcraft.net website
Parameter | Description | Type | Status | |
---|---|---|---|---|
File | file | The name of the image to be displayed
| File | required |
Link | link | Target page
| Page name | required |
Title | title | The text to be displayed
| String | suggested |
Width | width | Card width
| String | optional |
Trigger: Overflow | overflow | Decides whether the title can wrap to multiple lines
| Boolean | optional |
Trigger: Cover | cover | Decides whether the image covers the entire available area (useful for screenshots) or remains in the center (useful for icons)
| Boolean | optional |
Image height (requires cover mode) | image-height | Sets the height of the image, in pixels (only has effect on cover mode!)
| Number | optional |