Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Main Page/Button: Difference between revisions

Template page
Created Template:Main Page/Button
 
Added SyntaxHighlight and Template:Example
Line 7: Line 7:


==Syntax==
==Syntax==
<pre>
<syntaxhighlight lang="wikitext" copy>
{{Main Page/Button|icon = |link = |text = }}
{{Main Page/Button|icon = |link = |text = }}
</pre>
</syntaxhighlight>
* {{F|icon}} &ndash; Icon for the button. Available icons:
* {{F|icon}} &ndash; 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>
{{Example|<nowiki>
{{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" />
<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==