SimpleButton: Difference between revisions
From Project Rebearth
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<templatestyles src="SimpleButton/styles.css" /> | <templatestyles src="SimpleButton/styles.css" /> | ||
{{SimpleButton|Example Button|link=Main Page}} | {{SimpleButton|Example Button|link=Main Page}} | ||
{{SimpleButton|With Icon|link=Main Page|icon= | {{SimpleButton|With Icon|link=Main Page|icon=Resources.png}} | ||
== Usage == | == Usage == | ||
Revision as of 18:18, 9 February 2026
Usage
{{SimpleButton|Button Text|link=Page Name}}
{{SimpleButton|Button Text|link=Page Name|icon=Resources.png}}
Parameters
1- The text displayed on the button.
link- The wiki page the button links to.
icon- (Optional) Filename of an image to display as an icon to the left of the button text.
Examples
{{SimpleButton|Explore Buildings|link=Buildings}}
{{SimpleButton|Resources|link=Resources|icon=Resources.png}}
Result