Template:Main Page/Button

Revision as of 15:03, 2 May 2026 by Stevium (talk | contribs) (Added SyntaxHighlight and Template:Example)
Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses CSS found at Template:Main Page/styles.css.

Template that creates buttons for {{Main Page}}.

Syntax

{{Main Page/Button|icon = |link = |text = }}
  • icon – Icon for the button. Available icons:
    • Discord, Facebook, HoYoLAB, HoYoverse, Instagram, Reddit, TikTok, X, YouTube
  • link – External link of the button.
  • text – Text of the external link. Default: icon.

Example

<templatestyles src="Template:Main Page/styles.css" />
<div class="mp-button-wrapper" style="margin-top:8px;">
{{Main Page/Button|icon = HoYoverse|link = https://planet.hoyoverse.com|text = Official Website}}
{{Main Page/Button|icon = HoYoLAB|link = https://www.hoyolab.com/circles/10/100002/official|text = Official HoYoLAB}}
</div>

Template Data

Template that creates buttons for the Main Page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Iconicon

Icon for the button. See documentation for list of available icons.

Example
HoYoverse
Stringrequired
Linklink

External link of the button.

Example
https://planet.hoyoverse.com
Stringrequired
Texttext

Text of the external link.

Default
<icon>
Example
Official Website
Stringsuggested