Template:LoadingbarLink/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:LoadingbarLink. It contains usage information, categories, and other content that is not part of the original template page. |
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
orcontent
(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 thecontent
parameter to transclude content. - The template uses embedded CSS and works best when JavaScript is enabled.