yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Editing
Help:Random objects
From 2swagg wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__NOTOC__ {{Achtung|Do NOT use the server-side <choose uncached> tag.}} == Uncached == Uncached random text changes on every page refresh. All server-side uncached <font color=#14866D face=monospace><<b>choose</b>></font> tags have been replaced with with the client-side script shown below. <pre> mw.hook('wikipage.content').add(function ($content) { $content.find('.choose-uncached').each(function () { var $container = $(this); var $options = $container.find('.choose-option'); if ($options.length === 0) return; var index = Math.floor(Math.random() * $options.length); $options.eq(index).show(); }); }); </pre> === How to use === Copy this text and edit it. Make sure to put all of the <font color=#14866D face=monospace><<b>span</b>></font>s on one line. Add as many extra options as you want. <pre> <span class="choose-uncached" style="display:inline-block;height: 14px;"><span class="choose-option">text 1</span><span class="choose-option">text 2</span></span> </pre> == Cached == Cached random text only changes each time the page is saved, instead of it being on every reload. === How to use === Copy this text and edit it. Add as many extra options as you want. Unlike uncached text, you don't have to put everything on one line. <pre><choose> <option>text 1</option> <option>text 2</option> </choose></pre> {{2swaggWiki}}
Summary:
Please note that all contributions to 2swagg wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
2swagg wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:2swaggWiki
(
edit
)
Template:Achtung
(
edit
)
Template:Customtung
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Navbox
(
edit
)
Template:Swaggbox
(
edit
)
Template:Swaggbox/styles.css
(
edit
)
Template:WikiCancer/styles.css
(
edit
)
Module:Arguments
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:TableTools
(
edit
)
Navigation menu
Page actions
Help page
Discussion
Read
Edit source
History
Page actions
Help page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
janny
Noticeboard
Tools
What links here
Related changes
Special pages
Page information