Template:Main Page/Highlight: Difference between revisions
Appearance
mNo edit summary |
SteviumBot (talk | contribs) mNo edit summary |
||
| Line 30: | Line 30: | ||
==Example== | ==Example== | ||
{{Example|<nowiki> | {{Example|<nowiki> | ||
<div class="mp-highlight-wrapper"> | <div class="mp-highlight-wrapper"> | ||
{{Main Page/Highlight | {{Main Page/Highlight | ||
| Line 106: | Line 105: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<templatestyles src="Template:Main Page/styles.css" /> | |||
}}</noinclude> | }}</noinclude> | ||
Revision as of 19:47, 4 May 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Usage |
This template uses CSS found at Template:Main Page/styles.css.
Template that creates highlight cards for {{Main Page}}.
Syntax
{{Main Page/Highlight
|image =
|title =
|link =
|tag =
|tag_text =
}}
- image – Destination filename (excluding the file extension).
- ext – Extension for filename. Default: png.
- title – Title of the highlight card.
- link – Link of the highlight card.
- tag – Type of tag that will be displayed on the highlight card. Default: Update.
- tag_text – Text displayed in the tag on the highlight card. Default: tag.
Example
<div class="mp-highlight-wrapper">
{{Main Page/Highlight
|image = Stardrift Test Splashscreen
|title = Stardrift Test
|link = Version/Stardrift Test
|tag_text = Beta
}}
{{Main Page/Highlight
|image = Coziness Test Splashscreen
|title = Coziness Test
|link = Version/Coziness Test
|tag_text = Beta
}}
</div>
Template Data
Template that creates highlight cards for the Main Page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | Destination filename (excluding the extension).
| File | required |
| Extension | ext | Extension for filename.
| String | optional |
| Title | title | Title of the highlight card.
| String | required |
| Link | link | Link of the highlight card.
| Page name | required |
| Tag | tag | Type of tag that will be displayed on the highlight card.
| String | suggested |
| Tag text | tag_text | Text displayed in the tag on the highlight card.
| String | optional |