User:Theki/utilbox
Appearance
UtilBox is a JavaScript object. It contains some functions that make a box in the bottom right corner containing pages to visit quickly. You can add your own options to it, and more functionality will be added in the coming future.
Item structure
[edit]Field name | Description | Type | Required | Example |
---|---|---|---|---|
icon | A Material Icon representing the option | string |
Yes | edit_note
|
name | The text for the link | string |
Yes | Sandbox
|
id | The HTML id for the element | string |
No | utilbox-footer
|
The following are fields that control what should happen when the link is clicked. You must have at least one of them in any given item and they are sorted by precedence (top one has more priority over lower ones, so using multiple will result in only the highest one in the list being used).
Field name | Description | Type | Required | Example |
---|---|---|---|---|
link | Where the link points to on English Wikipedia as a relative URL. | string |
Depends | User:Theki/sandbox
|
absolute_link | The absolute URL, if the link is outside of English Wikipedia. | string |
Depends | http://example.com
|