Template:LoadingbarLink/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Purpose

Displays a loading bar with a delay before showing either a link or custom content.

Usage

{{LoadingbarLink
| message = Please wait...
| duration = 10
| type = link
| 1 = Special:Random
| linktext = Go to a random page
}}

Parameters

message
Text above the loading bar (default: Loading... Please wait)
duration
Number of seconds before content appears (default: 30)
type
Either link or content (default: link)
1
Link target when type = link (default: Special:RandomPage)
linktext
Text for the link (default: Continue)
content
The HTML/text to show when type = content

Examples

Link example

{{LoadingbarLink
| message = Loading a surprise link...
| duration = 5
| 1 = Special:RecentChanges
| linktext = See what’s new
}}

Content example

{{LoadingbarLink
| type = content
| message = Loading content...
| duration = 5
| content = <div style="color: green;">🎉 Surprise! Here's the hidden content.</div>
}}

Notes

  • You can use PageName inside the content parameter to transclude content.
  • The template uses embedded CSS and works best when JavaScript is enabled.