Jump to content

Wikipedia:Tip of the day/March

From Wikipedia, the free encyclopedia
How to plant a CategoryTree!

The CategoryTree is a MediaWiki extension that provides a dynamic view: you can change how much you see of a category's structure as a tree. You can use it to show a category and its subcategories by putting the category name between category tree tags like this:
<categorytree> Trees in religion </categorytree>

The result is a category tree like the one shown to the right. Click on the triangles to expand and collapse the tree.

Test-drive your edits in a sandbox

Your sandbox is a place for you to experiment with wikicode, to keep notes, to draft sections to add to articles, or for any other purpose that helps build the encyclopedia. Although your sandbox will usually be left alone by other editors, you do not have 100% control. It can't be used to host copyright violations or personal attacks on people, for example.

Have you ever added an example image to a page, only to have it removed and receive a warning? Here's a solution. If you want to test some unfamiliar wiki-markup, or practice image placement, head to the Sandbox, where you can test to your heart's delight (or you can create your own sandbox for more demanding tests). Or open your own sandbox by clicking on "Sandbox" on your user menu at the top of the screen.

Bonus tip: you can have as many sandboxes as you like, but only one gets displayed at the top of the page. To get to the others easily, you could list their links on your sandbox page, using it as a menu of sandboxes.


Become clairvoyant with Navigation Popups

Here's how to install a nifty little program called Navigation Popups, that lets you peer into Wikipedia articles when you hover the mouse cursor over internal links:

For this to work, make sure you have not disabled javascript in your browser. By the way, Navigation Popups is recursive: it works on links that appear in its popups.

Read more:
Supercharge your browser

There are a number of ways to improve your web browser to make it a more effective Wikipedia tool:

As you can see, tools are implemented in a number of ways. There are tools available for many different purposes, and with many different functions, and some that are multipurpose. Many of these are explained at Wikipedia:Tools/Browser tools, which includes a list of tools, for each major browser.

How to create a link to another article

Click on "Edit" at the top of an article. Then place double square brackets around the topic you want to link to.

For example: [[pear]]

produces the link pear

For the plural write this: [[pear]]s

which will look like this: pears

If you want to create a link to a section of an article (for example "Cultivation" of the "pear" article) place an internal hyperlink "Pear#Cultivation" separated by a vertical bar ( "|" ).

For example: [[Pear#Cultivation|cultivation of pears]]
which will look like this:

cultivation of pears
Read more:
Links
Use the Article Wizard to easily create new articles

The Wikipedia Article Wizard helps you submit a new article to Wikipedia in six easy steps.

Important: you need to have a user account to use the Wizard. If you don't have one you can

Read more:
Please fill in edit summaries

Just below the edit box in the Wikipedia text editor is the edit summary field. Please summarize each of your edits! They are displayed in an article's history to make it easier for other editors to know what you did to an article.

Do you keep forgetting to fill in the edit summary box before saving your edits? To have Wikipedia remember for you, go to your Preferences, select the "Editing" tab, and check the option box, "Prompt me when entering a blank edit summary". With this option set, Wikipedia will remind you to create an edit summary if you forget.

How to get a list of a page's subpages

Subpages are pages that have a parent page. They share their parent page's title, followed by a "/" (slash), followed by their own name. The Wikipedia, Portal, and User namespaces allow subpages. WikiProjects, user pages and Portals often have subpages. Below are two options to obtain a list of subpages for a particular page.

* Option 1: In the left toolbar, under tools, select Page Information and an information page is shown. In the first table, there is a link for Subpages of this page.

* Option 2: Click on Special pages in the toolbox menu on the left side of your screen. Then click on All pages with prefix which is under the header Lists of pages. Then select the namespace the page is in (from the pulldown menu), and enter the pagename in the inbox, and add a forward slash (/) to the end of the pagename. So if the pagename is "Wikipedia", then you should enter Wikipedia/ in the inbox. Then press the Show button. The subpages are displayed at the bottom. If nothing happens after pressing "Show", this means the page has no subpages.

Try it now:
Becoming an Administrator

Administrators, commonly known as admins or sysops (system operators), are Wikipedia editors who have been granted the technical ability to perform certain special actions on the English Wikipedia, including the ability to block and unblock user accounts and IP addresses from editing, edit fully protected pages, protect and unprotect pages from editing, delete and undelete pages, rename pages without restriction, and use certain other tools.

They are never required to use their tools, and must never use them to gain an advantage in a dispute in which they are involved.

Admins are selected by the Wikipedia community at Wikipedia:Requests for adminship through an often grueling review process. Go there if you would like to nominate someone to be an admin (including yourself).

Read more:
Where to post requests
How to make links look the way you want

A piped link is a link that is labeled differently from the name of the page it links to, using the vertical bar ( "|" ) character (AKA: the pipe).

For example, to change the appearance of the link to the article "Orange (colour)", try this:

[[Orange (colour)|{{color|orange|the color orange}}]]

will show: the color orange

Read more:
Please sign your name on talk pages

It is proper "Wikiquette" (WI-kee-ket) to sign your messages on talk pages. This prevents readers from confusing your posts with messages by other users.

To sign a message, move the cursor to the end of the message, and then with your mouse click on the signature icon () in the toolbar at the top of the edit box. This inserts the signature code (~~~~) where the cursor is. When you save the page, these tilde characters are converted to your signature followed by a date stamp.

You can also type this code in manually with the four tilde characters ~+~+~+~.

To sign without a date stamp, use three tildes ~~~ ~+~+~ instead.
To sign only the date stamp, use five tildes ~~~~~ ~+~+~+~+~.
Are you lost?

If you can not find the answer to a research question you have, try the Wikipedia:Reference desk.

If you are stuck because you do not know how to do a certain thing in Wikipedia, try the help system or ask a question at the Help desk.

Or if you are looking for a department, but do not know what it is called, try the Wikipedia:Department directory.

Read more:
How to create a new page

In the search box, type in the name of the article you wish to create. When told that the page does not exist, click the link either in red or with the question mark.

You can also type the title as the URL in your browser's link field and get there directly – e.g.:

http://wiki.riteme.site/wiki/Article_name

Perhaps the easiest way to start a new article is to follow a link to a page that does not exist yet. Depending on your settings, these links may show up as red links or have a question mark at the end of the link (red links?).

Note: The ability to create articles directly in mainspace is restricted to autoconfirmed users, though non-confirmed users and non-registered users can submit a proposed article through the Articles for Creation process, where it will be reviewed and considered for publication.

Wikipedia's top ten power tips

And the winners are...

  1. Create link buttons to Wikipedia on your browser's toolbar
  2. Edit Wikipedia faster with AutoWikiBrowser
  3. Jump to the search box with ⇧ Shift+Alt+F
  4. Search Wikipedia from any website (an oldie but goodie)
  5. Templates
  6. Work faster using keyboard shortcuts
  7. User scripts
  8. Use your watchlist
  9. Install Navigation Popups, here's how...
  10. Navigate faster using Wikipedia shortcuts

If you know even more powerful tips, please visit Tip of the day and add them to our tip collection. Come on, show off! You know you want to.

How to catch admin attention fast

Have you run across a problem that requires the attention of an Administrator?

The fastest way to catch the attention of administrators in general is to post an alert to the Administrators' noticeboard (A.N.). Administrators go there all the time to see what is up with Wikipedia; one of them will see your message and will take immediate appropriate action. Experienced editors hang out there too and sometimes will answer a question before an Admin gets to it.

Another option is to paste a {{admin help}} template (with the four curly braces) along with your question on to your Talk page and an Admin will stop by shortly.

How to make redirects appear green to you

Here is a trick to make redirected wikilinks stand out by turning them green instead of blue! This is especially useful when working on navigation aids like lists and outlines, where you need to be sure a link leads to where it says it links to. This quick and easy solution uses customized CSS:

Go to your Preferences, click on the "Appearance" tab, and click the "Custom CSS" to the right of the skin you use. It opens a page to edit, and you can add the following code (just copy and paste it):

	.mw-redirect {
		color: #006633;
	}
	.mw-redirect:visited {
		color: #009900;
	}
	.mw-redirect:hover {
		color: #990000;
	}
	.mw-redirect:active {
		color: #990000;
	}

Save the page, and reload (bypass your browser cache) and/or (Purge) the Wikipedia server to force the new CSS to be included. All redirects will now show up as green links! If you prefer a different color, you can modify them by using six-digit hex codes.


Breaking the 500-edit limit in "View History"

Have you ever been frustrated that you are limited to viewing 500-edits in View-History for pages?

Solution to see more edits:

  1. On any page with more than 500 edits...
  2. Click on that page's "View History" tab
  3. Click on the "|50)" wikilink just above and to the right of Compare selected versions
  4. Go up to your web browser's address bar and change limit=50 in the URL to any higher number (N) up to 5000, for example: limit=2500
  5. Press ↵ Enter or hit "go"

Go slow with "N", until you know what your web browser and computer can handle. If you get greedy your computer and browser may lock up. After the page fully loads you can use your browser's search feature to find what you are looking for or you can scroll down the page. As a bonus, your "next" choice will now offer next-N instead of next-500.

Bonus tip #1: The same process works in "Contributions", and on the search results page.
Bonus tip #2: If you prefer, you can tweak the web address (URL) on a view history page to go back from a specified date, which is useful for looking way back in long histories. In your browser in the URL after "&action=history" add "&offset=YYYYMMDD", where YYYY is the year, MM is the month, and DD is the day. Then press ↵ Enter or hit "go".

Read more:
Create links faster using tricks

1. Magic pipe trick: Synonymous article titles may be clarified with terms in parentheses, like this: [[Self (psychology)]]. But when you want to include such a link in the body of an article, this would look rather awkward. So all you have to do is use the "magic pipe trick", like this: [[Self (psychology)|]]. Notice the pipe ("|") character stuck in there at the end of the link? That makes the link look like this: Self, without having to type the name of the link after the pipe! This trick also works with namespaces, so that [[Wikipedia:Tip of the day|]] (again notice the pipe character) displays like this: Tip of the day.

2. Plural trick: While editing, you will often need to make a link to a plural. For example, suppose you wanted to link "Fred Foo was famous for his study of puddles" to puddle; you could link it like so: [[puddle|puddles]]. However, you can save time by instead writing [[puddle]]s. This also works for adjectives ([[Japan]]ese), verbs ([[dance]]d), and any other suffixes or prefixes, like [[bring]]ing. It does not, however, work for some irregular verbs. For example, [[try]]ied does not work; you have to use [[try|tried]]. Nor does it work with apostrophes needed outside the wikilink like: [[J. R. R. Tolkien]]'s.

Read more:
Running MediaWiki on your own computer

MediaWiki is the software that runs Wikipedia.

MediaWiki is opensource and is available for download for free. You can use it for offline access to the Wikipedia database, or to set up a wiki of your own.

However, MediaWiki requires other software to be able to run. The prerequisite programs are Apache/IIS, MySQL4 or later (5 or later as of version 1.19) and PHP5. When bundled together, these are referred to as AMP. They are also open source and free.

The Manual Installation Guide explains how to install MediaWiki from scratch.

Note that some users may find MediaWiki software bundles and MediaWiki hosting services with 1-click installation and wiki farms to be convenient alternatives to manual installation.

Navigate faster using Wikipedia shortcuts

Many of the pages in the Wikipedia namespace have specialized redirects called "shortcuts" that can be entered into the search box. Most shortcuts start with WP: followed by a capitalized abbreviation of the page name. Some common shortcuts are: WP:HELP, WP:WELCOME, WP:IMAGE, WP:5P, and of course, WP:TIP. A semi-complete list of shortcuts is available at Wikipedia:Shortcuts.

A shortcut can be used in the search box or in a link.

To jump to the talk page of a page with a shortcut, start with "WT:" instead of "WP:".

Searching Wikipedia with regular expressions (regex)
Searching with regex online

To search Wikipedia live with regular expressions, use the insource: parameter, followed by your regex search string enclosed in forward slashes, like this: /regular expression/. Here is an example:

insource:/(Abraham|Abe) Lincoln/

insource searches the wikitext version of articles, and so, wikiformatting codes can be included in the search string. If any characters you wish to find are used as special characters within regex, they will need to be "escaped" by preceding each with a backslash. For a cheat sheet on writing regexes, see Wikipedia:AutoWikiBrowser/Regular expression.

For case insensitive searches, include an "i" after the closing forward slash.

Searching with regex offline

To search all of Wikipedia offline using regex, you need to download the Wikipedia database and do the search offline with AutoWikiBrowser's Database Scanner. Activate it from the tools menu in AutoWikiBrowser (AWB). It returns the names of the pages that match your query, which you can have sent directly to AWB's list maker (then you can use AWB to view them all). The Database Scanner has many features, and each query can be easily configured to match, exclude, specify namespaces, ignore redirects, etc. as you see fit.

Other methods of searching Wikipedia with regular expressions
  • To search Wikipedia titles with regex, use Grep.
  • To search within the current page use the edit window:
    • If source editing, use the "Search and replace" dialog by clicking the magnifying glass icon at the far right of the "Advanced" toolbar.
    • If visual editing, type Ctrl-F to get the search box, then click the "(.*)" icon for regular expressions.
    • Regular expressions are also supported by the WikEd text editor gadget.
  • AutoWikiBrowser can do regex search/replaces, on a list of articles that you provide it.
Read more:
The insource: parameter
Regular expression (regex)  
AutoWikiBrowser (AWB)  
WikEd help  
Getting your edit count

Instead of counting your edits 500 at a time in your contributions list, you could look up your grand total on your Preferences page. Your number of edits is listed under "Basic information", near the top of the page.

To get more details about your edits, try X!Tools's Edit Counter, which tallies up all your edits of each area of Wikipedia, and displays the totals for each and the grand total. It also shows the number of unique pages edited, the average edits per page, number of edits still active, and how many edits have been deleted.

Transclusion vs. Substitution

There are two main ways to use templates on articles:

  1. Transclusion – also called "inclusion", and accomplished by using {{Template Name}}
  2. Substitution – notated like this {{subst:Template Name}}

Transclusion will include the content of Template Name on the fly whenever the article is loaded, while the latter will permanently insert the content of the template into the article. With substitution, even if the template content is modified at a later date, the article's content will not change.

Substitution is the preferred method for long-term, permanent notices because it is less confusing, and it even helps to lighten the load on the database. Substitution has the further advantage in that a template's content may be de-linked from any associated category or slightly modified to suit the circumstances, such as when the template is used on a talk page. Transclusion is preferred for displaying material that is normally updated, that way, all the places it appears are updated in a single operation.

Link to Wiktionary word definitions using Wikt:

You've come across a word that is crucial to understanding the article you are working on, and you want to create a link to its definition. But you find the encyclopedia article for that word would be overkill. So you want to link to its Wiktionary definition. How? It's easy. Here's an example using the word "understanding":

both [[wiktionary:understanding|]] and [[wikt:understanding|]] will look like this:

understanding

and link to the definition of the word "understanding".

Notice that the "pipe trick" (|) was used in the links above.

SuggestBot is a fun way to pick pages to edit

Let SuggestBot point the way. SuggestBot is a program that attempts to help Wikipedia users find pages to edit. It matches people with pages they might like to contribute to based on their past contributions. It uses a variety of algorithms, including standard information retrieval and collaborative filtering techniques, to make suggestions. It also sometimes points people to the Community Portal, or their past edits, as a source of inspiration.

If you are looking for SuggestBot recommendations, you have these options.

  1. To get a single set of suggestions:
    1. …based on articles you've edited, please follow the instructions at User:SuggestBot/Requests.
    2. …using WikiProjects you are interested in, go to the Teahouse's SuggestBot page, click on Get suggestions, and follow the instructions.
    3. …based on a specific set of articles or categories of articles, see our SuggestBot instructions for that.
  2. You can also get suggestions posted periodically to your talk page (or another page of your choosing). How to do that is described here.
Read more:
Work faster with keyboard shortcuts

Wikipedia has keystroke combinations that can speed up your work, like ⇧ Shift+Alt+F to "focus" on (jump to) the search box, ⇧ Shift+Alt+M to move the current page and its talk page, ⇧ Shift+Alt+T to open the current article's talk page, ⇧ Shift+Alt+Y to open a list of your user's contributions, and many more. Those are for Windows users. On the Mac OS, press Control instead of ⇧ Shift+Alt. For some browsers, the accesskey is the Alt key instead. For details see Keyboard shortcuts.


Ask intelligent questions

When asking a question about editing Wikipedia at the Teahouse or Help desk, please include all the facts needed to answer your question - especially the page title you're enquiring about. Most respondents will assume you are editing in 'desktop' view, and are using Source Editor, not Visual Editor (VE). So remember to say if you're working on a mobile or using VE.

Always give context to any question. At the Reference desk, for example, don't ask "who was president in 1900?" without mentioning the country you're interested in! This prevents volunteers helpers having to ask follow-up questions before providing answers. Friendly reminder: the Teahouse (for new editors) and Help desk are for questions on how to use or edit Wikipedia; the Reference desk is for questions about anything else (real world questions).

Read more:
Working on the Main Page - I

Being the gateway to the encyclopedia - the Main Page is Wikipedia's most frequently visited page. The main page is always protected and can only be edited by admins. But, most of the content on the main page is piped in each day from various departments, via templates. The volunteers in these departments work year round to prepare the content on the Main Page to be viewed by the World each day.

The departments that prep content for the Main Page are:

Anybody can help prep the pages that feed into the main page's templates (up until the day they are displayed on the Main Page), by proofreading and correcting them, and we encourage you to do so. (continued tomorrow)

Working on the Main Page - II

(continued from yesterday)

The scheduled queues of pages to be displayed by each department on the main page can be found at:

Important: Be sure to follow the instructions posted at each department.

Toolbar links to access the WP pages you use the most

Your browser's toolbar can be used as your Wikipedia navigation bar. To do this, bookmark the pages in Wikipedia you wish to have fast access to, saving each bookmark in the toolbar or bookmarks bar folder. Each one will immediately be available on the toolbar or bookmark bar. Some browsers let you drag links to the toolbar. To shorten any link, right click on it, select properties or edit, and type in a shorter title.