User:MogDog66/template:Random Image

From Team Fortress Wiki
< User:MogDog66
Revision as of 08:10, 20 March 2011 by MogDog66 (talk | contribs) (Added documentation, just in case someone stumbles upon this and wants to use it)
Jump to: navigation, search

File:Kabuto.png

Documentation for MogDog66/template:Random Image

This template is a shortened and modified version of Template:Random skin colour

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
  • Fill out the list of values with your desired list. If there are more than 10, simply add more.
  • Example: | 11 = [custom value]
  • Change mod 10 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. Additionally, the important part to note has been put in bold and underline