Template:TextButton: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<noinclude>
== Usage Guide ==
<pre style="display: inline-block; background: none; background-color: #000; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Courier New', monospace;">
{{TextButton
|link=Bactrian        <!-- The link the button should navigate to -->
|text=HELLO WORLD    <!-- Optional: The text displayed on the button (default is empty) -->
|scale=250px          <!-- Optional: The scale of the background image (default is empty) -->
|fontsize=38px        <!-- Optional: The font size of the text (default is 38px) -->
}}
</pre>
== Description ==
Creates a button similar to in-game menu buttons for interactive use.
== Preview ==
</noinclude>
<div style="position: relative; text-align: center; display: inline-block;">
<div style="position: relative; text-align: center; display: inline-block;">
[[File:Button_background.png|link={{{link}}}|frameless|{{{scale|}}}]]
[[File:Button_background.png|link={{{link}}}|frameless|{{{scale|}}}]]

Latest revision as of 20:59, 17 November 2023

Usage Guide

{{TextButton
|link=Bactrian        <!-- The link the button should navigate to -->
|text=HELLO WORLD     <!-- Optional: The text displayed on the button (default is empty) -->
|scale=250px          <!-- Optional: The scale of the background image (default is empty) -->
|fontsize=38px        <!-- Optional: The font size of the text (default is 38px) -->
}}

Description

Creates a button similar to in-game menu buttons for interactive use.

Preview

Button background.png

[[{{{link}}}|{{{text}}}]]