Gaming
 

Help:Customising your signature

From the RuneScape Wiki, the wiki for all things RuneScape

Shortcut:
H:CYS
H:CUSTOM
This page is to help you customize your signature! It is important when doing so to realise that other users will often need to access your talk page and perhaps your user page or contributions. Therefore ensure that these links are obvious.

Contents

[edit] Reference

  • Many of these snippets use common HTML elements, the most common of which is <span>. Visit the HTML section at w3schools.com:HTML reference.
  • Much of the flashy, custom effects are done using CSS. For a complete CSS reference, vist the CSS section at w3schools.com:CSS reference

[edit] Basics

Almost all signatures are made using the HTML element <span> using the attribute "style". The style attribute has a number of CSS properties which combine together to produce a wide variety of possible signature forms. Many signatures use two or more <span> tags nested within eachother: one to produce the box within which the links are contained, and one or more to change the style of the links contained within the box. The basic format used in the <span> element is:

<span style="Property1:variable; Property2:variable; Property3:variable;..."></span>

[edit] CSS Properties

[edit] Font colour

Property: color

The easiest way to use this property is to specify a colour name as follows:

Input Output
<span style="color:red;">Text</span> Text

Colour names are limited to a list of recognized colour names which can be found here, however hexadecimal codes can also be input to yield any colour:

Input Output
<span style="color:#00ff00;">Text</span> Text

[edit] Font Size

Property: font-size

This property can be used with words like "large" or "x-small":

Input Output
<span style="font-size:large;">Text</span> Text
<span style="font-size:x-small;">Text</span> Text

More control can be used by substituting a percentage for the size:

Input Output
<span style="font-size:50%;">Text</span> Text
<span style="font-size:125%;">Text</span> Text

[edit] Underline and Strikethrough

Property: text-decoration

Underline and strikethrough both use the same CSS property, but can still be used at the same time

Input Output
<span style="text-decoration:underline;">Text</span> Text
<span style="text-decoration:line-through;">Text</span> Text
<span style="text-decoration:underline line-through;">Text</span> Text

[edit] Font face

Property: font-family

You can specify more than one font with this property, separated by commas. The first one listed is used by default, but if a user, when viewing yoru signature, does not have the first font installed, it will display the second font for them. Generic font styles can also be input, such as "Serif", which have "flares" at the end of the letters, "Sans-serif", which does not have them, and "Monotype", fonts wherein all letters are the same width.

Input Output
<span style="font-family:Times new roman;">Text</span> Text

[edit] Subscript and Superscript

Unlike other formatting code used so far, superscript and subscript does not use the <span> tag, but instead uses separate tags: <sub></sub> and <sup></sup>. These must appear ''outside'' the <span> tag.

Input Output
Text<sup>sup</sup> Textsup
Text<sub>sub</sub> Textsub

[edit] Background colour

Property: background-color

The easiest way to use this property is to specify a colour name, however hexidecimal codes will also work:

Input Output
<span style="background-color:yellow;">Text</span> Text
<span style="background-color:#00ffff;">Text</span> Text

[edit] Borders

Property: border

There are many different types of borders. The most basic border format is:

Input Output
<span style="border:1px solid blue;">Text</span> Text

Extra space can be put between the start and end of the border and the start and end of the text by putting &nbsp; before and after the text. Just like in font colour and background colour, the colour can be a recognized colour name, found here, or a hexidecimal code. The "1px" value can be changed to alter the thickness of the border, and the "solid" variable can be changed to any number of border styles:

 Dotted   Dashed   Solid   Double 
 Groove   Ridge   Inset   Outset 

[edit] Multiple border styles

The above syntax applies styles to all 4 borders at once. To apply styles to a borders one by one, use the following properties:

  • border-bottom
  • border-left
  • border-right
  • border-top
Input Output
<span style="border-bottom:1px solid blue; border-left:2px dashed green; border-right:3px outset red; border-top:2px dotted purple">&nbsp;Text&nbsp;</span>  Text 

[edit] Rounded corners

Property: -moz-border-radius:1em

The "1em" measurement can be changed to any value between 0em and 1em. 1em is produces a quarter-circle corner which takes up half of the shorter edge on either side of the box. .5 em produces a quarter circle corner which takes up one fourth of the shorter edge. Other values are also possible, and adjust the radius accordingly. Due to the rounded corners, it is often necessary to use &nbsp; before and after the text to ensure its not covered by the border.

Input Output
<span style="border:3px solid blue; -moz-border-radius:1em;">&nbsp;Rounded corners&nbsp;</span>  Rounded corners 

It is also possible to set a different radius for each corner by specifying four different em values, one after the other. The order in which they are used is: top-left, top-right, bottom-right, bottom-left. When specifying individual corner radii, it is possible to use measurements larger than 1em, up to 2 em which is a quarter-circle which takes up an entire side.

Input Output
<span style="border:3px solid blue; -moz-border-radius:2em 1em 1em 0em;">&nbsp;&nbsp;Rounded corners&nbsp;</span>   Rounded corners 

[edit] Putting a signature together

As explained in the beginning, multiple styles can be combined in one <span> tag by separating them with semicolons. The first step to creating a signature is to decide on a border and background. This is a step-by-step guide to creating a sample signature for educational purposes, and is by no means the only way to make one.

Step Input Output
Decide on a border and background <span style="background-color:red; border:4px ridge gray;">[[User:Example|Example]]</span> Example
Chose images - the Wiki's signature policy forbids signatures with more than two images, animated images, and images which are too large. <span style="background-color:red; border:4px ridge gray;">[[File:Dragon chainbody.png]] [[User:Example|Example]] [[File:D plate.png]]</span> File:Dragon chainbody.png Example File:D plate.png
Apply formatting to the name using a separate <span> tag and other Wiki formatting <span style="background-color:red; border:4px ridge gray;">[[File:Dragon chainbody.png]] [[User:Example|<span style="color:white;">'''Example'''</span>]] [[File:D plate.png]]</span> File:Dragon chainbody.png Example File:D plate.png
Add a link to the talk page in superscript and another <span> tag. <span style="background-color:red; border:4px ridge gray;">[[File:Dragon chainbody.png]] [[User:Example|<span style="color:white;">'''Example'''</span>]] <sup>[[User talk:Example|<span style="color:white;">'''Talk'''</span>]]</sup> [[File:D plate.png]]</span> File:Dragon chainbody.png Example Talk File:D plate.png

[edit] See also