Template:Main Page/Highlight: Difference between revisions

Created Template:Main Page/Highlight
 
Added ext parameter
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|}}}|640px|link=|alt=]]</div><!--
   --><div class="mp-highlight-image">[[File:{{{image|}}}.{{{ext|png}}}|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 21: Line 21:
}}
}}
</pre>
</pre>
* {{F|image}} &ndash; Destination filename (including the file extension).
* {{F|image}} &ndash; Destination filename ('''excluding''' the file extension).
* {{F|ext}} &ndash; Extension for filename. Default: {{F|png}}.
* {{F|title}} &ndash; Title of the highlight card.
* {{F|title}} &ndash; Title of the highlight card.
* {{F|link}} &ndash; Link of the highlight card.
* {{F|link}} &ndash; Link of the highlight card.
* {{F|tag}} &ndash; Type of tag that will be displayed on the highlight card. Default: {{F|Update}}
* {{F|tag}} &ndash; Type of tag that will be displayed on the highlight card. Default: {{F|Update}}.
* {{F|tag_text}} &ndash; Text displayed in the tag on the highlight card. Default: {{F|tag|v=1}}
* {{F|tag_text}} &ndash; Text displayed in the tag on the highlight card. Default: {{F|tag|v=1}}.


==Example==
==Example==
<pre>
<pre>
{{Main Page/Highlight
{{Main Page/Highlight
|image = Stardrift Test Splashscreen.png
|image = Stardrift Test Splashscreen
|title = Stardrift Test
|title = Stardrift Test
|link  = Version/Stardrift Test
|link  = Version/Stardrift Test
Line 36: Line 37:
}}
}}
{{Main Page/Highlight
{{Main Page/Highlight
|image = Coziness Test Splashscreen.png
|image = Coziness Test Splashscreen
|title = Coziness Test
|title = Coziness Test
|link  = Version/Coziness Test
|link  = Version/Coziness Test
Line 45: Line 46:
<div class="mp-highlight-wrapper">
<div class="mp-highlight-wrapper">
{{Main Page/Highlight
{{Main Page/Highlight
|image = Stardrift Test Splashscreen.png
|image = Stardrift Test Splashscreen
|title = Stardrift Test
|title = Stardrift Test
|link  = Version/Stardrift Test
|link  = Version/Stardrift Test
Line 51: Line 52:
}}
}}
{{Main Page/Highlight
{{Main Page/Highlight
|image = Coziness Test Splashscreen.png
|image = Coziness Test Splashscreen
|title = Coziness Test
|title = Coziness Test
|link  = Version/Coziness Test
|link  = Version/Coziness Test
Line 64: Line 65:
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "Destination filename (including the extension).",
"description": "Destination filename (excluding the extension).",
"example": "Coziness Test Splashscreen.png",
"example": "Coziness Test Splashscreen",
"type": "wiki-file-name",
"type": "wiki-file-name",
"required": true
"required": true
},
"ext": {
"label": "Extension",
"description": "Extension for filename.",
"default": "png",
"type": "string"
},
},
"title": {
"title": {
Line 102: Line 109:
"paramOrder": [
"paramOrder": [
"image",
"image",
"ext",
"title",
"title",
"link",
"link",