Editing Template:Main Page/Button
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 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
{{Main Page/Button|icon = |link = |text = }} | {{Main Page/Button|icon = |link = |text = }} | ||
</ | </pre> | ||
* {{F|icon}} – Icon for the button. Available icons: | * {{F|icon}} – Icon for the button. Available icons: | ||
** {{F|Discord}}, {{F|Facebook}}, {{F|HoYoLAB}}, {{F|HoYoverse}}, {{F|Instagram}}, {{F|Reddit}}, {{F|TikTok}}, {{F|X}}, {{F|YouTube}} | ** {{F|Discord}}, {{F|Facebook}}, {{F|HoYoLAB}}, {{F|HoYoverse}}, {{F|Instagram}}, {{F|Reddit}}, {{F|TikTok}}, {{F|X}}, {{F|YouTube}} | ||
| Line 16: | Line 16: | ||
==Example== | ==Example== | ||
{{ | <pre> | ||
<div class="mp-button-wrapper"> | {{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}} | |||
</pre> | |||
<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 = 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}} | {{Main Page/Button|icon = HoYoLAB|link = https://www.hoyolab.com/circles/10/100002/official|text = Official HoYoLAB}} | ||
</div> | </div> | ||
==Template Data== | ==Template Data== | ||
| Line 38: | Line 41: | ||
"description": "External link of the button.", | "description": "External link of the button.", | ||
"example": "https://planet.hoyoverse.com", | "example": "https://planet.hoyoverse.com", | ||
"type": " | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
| Line 59: | Line 62: | ||
} | } | ||
</templatedata> | </templatedata> | ||
}}</noinclude> | }}</noinclude> | ||