User:♫Green♫/Wiki Code Guide: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
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{{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)}}
*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">&nbsp; &nbsp;</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!


579.png 094.png 609.png 576.png 429.png
My Page! Talk to Me! My Edits! Sandbox! Wiki Code!


This is a page specifically to help users with Wiki Code.

User Namespace

Stats

  • 33

A number of current administrators is {{NUMBEROFADMINS}}.

  • 366,013

A number of users is {{NUMBEROFUSERS}}.

  • 53,852

A number of articles is {{NUMBEROFARTICLES}}.

  • 517

The number of active users is {{NUMBEROFACTIVEUSERS}}.

  • 0

A number of users in abuse is {{NUMBERINGROUP:abuse}}.

Time Templates

  • 05:57

The current time would be {{CURRENTTIME}}.

  • Friday

The current day is {{CURRENTDAYNAME}}.

  • December

The current month it {{CURRENTMONTHNAME}}.

  • 20

The current date is {{CURRENTDAY}}.

  • 2024

The year is {{CURRENTYEAR}}.

Cool

18 December 2024

     06:15 User creation log User account RamonO27045151 talk contribs was created ‎

This template adds the last edit(s) on Bulbapedia {{Special:Recentchanges/1}}. The number at the end can be substituted with any number up to 500.

This leads to a random page on Bulbapedia {{Special:Random}}. You may change the random preference by adding a /User, /Shipping/, or /Appendix at the end, for {{Special:Random/User}}, {{Special:Random/Shipping}}, and {{Special:Random/Appendix}}.

This is a list of the recent articles on Bulbanews, {{:Current events}}.

Color

Color can be inserted to make things look bright and attractive! For a list of colors with their wiki code numbers, see List of colors. Note that the code used is under the Hex-triplet column!

Color switch can be used to switch the colors of things, #{{#switch: {{#expr: {{#time: U}} mod 6}}|0=FFCCCC|1=8674A8|2=2E2ED4|3=CEDE48|4=F99CB8|5=FF7777}}. You can add any color you want. The "mod" number must correspond to the number of colors, hence the highest number + 1, for 0.

User Tags

  • {{User Template|Opening text|Link|Ending text.|Image|special|Type color 1|Type color 2|Type color 3}}

Self explanatory text in the template itself. For a guide to usertags, see Bulbapedia:Usertags. For a list of usertags, see Category:User tags.

Random

  • __NOTOC__/__TOC__

__NOTOC__ is used when you don't want a table of contents on a certain page. __TOC__ is used when you want the table of contents, but you want it in a certain place.

  • Random Pokémon

An image that switches, {{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)}}.

  • Switching Words

Similarly to color switch, except the color hex-triplet is replaced with desired words, {{#switch: {{#expr: {{#time: U}} mod 2}}|0=Word Switch|1=Switching Words|2=Words that switch}}.

  • __NOEDITSECTION__

This is used to remove the small blue "edit" links on the side of pages, __NOEDITSECTION__.

  • <small> and <big>

<small> makes the size of text decrease and <big> to increase the text size. To undo these, </small> and </big> will work.

Talk Namespace

Other user's pages

  • Subst:

Subst: is used to take all the contents of a page and put into onto another (i.e.Subst:Welcome).

  • {{subst:Welcome}}

This is used to welcome new users. Type {{subst:Welcome}}, and the standard welcome template will appear!

  • {{subst:Unsigned|User Name}}

When a user doesn't sign their comments, just add {{subst:Unsigned|User Name}}, which will appear as - unsigned comment from GreenGyarados (talkcontribs) .

  • Warning Templates

Warning templates are used when a user has broken one of the binding rules of Bulbapedia. For more information, see Category:Warning templates.

Signatures

  • <s>/</s>

These are used to slash through text, like this. Can be used in signatures.

  • <sup>, </sup>

Sup causes text to appear like this. Can be used in signatures.

Main Namespace

  • Image Size

130.png 130.png 130.png To change the size of the image, [[Image|Numberpx]] will work, for example, [[File:130.png|100px]].

  • Image Words

Gyarados! If you mouse over the Gyarados, notice that the text box will say "Gyarados!". To achieve this, [[File:130.png|Gyarados!]].

  • <nowiki>, </nowiki>

As used many times in this subpage, this template ignores wiki-code formatting inside the template. <nowiki>~~~</nowiki> instead of ♫Green♫ギャラドス♫Talk♫.