Editing Template:Main Page/Highlight
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div class="mp-section mp-highlight"><!-- | --><div class="mp-section mp-highlight"><!-- | ||
--><div class="mp-highlight-image">[[File:{{{image| | --><div class="mp-highlight-image">[[File:{{{image|}}}|640px|link=|alt=]]</div><!-- | ||
--><div class="mp-highlight-top"><!-- | --><div class="mp-highlight-top"><!-- | ||
--><div class="mp-highlight-title"><h3 class="mp-title">{{{title|}}}</h3></div><!-- | --><div class="mp-highlight-title"><h3 class="mp-title">{{{title|}}}</h3></div><!-- | ||
| Line 12: | Line 12: | ||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
{{Main Page/Highlight | {{Main Page/Highlight | ||
|image = | |image = | ||
| Line 20: | Line 20: | ||
|tag_text = | |tag_text = | ||
}} | }} | ||
</ | </pre> | ||
* {{F|image}} – Destination filename ( | * {{F|image}} – Destination filename (including the file extension). | ||
* {{F|title}} – Title of the highlight card. | * {{F|title}} – Title of the highlight card. | ||
* {{F|link}} – Link of the highlight card. | * {{F|link}} – Link of the highlight card. | ||
* {{F|tag}} – Type of tag that will be displayed on the highlight card. Default: {{F|Update}} | * {{F|tag}} – Type of tag that will be displayed on the highlight card. Default: {{F|Update}} | ||
* {{F|tag_text}} – Text displayed in the tag on the highlight card. Default: {{F|tag|v=1}} | * {{F|tag_text}} – Text displayed in the tag on the highlight card. Default: {{F|tag|v=1}} | ||
==Example== | ==Example== | ||
{{ | <pre> | ||
{{Main Page/Highlight | |||
|image = Stardrift Test Splashscreen.png | |||
|title = Stardrift Test | |||
|link = Version/Stardrift Test | |||
|tag_text = Beta | |||
}} | |||
{{Main Page/Highlight | |||
|image = Coziness Test Splashscreen.png | |||
|title = Coziness Test | |||
|link = Version/Coziness Test | |||
|tag_text = Beta | |||
}} | |||
</pre> | |||
<templatestyles src="Template:Main Page/styles.css" /> | |||
<div class="mp-highlight-wrapper"> | <div class="mp-highlight-wrapper"> | ||
{{Main Page/Highlight | {{Main Page/Highlight | ||
|image = Stardrift Test Splashscreen | |image = Stardrift Test Splashscreen.png | ||
|title = Stardrift Test | |title = Stardrift Test | ||
|link = Version/Stardrift Test | |link = Version/Stardrift Test | ||
| Line 38: | Line 51: | ||
}} | }} | ||
{{Main Page/Highlight | {{Main Page/Highlight | ||
|image = Coziness Test Splashscreen | |image = Coziness Test Splashscreen.png | ||
|title = Coziness Test | |title = Coziness Test | ||
|link = Version/Coziness Test | |link = Version/Coziness Test | ||
| Line 44: | Line 57: | ||
}} | }} | ||
</div> | </div> | ||
==Template Data== | ==Template Data== | ||
| Line 52: | Line 64: | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": "Destination filename ( | "description": "Destination filename (including the extension).", | ||
"example": "Coziness Test Splashscreen", | "example": "Coziness Test Splashscreen.png", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
}, | }, | ||
"title": { | "title": { | ||
| Line 89: | Line 95: | ||
"description": "Link of the highlight card.", | "description": "Link of the highlight card.", | ||
"example": "Version/Coziness Test", | "example": "Version/Coziness Test", | ||
"type": " | "type": "string", | ||
"required": true | "required": true | ||
} | } | ||
| Line 96: | Line 102: | ||
"paramOrder": [ | "paramOrder": [ | ||
"image", | "image", | ||
"title", | "title", | ||
"link", | "link", | ||
| Line 102: | Line 107: | ||
"tag_text" | "tag_text" | ||
], | ], | ||
"format": " | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
}}</noinclude> | }}</noinclude> | ||