css.php

From CUNY Academic Commons

Contents

Introducing Six Shortcuts

There are not that many commands that you need to know to write a wiki page, and most can be found on the Rich Editor, but in some cases it’s more efficient to know some shortcuts for formatting a wiki page.

While you can enter all these code in the Rich Editor, you need disable it to efficiently work with them. (There’s a hyperlink called “Disable rich editor.”)

Creating Sections

To create a section, simply add one to six equal marks (“=”) before and after your section heading.  Equal marks need to start at column one of your page (i.e. all the way over to the left).

  • =My Main Section=
  • ==My Sub Section==
  • ===My Sub Sub Section===
  • and so on…

The number of equals marks must be the same on each side. Font size gets smaller and colors change as you increase the number of equals marks. Max number of equals signs is six on each side.

Creating a Table of Contents

MediaWiki automatically creates a table of contents and places it at the top of your page if you have three or more sections.

If you don’t want a table of contents to appear, use the MediaWiki “magic” word __NOTOC__ at the top of your page, and the table of contents will be suppressed.

Bullet List

Have a list of items that you want to format with bullets? Simply add an asterisk before each one. Again, the asterisks must be in column one, (i.e. all the way to the left):

 
*Item one

*Item two

*Item three
 

This is rendered as:

  • Item one
  • Item two
  • Item three

Numbered List

Have a list of items that you want to number? Simply add a number sign (#) before each one. Again, the number signs must be in column one, (i.e. all the way to the left):

 
#Item one

#Item two

#Item three
 

This is rendered as:

  1. Item one
  2. Item two
  3. Item three

External Hyperlinks

The formula for an external hyperlink is an open square bracket, the url, followed by a space, then the word your want to appear as your link, and closed with a square bracket.

The following code: [http://www.loc.gov Library of Congress] will be rendered as: Library of Congress

Linking to Other Commons Wiki Pages

The formula for a link to another wiki page is two open square brackets, followed by the page name, and closed with two square brackets.

The following code:[[CUNY on ITunes U]] will be rendered as: CUNY on iTunes U.

If the page exists, you will link there directly. If the page does not exists, you will be prompted to create this page, a quick and efficient way used by many to create a new link and a new page.

Related Links