Wikipedia:User page design guide/Style

IntroductionAbout youNavigation aidsMetadataYour scriptsStyleMenus & subpagesArt, Decor, etc.Hall of Fame

Style is page layout. Here, we deal with format elements like content structuring, borders, page color, etc. Well, there's a little more to style than that, and the rest is covered here too....

To create a table of contents like the above (that changes its direction of lean randomly), use this code:

<div style="{{#invoke:RexxS|wobble}} float:left">__TOC__</div>


Layout themes

Our "Cheatsheet" is a good starting point for learning basic Wikipedia formatting. A more complete guide is here.

You can take some formatting tips from the standard way Wikipedia articles are laid out. Articles use headings, paragraphs, bulleted lists, etc. However, please take care not to set up a user page that anyone could mistake for an actual article (this is discouraged here).

When you come across an editor (Wikipedian) who seems experienced and sensible, take a look at their user page to see if there are design elements you could incorporate into your own user page.

Portal format

As of 2018, the Portals Project has made some astounding advancements in portal design, making portals a breeze to create and modify. One possible application of the new portal design is as a user page.

For an example of a user page set up as a portal, see User:The Transhumanist.

Format elements

Portal components

Many of the various templates from the growing collection of portal elements can be used to great effect on a user page's design. For example...

Image banner

{{Portal image banner|File:Ethipothala Water Falls.jpg |maxheight=140px |overflow=Hidden }} looks like this:

Picture slideshow

Conforms to the size of the container or column it is in. On most portals, it is in a half-page-width column. Here, it is full-width single-column:

Selected images

See {{Transclude files as random slideshow}} for more details.

Portal templates

Alternate page title header

Note: This method is a hack which does not work with all Wikipedia skins. For example, users of the Classic skin will have the links at the top of the page covered up by the title.

Alternate title headers are headers that cover up the default header at the top of a page. The default title header has the name of the page in big bold letters. If you don't like how the default looks, follow the instructions below

  1. First, create a user subpage (described in this section) titled "User:Example User/Header"
  2. Then, copy the following code into the subpage and change the parts in all caps (e.g.: "COLOR OF TEXT" and "HEADER TEXT YOU WANT")
  3. Transclude the header onto your user page (type the full name of the subpage inside double curly brackets) {{like this}}

Example code:

{| style="position:absolute; top:-50px; background:#CCCCFF; color:#000000;" valign="middle"
|-
|<h1 style="margin:0; border-bottom:0; color:COLOR OF TEXT;">
{{center|HEADER TEXT YOU WANT}}
|}

Borders

Borders look nice. Borders add spice. And they're the right price.

The examples below include closing codes, which may make it difficult to utilize them on talk pages. To have borders and backgrounds extend to the end of the page regardless of what is added, simply leave off the closing codes (</div>, </tr>, </td>, |}) at the end of the border markup examples.

Some example borders:

Servers and Network Issues!

We have several servers located in the small room adjacent to the lunch room next to production. All of our network gear including phone, switches and DSL modems are located behind the double doors in the office next.



The above design is best used for short pages, as it mimics a picture frame. It would work well for images, awards, etc.


width=100% style="border-radius:1em; box-shadow: 0.1em 0.1em 0.5em rgba(0,0,0,0.75);; padding: 5px; background:orange; border: solid 4px red;"width=100% cellspacing=0 style="border-radius:1em; box-shadow: 0.1em 0.1em 0.5em rgba(0,0,0,0.75);; background: lime; border: solid 4px yellow;"

|}


How's this for a border?

|}


Place your navbar here
Hi there
  

TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT To customize, change the border colors. TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT

What's up?
  

TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT

Round corners

As of November 2008, round corners will only display in Mozilla Firefox, Apple Safari and Google Chrome. EDIT: As of June 2011, round corners will display also on Internet Explorer 9
To add round corners to a box or frame, include the {{Round corners}}; template (just as shown, including semi-colon) as a style parameter. Note that the element to be rounded must have a border in the first place. Here's a markup example:

<div style="border:1px solid #5599FF; {{Round corners}}; margin: 5px;">
sample text sample text sample text sample text
</div>

To see the specific code for creating round corners see Template:Round corners.

For a cool example of the use of round corners, see Zeerus' user page

Or, try another way: -moz-border-radius:Xpx, where X is the number of pixels wide the rounded edge should be.

Color

Change page color with CSS

To change the color of your user page, simply add the following code, replacing the capitalized text with the desired web colors:

{| | style="background:BACKGROUND COLOR; color:TEXT COLOR" |

So, you want to use fancy colors, eh? The following is a range of Web-Safe colors (non-dithering) transcluded from User:Resident Mario/Tablet.

Contents

To suppress the automatic table of contents box from appearing on your user page, place the following line somewhere on your user page:

__NOTOC__

To have the table of contents box float to the right, place the following line where you want the top to appear:

{{TOCright}}

Show/Hide sections

Here's an example of collapsed/expandable sections:

About me

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Subpages

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

To do

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Licensing

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

There are several templates that can be used for this in Category:Collapse templates.

Switched features

Boxes

  • To make a box, do the following:
  1. Type <div style="background-color:COLOR YOU WANT;"> before the text
  2. Choose the color (Check out these pages: [1][2][3] for a full list of colors you can use)
  3. Type your text
  4. Type </div> after the text
  • Overall, your code should look like this:
<div style="background-color:yellow;">Hi</div>
  • Which will look like:
Hi

Curved borders

  • To make borders curved (only works in Mozilla-based browsers) add the following code to the code described in the previous section:
  • border-radius:15px;
  • So, now your code should look like <div style="background-color:DarkGoldenrod; border-radius:15px;">Hi</div>
  • Which would show up as
  Hi, I'm trying to get your attention and differentiate my message on the page.  

Text formatting

Here are some tips on how to format your text:

Custom bullet points for lists

To use custom dots for bullets in lists, you can insert small files, like this:
  Lorem ipsum dolor sit amet,
  consectetur adipiscing elit,
  sed do eiusmod tempor incididunt
  ut labore et dolore magna aliqua.
  Ut enim ad minim veniam,

You might want to use a different color dot for separate lists, to further differentiate those lists, rather than mix them like above. When using this method, you need to end each line with "<br/>", and precede the first item in the list with that as well (at the end of the preceding line), or the items will run together.

Here is the wikicode for the above list, for copying and pasting:

<br/>
&nbsp; [[File:Green 00ff00 pog.svg|9px]] [[Lorem ipsum]] dolor sit amet,<br/>
&nbsp; [[File:Yellow ffff00 pog.svg|9px]] consectetur adipiscing elit,<br/>
&nbsp; [[File:Red pog.svg|9px]] sed do eiusmod tempor incididunt<br/>
&nbsp; [[File:Purple 8000ff pog.svg|9px]] ut labore et dolore magna aliqua.<br/>
&nbsp; [[File:Blue 0080ff pog.svg|9px]] Ut enim ad minim veniam,<br/>

For a real-life example of how the above method is applied upon a user page, see the page User:Tom.Reding.

Of course, you are not limited to dots. This method can be employed using icons, emoticons, etc.

Center-Align

  • To center text, use the following code:
  1. Enter <div style="text-align: center;">
  2. Then enter your text
  3. Finally, enter </div>
  • Overall, your code should look like this:

<div style="text-align: center;">Centered text</div>

  • Once you have entered that code, your text will look like this:
Centered text

Strike Through Text

  • To strike through text, use the following code:
  1. Enter a <s> before the text.
  2. Enter the text
  3. Enter a </s> after the text.
  • Overall, your code should look like this:

<s>blah blah blah</s>

  • Once you have entered that code, your text will look like this:

blah blah blah

Superscript

  • To insert a superscript, use the following code:
  1. Enter a <sup> before the text.
  2. Enter the text
  3. Enter a </sup> after the text.
  • Overall, your code should look like this:

Normal text<sup>superscript text</sup>

  • Once you have entered that code, your text will look like this:

Normal textsuperscript text

Subscript

  • To insert, use the following code:
  1. Enter a <sub> before the text.
  2. Enter the text
  3. Enter a </sub> after the text.
  • Overall, your code should look like this:

Normal text<sub>subscript text</sub>

  • Once you have entered that code, your text will look like this:

Normal textsubscript text

Hidden Comment

  • To insert a hidden comment, use the following code:
  1. Enter a <!-- before the text.
  2. Enter the text
  3. Enter a --> after the text.
  • Overall, your code should look like this:

<!-- blah blah blah-->

  • You will not be able to see the text on this page, but it will be seen when you try to edit this page. Hidden text is mostly used for warnings.

Secondary Headline

  • To insert a secondary headline, use the following code:
  1. Enter a == before the text.
  2. Enter the text
  3. Enter a == after the text.
  • Overall, your code should look like this:

==blah blah blah==

Tab

  • To insert a tab, use the following code:
  1. Enter a :: before the text.
  • Overall, your code should look like this:

::blah blah blah

  • Once you have entered that code, your text will look like this:
blah blah blah

Font Color

  • To change the color of text, use the following code:
  1. Enter a <span style="color: ColorName"> before the text.
  2. Choose the color
  3. Enter the text
  4. Enter a </span> after the text.
  • Overall, your code should look like this:

<span style="color: red">blah blah blah</span>

  • Once you have entered that code, your text will look like this:

blah blah blah

gradient text

You can use this template to make some text that gradually changes its colour from left to right (blah blah blah) and this template to create text that has every colour of the rainbow as a gradient (blah blah blah). To customise the color and direction of the text, you may use this template which allows customisation of text like this (blah blah blah).

Mouse Cursor

  • To change the cursor of the mouse when you hover over text, do the following:
  1. Enter a <span style="cursor:CURSOR YOU WANT;"> before the text.
  2. Choose the cursor, (e.g. crosshair, default)
  3. Enter the text
  4. Enter a </span> after the text.
  • Overall, your code should look like this:

<span style="cursor: crosshair;">blah blah blah</span>

  • Once you have entered that code, and you put the mouse over the text, it should have a different mouse cursor:

blah blah blah

  • To make external links look internal, use the following
  1. Enter a <span class="plainlinks"> before the text.
  2. Enter the external link
  3. Enter a </span> after the text.
  • Overall, your code should look like this:

<span class="plainlinks">[http://wikipedia.com external <span style="color:#002bb8">link</span>]</span>

  • Once you have entered that code, the external link should look like this:

external link

  • Note that if someone is using a custom skin that specifies different link colors, for example, green for internal links, and purple for "redlinks," a link formatted with this code will still look blue, and not match other links in appearance, to that user.

Bolding

  • To make text bold, do the following:
  1. Enter 3 apostrophes ''' before the text.
  2. Enter the text
  3. Enter 3 more apostrophes ''' after the text.
  • Overall, your code should look like this:

'''text'''

  • Once you have entered that code, the text should look like this:

text

Italics

  • To italicize text, do the following:
  1. Enter 2 apostrophes '' before the text.
  2. Enter the text
  3. Enter 2 more apostrophes '' after the text.
  • Overall, your code should look like this:

''text''

  • Once you have entered that code, the text should look like this:

text

Underlining

  • To make underline text, do the following:
  1. Enter <u> before the text.
  2. Enter the text
  3. Enter </u> after the text.
  • Overall, your code should look like this:

<u>text</u>

  • Once you have entered that code, the text should look like this:

text

Font size

  • To make text a certain size, use the following code:
  1. Enter a <span style="font-size:large;"> before the text.
  2. Choose the size
  3. Enter the text
  4. Enter a </span> after the text.
  • Overall, your code should look like this:

<span style="font-size:large;">blah blah blah</span>

  • Once you have entered that code, your text will look like this:

blah blah blah

Font Families

  • To use the following font families, use the codes below:
  1. <span style="font-family: (desired font); font-size: 12pt">
  2. Enter the font you want
  3. Directly after the code, enter your text
  4. Enter </span>after the text

So, it should look like:

<span style="font-family: comic sans ms; font-size: 12pt">awesome</span>

Which will turn out as:

awesome

List of Fonts

Font Name:Example of font:
Agency FBThe Quick Brown Fox Jumps Over The Lazy Dog
AlgerianThe Quick Brown Fox Jumps Over The Lazy Dog
Andale MonoThe Quick Brown Fox Jumps Over The Lazy Dog
ArialThe Quick Brown Fox Jumps Over The Lazy Dog
Arial BlackThe Quick Brown Fox Jumps Over The Lazy Dog
Arial NarrowThe Quick Brown Fox Jumps Over The Lazy Dog
Arial Rounded MT BoldThe Quick Brown Fox Jumps Over The Lazy Dog
Baskerville Old FaceThe Quick Brown Fox Jumps Over The Lazy Dog
Batik RegularThe Quick Brown Fox Jumps Over The Lazy Dog
Bauhaus 93The Quick Brown Fox Jumps Over The Lazy Dog
Bell MTThe Quick Brown Fox Jumps Over The Lazy Dog
Berlin Sans FBThe Quick Brown Fox Jumps Over The Lazy Dog
Berlin Sans FB DemiThe Quick Brown Fox Jumps Over The Lazy Dog
Bernard MT CondensedThe Quick Brown Fox Jumps Over The Lazy Dog
Blackadder ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Bodoni MTThe Quick Brown Fox Jumps Over The Lazy Dog
Bodoni MT BlackThe Quick Brown Fox Jumps Over The Lazy Dog
Bodoni MT CondensedThe Quick Brown Fox Jumps Over The Lazy Dog
Bodoni MT Poster CompressedThe Quick Brown Fox Jumps Over The Lazy Dog
Book AntiquaThe Quick Brown Fox Jumps Over The Lazy Dog
Bookman Old StyleThe Quick Brown Fox Jumps Over The Lazy Dog
Bradley Hand ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Britannic BoldThe Quick Brown Fox Jumps Over The Lazy Dog
BroadwayThe Quick Brown Fox Jumps Over The Lazy Dog
Brush Script MTThe Quick Brown Fox Jumps Over The Lazy Dog
CalibriThe Quick Brown Fox Jumps Over The Lazy Dog
Californian FBThe Quick Brown Fox Jumps Over The Lazy Dog
Calisto MTThe Quick Brown Fox Jumps Over The Lazy Dog
CambriaThe Quick Brown Fox Jumps Over The Lazy Dog
CandaraThe Quick Brown Fox Jumps Over The Lazy Dog
CastellarThe Quick Brown Fox Jumps Over The Lazy Dog
CentaurThe Quick Brown Fox Jumps Over The Lazy Dog
Century GothicThe Quick Brown Fox Jumps Over The Lazy Dog
Century SchoolbookThe Quick Brown Fox Jumps Over The Lazy Dog
ChillerThe Quick Brown Fox Jumps Over The Lazy Dog
Colonna MTThe Quick Brown Fox Jumps Over The Lazy Dog
Comic Sans MSThe Quick Brown Fox Jumps Over The Lazy Dog
ConsolasThe Quick Brown Fox Jumps Over The Lazy Dog
ConstantiaThe Quick Brown Fox Jumps Over The Lazy Dog
Cooper BlackThe Quick Brown Fox Jumps Over The Lazy Dog
Copperplate Gothic BoldThe Quick Brown Fox Jumps Over The Lazy Dog
Copperplate Gothic LightThe Quick Brown Fox Jumps Over The Lazy Dog
CorbelThe Quick Brown Fox Jumps Over The Lazy Dog
Courier NewThe Quick Brown Fox Jumps Over The Lazy Dog
Curlz MTThe Quick Brown Fox Jumps Over The Lazy Dog
Edwardian Script ITCThe Quick Brown Fox Jumps Over The Lazy Dog
ElephantThe Quick Brown Fox Jumps Over The Lazy Dog
Engravers MTThe Quick Brown Fox Jumps Over The Lazy Dog
Eras Bold ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Eras Demi ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Eras Light ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Eras Medium ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Felix TitlingThe Quick Brown Fox Jumps Over The Lazy Dog
Footlight MT LightThe Quick Brown Fox Jumps Over The Lazy Dog
ForteThe Quick Brown Fox Jumps Over The Lazy Dog
Franklin Gothic BookThe Quick Brown Fox Jumps Over The Lazy Dog
Franklin Gothic DemiThe Quick Brown Fox Jumps Over The Lazy Dog
Franklin Gothic HeavyThe Quick Brown Fox Jumps Over The Lazy Dog
Franklin Gothic MediumThe Quick Brown Fox Jumps Over The Lazy Dog
Franklin Gothic Medium CondThe Quick Brown Fox Jumps Over The Lazy Dog
Freestyle ScriptThe Quick Brown Fox Jumps Over The Lazy Dog
French Script MTThe Quick Brown Fox Jumps Over The Lazy Dog
GaramondThe Quick Brown Fox Jumps Over The Lazy Dog
GeorgiaThe Quick Brown Fox Jumps Over The Lazy Dog
GigiThe Quick Brown Fox Jumps Over The Lazy Dog
Gill Sans MTThe Quick Brown Fox Jumps Over The Lazy Dog
GulimCheThe Quick Brown Fox Jumps Over The Lazy Dog
ImpactThe Quick Brown Fox Jumps Over The Lazy Dog
Kristen ITCThe Quick Brown Fox Jumps Over The Lazy Dog
Lucida ConsoleThe Quick Brown Fox Jumps Over The Lazy Dog
Lucida HandwritingThe Quick Brown Fox Jumps Over The Lazy Dog
MingLiUThe Quick Brown Fox Jumps Over The Lazy Dog
Monotype CorsivaThe Quick Brown Fox Jumps Over The Lazy Dog
MS GothicThe Quick Brown Fox Jumps Over The Lazy Dog
MS HeiThe Quick Brown Fox Jumps Over The Lazy Dog
MS SongThe Quick Brown Fox Jumps Over The Lazy Dog
Old English Text MTThe Quick Brown Fox Jumps Over The Lazy Dog
SymbolThe Quick Brown Fox Jumps Over The Lazy Dog
TahomaThe Quick Brown Fox Jumps Over The Lazy Dog
Times New RomanThe Quick Brown Fox Jumps Over The Lazy Dog
Trebuchet MSThe Quick Brown Fox Jumps Over The Lazy Dog
VerdanaThe Quick Brown Fox Jumps Over The Lazy Dog
WebdingsThe Quick Brown Fox Jumps Over The Lazy Dog
WingdingsThe Quick Brown Fox Jumps Over The Lazy Dog
Wingdings 2The Quick Brown Fox Jumps Over The Lazy Dog
Wingdings 3The Quick Brown Fox Jumps Over The Lazy Dog

Picture formatting

Images, with the proper copyright tags, can be placed onto your user page.

Inserting an Image

[[File:Cscr-featured.svg]]

This inserts an image as seen below.

[[File:Cscr-featured.svg|Star]]

Every image should have a brief description text. This enables blind Wikipedians using a screen reader to know what the image is about. "Star" is the descriptive word in this case.

Star

[[:File:Cscr-featured.svg]]

Add a colon before Image to create a link to an image.

File:Cscr-featured.svg

Left Alignment

[[File:Cscr-featured.svg|left]]

This aligns an Image to the left.

Right Alignment

[[File:Cscr-featured.svg|right]]

This aligns an Image to the right.

Center alignment

[[File:Cscr-featured.svg|center]]

This aligns an Image in the middle.

Auto-alignment

You can auto-align an Image one of two ways.

Framing

Framing an Image will automatically set the Image to the right side of the screen and frame it. (Like a picture frame)

To frame an Image type in:

[[File:Cscr-featured.svg|frame]]

Which will appear like this:

NOTE: This will force the image to be in its original size (to change the size use thumbnails or do not use the frame).

Just sub to stixq

Thumbnailing a picture is similar to framing because it, again, automatically aligns it to the right. What's different about thumbnails is that now you have room to write text below it and can change the size. (Like a photograph from a camera)

To thumbnail a picture type in:

[[File:Cscr-featured.svg|thumb]]

Which will appear like this:

Making Images bigger and smaller

To change the size of an image type:

[[File:Cscr-featured.svg|80px]]

Captions

To add a caption to an image, type:

Caption
[[File:Cscr-featured.svg|thumb|Caption]]

or

[[File:Cscr-featured.svg|thumb|right|Caption]]

or

[[File:Cscr-featured.svg|thumb|right|80px|Caption]]

Galleries

To make a gallery of images, type

<gallery>
File:Cscr-featured.svg|Caption1
File:Barnprinter2.png|Caption2
</gallery>

Templates

There are plenty of users out there looking to spruce up their pages, too! This section lists a few of the really cool apps developed by others.

Moon Phase

On the right is a template that automatically displays the current moon phase, created by Dbachman.

the Moon
1st quarter, 30%


Emoticons

Also called smileys, these emoticons are useful for adding emotional expression to text messages. Definitely not for use in articles, but suitable for enhancing messages on talk pages, especially user talk pages. They can also be used as menu icons and user page art.

See also

Uses material from the Wikipedia article Wikipedia:User page design guide/Style, released under the CC BY-SA 4.0 license.