Wikipedia:User page design center/Style
From Wikipedia, the free encyclopedia
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....
Contents |
[edit] Skins
[edit] Layout themes
[edit] Article format
The default format for user pages is the article format, using 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] Format elements
[edit] 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.
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
- First, create a user subpage (described in this section) titled "User:Example User/Header"
- 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")
- Transclude the header onto your userpage (transcluding was described in the making subpages section)
- Follow this link to see an example of the header. It will be at the top-left side of the page.
Example code:
{| 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
|}
[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 least 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 2008, round corners will only display in Mozilla Firefox, Apple Safari and Google Chrome.
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
Ah, the sissy way to do it.
Here's the manly way: -moz-border-radius:Xpx, where X is the number of pixels wide the rounded edge should be.
[edit] Color
|
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| black | gray | silver | white | maroon | red | purple | fuchsia | green | lime | olive | yellow | navy | blue | teal | aqua |
[edit] Change page color with CSS
To change the color of your user page, simply age the following code, replacing the Capatilized 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) translucated from User:Resident Mario/Tablet
[edit] ContentsTo 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 boxesTo 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:
The possible functions are overflow:"scroll" (puts two scroll bars), overflow:"auto" (puts scrollbars only when necessary), oveflow:"hidden" (hides overflow), and overflow:"visible" (auto; overflow simply flows out of the border). [edit] Show/Hide sectionsHere's an example of collapsed/expandable sections: About me
Subpages
To do
Licensing
Also, there is a template: Template:Hide. For example: Example Header
TEXT TEXT TEXT. Made with {{hide|Example Header|TEXT TEXT TEXT}}. Remember that by editing the width, yu ccan put multiple NavFrames on the space. You can, off course, change colors, too. [edit] Action links[edit] Switched features[edit] Boxes
Hi
[edit] Curved borders
Hi, I'm trying to get your attention and differentiate my message on the page.
[edit] Text formatting[edit] Center-Align
<div style="text-align: center;"> Centered text </div>
Centered text [edit] Strike Through Text
<s>blah blah blah</s>
[edit] Superscript
<sup>blah blah blah</sup>
blah blah blah blah blah blah [edit] Subscript
<sub>blah blah blah</sub>
blah blah blah blah blah blah [edit] Hidden Comment
<!-- blah blah blah-->
[edit] Secondary Headline
==blah blah blah== [edit] Tab
::blah blah blah
[edit] Font Color
<span style="color: red">blah blah blah</span>
blah blah blah
<font color="red">blah blah blah</font>
blah blah blah [edit] Mouse Cursor
<span style="cursor: crosshair;">blah blah blah</span>
blah blah blah [edit] Links
<span class="plainlinks"><font color="002bb8">[http://wikipedia.com external link]</font></span>
[edit] Bolding
'''text'''
text [edit] Italics
''text''
text [edit] Underlining
<u>text</u>
text [edit] Font size
<font size="4">blah blah blah</font>
blah blah blah [edit] Font Families
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
[edit] Picture formattingImages, with the proper copyright tags, can be placed onto your userpage. [edit] Inserting an Image[[Image:Cscr-featured.png]] This inserts an image as seen below. [[Image:Cscr-featured.png|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. [[:Image:Cscr-featured.png]] Add a colon before Image to create a link to an image. [edit] Left Alignment[[Image:Cscr-featured.png|left]] This aligns an Image to the left. [edit] Right Alignment[[Image:Cscr-featured.png|right]] This aligns an Image to the right. [edit] Center alignment[[Image:Cscr-featured.png|center]] This aligns an Image in the middle. [edit] Auto-alignmentYou can auto-align an Image one of two ways. [edit] FramingFraming 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] ThumbnailsThumbnailing 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 smallerTo change the size of an image type: [[Image:Cscr-featured.png|80px]] [edit] CaptionsTo 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] GalleriesTo make a gallery of images, type <gallery> Image:Bob.png|Caption Image:Cscr-featured.png|Caption </gallery> [edit] TemplatesThere 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.
[edit] EmoticonsAlso 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.
[edit] See also
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
