Difference between revisions of "User:K-Mac/Template:Random userbox"
(Ty mogdogg) |
(Let us test) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{#switch:{{#expr:{{#time:U}} mod 10}} | |
− | | | + | | 0 = User:K-Mac/User Officer |
− | + | | 1 = User Lumbricus Lid | |
− | + | | 2 = User IRC regular | |
− | | 1 = | + | | 3 = User Bill Hat |
− | | 2 = | + | | 4 = User Fire |
− | | 3 = | + | | 5 = User Highlander Participant |
− | | 4 = | + | | 6 = User Credit to Wiki |
− | | 5 = | + | | 7 = User Medieval Medic |
− | | 6 = | + | | 8 = User Saharan Spy |
− | | 7 = | + | | 9 = User Primeval Warrior |
− | | 8 = | + | }}<noinclude> |
− | | 9 = | ||
− | |||
− | |||
{{doc begin}} | {{doc begin}} | ||
− | This template is a | + | This template is a simple switching template, that can be adapted for almost any use. |
If you have any further questions about this template, feel free to ask me by posting on my [[User_talk:MogDog66|talk]] page, or by asking me on the [[Team_Fortress_Wiki:IRC|IRC]] channel. | If you have any further questions about this template, feel free to ask me by posting on my [[User_talk:MogDog66|talk]] page, or by asking me on the [[Team_Fortress_Wiki:IRC|IRC]] channel. | ||
== Function == | == Function == | ||
− | *This template uses the | + | *This template uses the current time to select an item from the provided list. |
== Conversion == | == Conversion == | ||
To use this template for yourself you must do the following: | To use this template for yourself you must do the following: | ||
:*Create the proper directory under your userpage . | :*Create the proper directory under your userpage . | ||
− | ::*<b>Example:</b> {{code|User:username/template | + | ::*<b>Example:</b> {{code|User:username/template:randomimage}} |
− | :*Fill out the list of values with your desired list. If | + | :*Fill out the list of values with your desired list. If you need to add more are more simply add them. |
− | ::*<b>Example:</b> <code>| | + | ::*<b>Example:</b> <code>| 9 = [custom value]</code> |
− | :*Change | + | :*Change the {{code|mod X}} (where X is the given number of items in the list) to use the proper number of values you used. |
− | ::*<b>Example:</b> | + | ::*<b>Example:</b> {{code|<nowiki>{{#switch:{{#expr:{{#time:U}} mod 24}}</nowiki>}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 02:55, 7 October 2011
User IRC regular
Documentation for K-Mac/Template:Random userbox
This template is a simple switching template, that can be adapted for almost any use.
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 current time to select an item from the provided list.
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 you need to add more are more simply add them.
- Example:
| 9 = [custom value]
- Example:
- Change the
mod X
(where X is the given number of items in the list) to use the proper number of values you used.
- Example:
{{#switch:{{#expr:{{#time:U}} mod 24}}
- Example: