Difference between revisions of "User:K-Mac/Template:Random userbox"
(Ty mogdogg) |
|||
Line 12: | Line 12: | ||
| 8 = {{User Saharan Spy}} | | 8 = {{User Saharan Spy}} | ||
| 9 = {{User Primeval Warrior}} | | 9 = {{User Primeval Warrior}} | ||
− | | 10 = {{ | + | | 10 = {{Userbox |
+ | |border-c = #2d339d | ||
+ | |border-s = 1 | ||
+ | |id-c = #cf2225 | ||
+ | |id-s = 8 | ||
+ | |id-fc = #aa2225 | ||
+ | |info-c = #2d339d | ||
+ | |info-s = 7.5 | ||
+ | |info-fc = white | ||
+ | |id = [[File:Freelance Police Badge.png|40px]] | ||
+ | |info = This user is a Police Officer (yes in real life). | ||
+ | }} | ||
}}}}<noinclude> | }}}}<noinclude> | ||
Revision as of 07:08, 30 March 2011
This user owns Bill's Hat. |
Documentation for K-Mac/Template:Random userbox
This template is a shortened and modified version of Template:Random skin colour
If you have any further questions about this template, feel free to ask me by posting on my talk page, or by asking me on the IRC channel.
Function
- This template uses the number of edits on the page to select a number, which in turn designates the value assigned to the number.
Conversion
To use this template for yourself you must do the following:
- Create the proper directory under your userpage .
- Example:
User:username/template/randomimage
- Example:
- Fill out the list of values with your desired list. If there are more than 10, simply add more.
- Example:
| 11 = [custom value]
- Example:
- Change both
mod 10
's to use the proper number of values you used.
- Example:
{{#if:{{{font|}}}|{{#switch:{{#expr:(({{NUMBEROFEDITS:R}} mod 8) + {{{offset|0}}}) + 1}}
- Note:The above example uses 8, yours may be anything.The important part to note has been put in bold and underline. Additionally, this example only uses the first
mod 10
example, the same rules must be applied to the second as well
- Example:
- Delete (or add) any extra values that have changed.
- Example:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 = 000000 | 8 = FFFFFF
- Note: The above example is formatted is there were only 8 values, yours must be changed according to your number of values