The text label for the button.
The CSS class for the button's icon (e.g., "globe", "radar").
A function to be called when the button is clicked.
Where to place the button in the top bar: "left" or "right".
The created button element (HTMLDivElement) or null if a required container element is not found.
Adds a button to the top bar of the NationStates interface, detecting the correct theme and position.
The top bar is the horizontal bar at the very top of the page (inside
div#banner
). Buttons can be anchored to the left or right of the central spacer element.