Difference between revisions of "User:MogDog66/template:Random Image"

From Team Fortress Wiki
Jump to: navigation, search
(let's see if this works c:)
 
(Zis needs to appear a lot more)
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{font|}}}|{{#switch:{{#expr:(({{NUMBEROFEDITS:R}} mod 16) + {{{offset|0}}}) + 1}}
+
{{#switch:{{#expr:{{#time:U}} mod 23}}
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 13 | 11 | 15 | 16 | 18 | 19 | 20 | 21 | 22 = 000000
+
| 0 = File:Soldier marketing pose 2.png{{!}}280px{{!}}link=
| 8 | 12 | 10 | 14 | 17 = FFFFFF
+
| 1 = File:Chieftian's Challenge.png{{!}}330px{{!}}link=
}}|{{#switch:{{#expr:(({{NUMBEROFEDITS:R}} mod 16) + {{{offset|0}}}) + 1}}
+
| 2 = File:Stout Shako.png{{!}}330px{{!}}link=
| 1 = File:Chieftian's Challenge.png|325px|link=
+
| 3 = File:Soldier Exquisite Rack.png{{!}}330px{{!}}link=
| 2 = File:Stout Shako.png|325px|link=
+
| 4 = File:Soldiermedal.png{{!}}330px{{!}}link=
| 3 = File:Soldier Exquisite Rack.png|325px|link=
+
| 5 = File:Grenadiersoftcap.PNG{{!}}330px{{!}}link=
| 4 = File:Soldiermedal.png|325px|link=
+
| 6 = File:Kabuto.png{{!}}330px{{!}}link=
| 5 = File:Grenadiersoftcap.PNG|325px|link=
+
| 7 = File:Soldierviking2.png{{!}}330px{{!}}link=
| 6 = File:Kabuto.png|325px|link=
+
| 8 = File:Soldierwithhat.PNG{{!}}330px{{!}}link=
| 7 = File:SoldierSarge.png|325px|link=
+
| 9 = File:Class soldierred.png{{!}}330px{{!}}link=
| 8 = File:Soldierviking2.png|325px|link=
+
| 10 = File:FancyDressUniform.png{{!}}330px{{!}}link=
| 9 = File:Soldierwithhat.PNG|325px|link=
+
| 11 = File:LordCockswainsPithHelmetHatless.png{{!}}330px{{!}}link=
| 10 = File:User MogDog66 Body Image.png|325px|link=
+
| 12 = File:FancyDressUniform.png{{!}}330px{{!}}link=
| 11 = File:Chieftian's Challenge.png|325px|link=
+
| 13 = File:Soldier Team Captain.png{{!}}330px{{!}}link=
| 12 = File:Stout Shako.png|325px|link=
+
| 14 = File:Soldier marketing pose 3.png{{!}}330px{{!}}link=
| 13 = File:Soldier Exquisite Rack.png|325px|link=
+
| 15 = File:Soldier-Billhat.png{{!}}330px{{!}}link=
| 14 = File:Soldiermedal.png|325px|link=
+
| 16 = File:Soldier marketing pose 2.png{{!}}284px{{!}}link=
| 15 = File:Grenadiersoftcap.PNG|325px|link=
+
| 17 = File:JumpersJeepcap.png{{!}}355px{{!}}link=
| 16 = File:Kabuto.png|325px|link=
+
| 18 = File:Soldier Airborne.png{{!}}330px{{!}}link=
| 17 = File:SoldierSarge.png|325px|link=
+
| 19 = File:Demonation.png{{!}}280px{{!}}link=
| 18 = File:Soldierviking2.png|325px|link=
+
| 20 = File:User MogDog66 Magoo Soldier.png{{!}}325px{{!}}link=
| 19 = File:Soldierwithhat.PNG|325px|link=
+
| 21 = File:User MogDog66 Magoo Soldier.png{{!}}325px{{!}}link=
| 20 = File:User MogDog66 Body Image.png|325px|link=
+
| 22 = File:User MogDog66 Magoo Soldier.png{{!}}325px{{!}}link=
| 21 = File:Soldierwithhat.PNG|325px|link=
+
| 23 = File:User MogDog66 Magoo Soldier.png{{!}}325px{{!}}link=
| 22 = File:User MogDog66 Body Image.png|325px|link=
+
}}<noinclude>
}}}}
+
 
 +
{{doc begin}}
 +
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.
 +
 
 +
== 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 .
 +
::*<b>Example:</b> {{code|User:username/template:randomimage}}
 +
:*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>| 9 = [custom value]</code>
 +
::*<b>NOTE:</b> You cannot put a vertical bar (|) in the value you create, you must use the <code><nowiki>{{!}}</nowiki></code> template. The raw vertical bar interferes with the template's order recognition.
 +
:*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> {{code|<nowiki>{{#switch:{{#expr:{{#time:U}} mod 24}}</nowiki>}}
 +
</noinclude>

Latest revision as of 01:42, 2 February 2012

File:Class soldierred.png|330px|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
  • 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.
  • 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}}