Wikipedia:User Page Design Center/Style
From Wikipedia, the free encyclopedia
Style is page layout, baby! Or in another word: formatting. 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...
Contents |
[edit] Skins
[edit] Layout themes
[edit] Article format
The default format for user pages is the article format. That is, standard headings, paragraphs, bulleted lists, etc. But an article-styled user page need not look drab, and is more than adequate for presenting information about yourself. Since it is so easy, it's a perfect place to start. See the following user pages as examples of well-developed user pages in article format:
[edit] Menu format
[edit] Table formats
- Main Page format
- Custom Portal format
- Custom table format
- With menu
- Without menu
[edit] Format elements
[edit] Creating page title headers
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.
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 the default, 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 that you can change (for example, the part that says "HEADER TEXT YOU WANT")
{| style="position:absolute; top:0; width:100%; background:#F8FCFF; color:#888;" valign="middle" |- |[[Image:OPTIONAL IMAGE.jpg|38px]] <h1 style="margin:0; border-bottom:0; color:COLOR OF TEXT;"> HEADER TEXT YOU WANT |} |
- 3. Transclude the header onto your userpage (transcluding was described in the making subpages section)
- 4. Follow this link to see an example of the header. It will be at the top-left side of the page.
[edit] 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:
Welcome!
|
|
---|---|
Sample text Sample text Note that this frame will only extend as far as your text, so you have to have at lease one complete line of text. Sample text Sample text Sample text. The body of your user page would go in here (that is, text, pics, etc.). |
|
- The above design is best used for short pages, as it mimicks a picture frame. It would work well for images, awards, etc.
|
[edit] Round corners
As of November 2006, only Mozilla (Firefox) supports round corners. 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
[edit] Color
|
|||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
black | gray | silver | white | red | maroon | purple | fuchsia | green | lime | olive | yellow | gold | orange | blue | navy | teal | aqua |
[edit] Change page color with CSS
[edit] Contents
To suppress the automatic table of contents box from appearing on your userpage, place the following line somewhere on your userpage:
__NOTOC__
To have the table of contents box float to the right, place the following line where you want the toc to appear:
{{tocright}}
[edit] Scroll boxes
To create a scrollbox, use the "overflow:auto" style code. Be sure to also specify a "height: nnpx", where nn is the height you want. Here's an example of one 150px tall:
- What is the meaning of life? And what does that question mean?
- Where is the line between life and non-life?
- Where does choice come from?
- Why is life proactive, as opposed to nonlife, which simply obeys the laws of physics, without using energy to—say—defy gravity?
- Can emotion be programmed?
- Where do we feel?
- Why does art move us?
- What makes us want to be better, to have purpose?
- Who are you and what do you want?
- That is, who are you, really? The true you, deep inside.
- And what do you really want (but for whatever reason haven't committed to getting)?
[edit] Show/Hide sections
Here's an example of collapsed/expandable sections:
[edit] Action links
[edit] Switched features
[edit] Boxes
- To make a box, do the following:
- Type <div style="background-color:COLOR YOU WANT;"> before the text
- Choose the color (Check out these pages: [1][2][3] for a full list of colors you can use)
- Type your text
- Type </div> after the text
- Overall, your code should look like this:
-
- <div style="background-color:yellow;">Hi</div>
- Which will look like:
[edit] Curved borders
- To make borders curved (only works in Mozilla-based browsers) add the following code to the code described in the previous section:
- -moz-border-radius:15px;
- So, now your code should look like <div style="background-color:DarkGoldenrod; -moz-border-radius:15px;">Hi</div>
- Which would show up as
[edit] Text formatting
[edit] Center-Align
- To center text, use the following code:
- Enter <div style="text-align: center;">
- Then enter your text
- 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
[edit] Strike Through Text
- To strike through text, use the following code:
- Enter a <s> before the text.
- Enter the text
- 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
[edit] Superscript
- To insert a superscript, use the following code:
- Enter a <sup> before the text.
- Enter the text
- Enter a </sup> after the text.
- Overall, your code should look like this:
<sup>blah blah blah</sup>
- Once you have entered that code, your text will look like this:
blah blah blah blah blah blah
[edit] Subscript
- To insert, use the following code:
- Enter a <sub> before the text.
- Enter the text
- Enter a </sub> after the text.
- Overall, your code should look like this:
<sub>blah blah blah</sub>
- Once you have entered that code, your text will look like this:
blah blah blah blah blah blah
[edit] Hidden Comment
- To insert a hidden comment, use the following code:
- Enter a <!-- before the text.
- Enter the text
- 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.
[edit] Secondary Headline
- To insert a secondary headline, use the following code:
- Enter a == before the text.
- Enter the text
- Enter a == after the text.
- Overall, your code should look like this:
==blah blah blah==
[edit] Tab
- To insert a tab, use the following code:
- 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
[edit] Font Color
- To change the color of text, use the following code:
- Enter a <span style="color: ColorName"> before the text.
- Choose the color
- Enter the text
- 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
- Another way to do it is:
- Enter a <font color="ColorName"> before the text.
- Choose the color
- Enter the text
- Enter a </font> after the text.
- Overall, your code should look like this:
<font color="red">blah blah blah</font>
- Once you have entered that code, your text will look like this:
blah blah blah
[edit] Mouse Cursor
- To change the cursor of the mouse when you hover over text, do the following:
- Enter a <span style="cursor:CURSOR YOU WANT;"> before the text.
- Choose the cursor, (e.g. crosshair, default)
- Enter the text
- 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
[edit] Links
- To make external links look internal, use the following
- Enter a <span class="plainlinks"><font color="002bb8"> before the text.
- Enter the external link
- Enter a </font></span> after the text.
- Overall, your code should look like this:
<span class="plainlinks"><font color="002bb8">[http://example.com external link]</font></span>
- Once you have entered that code, the external link should look like this:
- 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.
[edit] Bolding
- To make text bold, do the following:
- Enter 3 apostrophes ''' before the text.
- Enter the text
- 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
[edit] Italics
- To italicize text, do the following:
- Enter 2 apostrophes '' before the text.
- Enter the text
- 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
[edit] Underlining
- To make underline text, do the following:
- Enter <u> before the text.
- Enter the text
- 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
[edit] Font size
- To make text a certain size, use the following code:
- Enter a <font size="4"> before the text.
- Choose the size
- Enter the text
- Enter a </font> after the text.
- Overall, your code should look like this:
<font size="4">blah blah blah</font>
- Once you have entered that code, your text will look like this:
blah blah blah
[edit] Font Families
- To use the following font families, use the codes below:
- <span style="font-family: (desired font); font-size: 12pt">
- Enter the font you want
- Directly after the code, enter your text
- Enter </span>after the text
So, it should look like:
<span style="font-family: Monotype Corsiva; font-size: 12pt">Blah blah blah</span>
Which will turn out as:
Blah blah blah
[edit] List of Fonts
Font Name: | Example of font: |
Agency FB | Example |
Algerian | Example |
Andale Mono IPA | Example |
Arial | Example |
Arial Black | Example |
Arial Narrow | Example |
Arial Rounded MT Bold | Example |
Baskerville Old Face | Example |
Bauhaus 93 | Example |
Bell MT | Example |
Berlin Sans FB | Example |
Berlin Sans FB Demi | Example |
Bernard MT Condensed | Example |
Blackadder ITC | Example |
Bodoni MT | Example |
Bodoni MT Black | Example |
Bodoni MT Condensed | Example |
Bodoni MT Poster Compressed | Example |
Book Antiqua | Example |
Bookman Old Style | Example |
Bradley Hand ITC | Example |
Britannic Bold | Example |
Broadway | Example |
Brush Script MT | Example |
Californian FB | Example |
Calisto MT | Example |
Castellar | Example |
Centaur | Example |
Century Gothic | Example |
Century Schoolbook | Example |
Chiller | Example |
Colonna MT | Example |
Comic Sans MS | Example |
Cooper Black | Example |
Copperplate Gothic Bold | Example |
Copperplate Gothic Light | Example |
Courier New | Example |
Curlz MT | Example |
Edwardian Script ITC | Example |
Elephant | Example |
Engravers MT | Example |
Eras Bold ITC | Example |
Eras Demi ITC | Example |
Eras Light ITC | Example |
Eras Medium ITC | Example |
Felix Titling | Example |
Footlight MT Light | Example |
Forte | Example |
Franklin Gothic Book | Example |
Franklin Gothic Demi | Example |
Franklin Gothic Heavy | Example |
Franklin Gothic Medium | Example |
Franklin Gothic Medium Cond | Example |
Freestyle Script | Example |
French Script MT | Example |
Garamond | Example |
Georgia | Example |
Gigi | Example |
Gill Sans MT | Example |
GulimChe | Example |
Impact | Example |
Kristen ITC | Example |
Lucida Console | Example |
Lucida Handwriting | Example |
Marlett | Example |
MingLiU | Example |
Monotype Corsiva | Example |
MS Gothic | Example |
MS Hei | Example |
MS Outlook | Example |
MS Song | Example |
Old English Text MT | Example |
Symbol | Example |
Tahoma | Example |
Times New Roman | Example |
Trebuchet MS | Example |
Webdings | Example |
Wingdings | Example |
Wingdings 2 | Example |
Wingdings 3 | Example |
[edit] Picture formatting
Images, with the proper copyright tags, can be placed onto your userpage. Here are some simple instructions on how to format pictures (place them, size them, etc.)
[edit] Viewing an Image
You can either view an Image as the Image seen below:
[[Image:Cscr-featured.png]] - this insert it on the page
Every image should have a brief description text. Otherwise, blind wikipedians using a screen reader will not know the contents of the image:
[[Image:Cscr-featured.png|Star]] - this insert it on the page with a descriptive text ("Star").
Or as a link:
To make it a link type in:
[[:Image:Cscr-featured.png]] - this will link it
[edit] Aligning an Image
[edit] Left Alignment
To align an Image to the left type in:
[[Image:Cscr-featured.png|left]]
Which will appear like this:
[edit] Right Alignment
To align an Image to the right type in:
[[Image:Cscr-featured.png|right]]
Which will appear like this:
[edit] Center alignment
To align an Image in the middle type in:
[[Image:Cscr-featured.png|center]]
Which will appear like this:
[edit] Auto-alignment
You can auto-align an Image one of two ways.
[edit] 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:
[[Image:Cscr-featured.png|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).
[edit] Thumbnails
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:
[[Image:Cscr-featured.png|thumb]]
Which will appear like this:
[edit] Making Images bigger and smaller
To change the size of an image type:
[[Image:Cscr-featured.png|80px]]
[edit] Captions
To add a caption to an image, type:
[[Image:Cscr-featured.png|thumb|Caption]]
or
[[Image:Cscr-featured.png|thumb|right|Caption]]
or
[[Image:Cscr-featured.png|thumb|right|80px|Caption]]
[edit] Galleries
To make a gallery of images, type
<gallery> Image:Bob.png|Caption Image:Cscr-featured.png|Caption </gallery>
[edit] 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.
Humanist - |
Smiley 13 - |
Smiley 25 - |
[edit] See also
Formatting Pictures |
Title Headers |
Suggested Tools |