User:♫Green♫/Wiki Code Guide: Difference between revisions
m (Mediawiki has a built-in function for padding numbers.) |
m (subst:) |
||
Line 54: | Line 54: | ||
*'''<nowiki>__NOTOC__/__TOC__</nowiki>''' | *'''<nowiki>__NOTOC__/__TOC__</nowiki>''' | ||
'''<nowiki>__NOTOC__</nowiki>''' is used when you don't want a table of contents on a certain page. '''<nowiki>__TOC__</nowiki>''' is used when you want the table of contents, but you want it in a certain place. | '''<nowiki>__NOTOC__</nowiki>''' is used when you don't want a table of contents on a certain page. '''<nowiki>__TOC__</nowiki>''' is used when you want the table of contents, but you want it in a certain place. | ||
*Random Pokémon{ | *Random Pokémon | ||
An image that switches, '''<nowiki>{{Imagelink|{{padleft:{{#expr: {{#time: U}} mod 493 + 1}}}}.png|80px|80px|{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}}}|{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}|3}} (Pokémon)}}</nowiki>'''. | {|style="background:transparent" | ||
|- | |||
|<div style="position: relative; width: 80px; height: 80px; overflow:hidden"><div style="position: absolute; font-size: 80px; overflow: hidden; line-height: 80px; letter-spacing: 80px">[[{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}|3}} (Pokémon)|<span title="{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}}}" style="text-decoration: none"> </span>]]</div>[[Image:{{padleft:{{#expr: {{#time: U}} mod 493 + 1}}}}.png|80px]]</div> | |||
|} | |||
An image that switches, '''<nowiki>{{subst:Imagelink|{{padleft:{{#expr: {{#time: U}} mod 493 + 1}}}}.png|80px|80px|{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}}}|{{Num2N|{{#expr: {{#time: U}} mod 493 + 1}}|3}} (Pokémon)}}</nowiki>'''. | |||
*'''{{#switch: {{#expr: {{#time: U}} mod 2}}|0=Word Switch|1=Switching Words|2=Words that switch}}''' | *'''{{#switch: {{#expr: {{#time: U}} mod 2}}|0=Word Switch|1=Switching Words|2=Words that switch}}''' | ||
Similarly to color switch, except the color hex-triplet is replaced with desired words, '''<nowiki>{{#switch: {{#expr: {{#time: U}} mod 2}}|0=Word Switch|1=Switching Words|2=Words that switch}}</nowiki>'''. | Similarly to color switch, except the color hex-triplet is replaced with desired words, '''<nowiki>{{#switch: {{#expr: {{#time: U}} mod 2}}|0=Word Switch|1=Switching Words|2=Words that switch}}</nowiki>'''. |
Latest revision as of 10:34, 22 October 2011
Welcome to my Userspace!
|