Template:Main Page/Button: Difference between revisions
Template page
More actions
Created Template:Main Page/Button |
Added SyntaxHighlight and Template:Example |
||
| Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
< | <syntaxhighlight lang="wikitext" copy> | ||
{{Main Page/Button|icon = |link = |text = }} | {{Main Page/Button|icon = |link = |text = }} | ||
</ | </syntaxhighlight> | ||
* {{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== | ||
{{Example|<nowiki> | |||
{{ | |||
< | |||
<templatestyles src="Template:Main Page/styles.css" /> | <templatestyles src="Template:Main Page/styles.css" /> | ||
<div class="mp-button-wrapper" style="margin-top:8px;"> | <div class="mp-button-wrapper" style="margin-top:8px;"> | ||
| Line 25: | Line 22: | ||
{{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> | ||
</nowiki>}} | |||
==Template Data== | ==Template Data== | ||