Difference between revisions of "User:MogDog66/template:Random Image"
(Holy moley that was a large image) |
|||
Line 19: | Line 19: | ||
| 17 = File:JumpersJeepcap.png{{!}}355px{{!}}link= | | 17 = File:JumpersJeepcap.png{{!}}355px{{!}}link= | ||
| 18 = File:Soldier Airborne.png{{!}}330px{{!}}link= | | 18 = File:Soldier Airborne.png{{!}}330px{{!}}link= | ||
− | | 19 = File:Demonation.png{{!}} | + | | 19 = File:Demonation.png{{!}}280px{{!}}link= |
}}<noinclude> | }}<noinclude> | ||
Revision as of 02:34, 18 January 2012
File:Soldier marketing pose 2.png|284px|link=
Documentation for MogDog66/template:Random Image
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]
- NOTE: You cannot put a vertical bar (|) in the value you create, you must use the
{{!}}
template. The raw vertical bar interferes with the template's order recognition.
- 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: