User:Assasin Joe/c:
Table of Contents:[edit]
Image Workshop[edit]
The Image template
[[Image:Image.jpg|300px|thumb|right|An Image]]
Windows Simulator
code
<imagemap>
Image:NonFreeImageRemoved.svg|right|1100
rect 219 124 382 166 [[w:User:Assasin Joe/c:/Desktop|Desktop]]
rect 433 124 594 166 [[w:User:Assasin Joe/c:/Favorites|Favorites]]
rect 219 179 382 230 [[w:User:Assasin Joe/c:/Shared_Documents|Shared Documents]]
rect 433 179 594 230 [[w:User:Assasin Joe/Start|Start Menu]]
rect 772 6 793 26 [[w:User:Assasin Joe]]
rect 28 280 176 298 [[w:User:Assasin Joe/Network|My Network]]
rect 26 242 169 261 [[w:User:Assasin Joe/c:/Shared_Documents|Shared Documents]]
rect 5 53 86 91 [[w:User:Assasin Joe]]
rect 136 54 167 88 [[w:User:Assasin Joe]]
rect 171 55 241 91 [http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=&go=Go]
desc none
</imagemap>
Linking
code
[[File:Example.jpg|link=http://wikipedia.org|caption]]
Signature Workshop[edit]
Signature types
~~~
produces
⊕Assasin Joe talk
This signature has the user defined signature, but does not have time and date.
~~~~
, the more common signature, produces
⊕Assasin Joe talk 22:59, 4 May 2009 (UTC)
This signature has the user defined signature and has time and date in UTC
~~~~~
produces
22:59, 4 May 2009 (UTC)
This signature has the time and date in UTC, but not the user defined signature.
Scripts workshop[edit]
More detailed guides at Userscript guide. Library of userscripts at the Script library
Userscripts are javascript code that can be customized. By default Monobook.js, the user-customized javascript, it is compilied into the main common.js along with neccesary wikipedia scripts. By editing the monobook.js, you can change the wikipedia interface.
Editing monobook
I tend to despise fake "you have new messages" bars that are just plain jokes to fool user. They are "frown[ed] upon [by] simulating the MediaWiki interface, and it should be avoided except when necessary for testing purposes" (WP:UP). To know if this is fake or not, insert the following into your monobook.js:
.usermessage {background-color: #669933;}
Interface links
The interface links, such as toolbox, interaction, serach, navigation, personal toolbar, ect. Can be edited through the p- classes.
p-logo | p-personal name my talk my preferences … |
p-cacptions article discussion edit this page … | |
p-navigation p-search p-tb p-lang |
The "p-" classes are called portlets, adn can be edited as follows, when adding the following to your monobook.js
//Example: add the link into «toolbox» portlet
addPortletLink ('p-tb', '/wiki/Special:MyPage/monobook.js', 'My monobook.js');
Or, you can add somthing to your search bar, as follows.
//Example: add link to «search» protlet
addPortletLink ('p-search', '/wiki/Special:Search', 'Advanced Search');
Editing Workshop[edit]
Table
{| class="wikitable" border="1"
|+ caption
! heading !! heading
|-
| cell || cell
|-
| cell || cell
|}
heading | heading |
---|---|
cell | cell |
cell | cell |
Variables
Mainspace
Display Site name:{{SITENAME}}
ex:
Wikipedia
Display time last edit was made:{{REVISIONMONTH}} {{REVISIONDAY}},{{REVISIONYEAR}}
ex:
12 10,2022
Display user who last edited the page: {{REVISIONUSER}}
ex:
Terasail
Display memory (in bytes) 30
ex when using {{PAGESIZE:User:Assasin Joe/c:}}:
9,635
Display Page name:{{PAGENAME}}
ex:
Assasin Joe/c:
Display users who can do a certian action on the page placed on (sysop, autoconfirmed user, ect.) {{PROTECTIONLEVEL:action}}
ex when using "move" action: (note: outputs empty screen if no protection)
Time
Display Day name:{{CURRENTDAYNAME}}
ex:
Friday
{{CURRENTDAY}}, ex with number:
31
{{CURRENTDOW}}, ex with day of the week:
5
Display Current Time:{{CURRENTTIME}}
ex:
04:20
{{CURRENTHOUR}}, ex with only hour:
04
Display time stamp:{{CURRENTTIMESTAMP}} (timestamp is Year + Month + day + Hour + minute + second, in YYYYMMDDHHmmss format)
20240531042005
Display Current Year:{{CURRENTYEAR}}
ex:
2024
Display Current Month:{{CURRENTMONTHNAME}}
ex:
May
{{CURRENTMONTH}}, ex with number:
05
{{CURRENTMONTHABBREV}}, ex with abbreviation:
May
Display current week:{{CURRENTWEEK}}
22
Statistics
Display Number of wikipages: {{NUMBEROFPAGES}}
60,783,733
Display number of pages in mainspace:{{NUMBEROFARTICLES}}
6,829,505
Display number of files uploaded:{{NUMBEROFFILES}}
918,046
Display number of page edits:{{NUMBEROFEDITS}}
1,221,767,268
Display number of registered users:{{NUMBEROFUSERS}}
47,477,442
Display number of users in the sysop group:{{NUMBEROFADMINS}}
859
Display number of active users:{{NUMBEROFACTIVEUSERS}}
120,065
Display number of users in a specific group{{NUMBERINGROUP:Founder}}
1
<- Jimbo Wales!
Misc
Display gender of user! {{gender:username
|return text if user is male
|return text if user is female
|return text if user hasn't defined their gender}}
ex: (code:{{gender:Special:Mypage|You are a male!|You are a female!|You are a undefined!}}
You are a undefined!
Table Of Contents
The table of contents helps a reader navigate an aritcle. The table of contents can be placed in different places. for example,
__NOTOC__ Hides the table of contents,
__FORCETOC__ Makes the Table of contents appear at the top as normal, and
__TOC__ places the Table of contents where "__TOC__" is placed.