Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Example output  





3 Notes  














Template:Ubxdisplay/random







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Ubxdisplay
(Redirected from Template:Ubxrand)

{{ {{{1}}} }}

ubxrand · [[Template:{{{1}}}|view ubx]] · random ubx

This template uses {{Ubxdisplay}} to display a random userbox from a given selection.

{{Ubxdisplay/random | User en | User:Foo/userbox}}

The template can accept up to 32 parameters. If you use 2, 4, 8, 16, 24, or 32 userboxen you do not need to specify a number. Otherwise use |num=X, where X is the number of boxes in the selection pool. You can also provide |nt=yes to suppress the "ubxrand · view ubx · random ubx" line.

Templates that require parameters (such as {{User Wikipedian For}}) are currently unsupported. A workaround is to create a user subpage that calls the template with the necessary parameters. You should also probably avoid using categorizing userboxen as your userpage categories would then be constantly changing. A workaround is to hard-code the categories.

Example output[edit]

{{Ubxdisplay/random|User:Xenocidic/Stormy|User:Xenocidic/Pirate|User:Xenocidic/Escher|User:Xenocidic/Loathing}} will render:

This user really enjoys dark and stormy nights.

ubxrand · view ubx · random ubx

You may also use "Ubxrand" for short -

{{Ubxrand|num=3|nt=yes
|1=User:Xenocidic/Stormy
|2=User:Xenocidic/Pirate
|3=User:Xenocidic/Escher
}}
This user really enjoys dark and stormy nights.


Default template shell with 32 parameters

{{Ubxdisplay/random
|1= User:Xenocidic/Stormy
|2= ...
|3=
|4=
|5=
|6=
|7=
|8=
|9=
|10=
|11=
|12=
|13=
|14=
|15=
|16=
|17=
|18=
|19=
|20=
|21=
|22=
|23=
|24=
|25=
|26=
|27=
|28=
|29=
|30=
|31=
|32= 
}}

Notes[edit]

Randomization algorithm was shamelessly lifted from MZMcBride's user page.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Ubxdisplay/random&oldid=941752479"

Categories: 
Userbox arrangement templates
User namespace templates
 



This page was last edited on 20 February 2020, at 13:14 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki