Template:Main Page/Highlight: Difference between revisions

Added SyntaxHighlight and Template:Example
m Changed template data format
 
(2 intermediate revisions by 2 users not shown)
Line 30: Line 30:
==Example==
==Example==
{{Example|<nowiki>
{{Example|<nowiki>
<templatestyles src="Template:Main Page/styles.css" />
<div class="mp-highlight-wrapper">
<div class="mp-highlight-wrapper">
{{Main Page/Highlight
{{Main Page/Highlight
Line 90: Line 89:
"description": "Link of the highlight card.",
"description": "Link of the highlight card.",
"example": "Version/Coziness Test",
"example": "Version/Coziness Test",
"type": "string",
"type": "wiki-page-name",
"required": true
"required": true
}
}
Line 103: Line 102:
"tag_text"
"tag_text"
],
],
"format": "block"
"format": "{{_\n|_______________ = _\n}}\n"
}
}
</templatedata>
</templatedata>
 
<templatestyles src="Template:Main Page/styles.css" />
}}</noinclude>
}}</noinclude>