# வார்ப்புரு:StatusTemplate/doc



### Usage

1. Create Special:Mypage/Status. You can place any text in here, it doesn't matter; just create it.
1. Go to your vector.js file and add <code>importScript('User:Henrik/js/automod.js');</code> This script is necessary for the automated update links to work. Some other scripts already include this one - don't worry, installing this twice (or more) won't hurt anything.
1. Clear your browser's cache. The script may not work if you don't.
1. Add this template where you want to use it, like so: .
1. Save the page.
1. Click one of the eight "Update" links. This will automatically update the /Status page you created in Step 1 to something this template can recognize.

**Note:** Due to the bugginess of Henrik's automod script the auto update links may not work for long periods of time, if you know of a way to fix this issue it'd be most appreciated.  

**<span>**<small>} is</small>**</span> <span>**Somewhere**</span>**

| online | <span>**<small>} is</small>**</span> <span>**Online**</span> |  |
| --- | --- | --- |
| offline | <span>**<small>} is</small>**</span> <span>**Offline**</span> |  |
| busy | <span>**<small>} is</small>**</span> <span>**Busy**</span>
<small>I may not be actively editing,
but I am around.</small> |  |
| around | <span>**<small>} is</small>**</span> <span>**Around**</span> |  |
| sleep | <span>**<small>} is</small>**</span> <span>**Asleep**</span>
<small>I'm currently asleep,
I'll respond to messages tomorrow.</small> |  |
| wikibreak | <span>**<small>} is</small>**</span> <span>**On a Wikibreak**</span> |  |
| away | <span>**<small>} is</small>**</span> <span>**Away**</span> |  |
| holiday | <span>**<small>} is</small>**</span> <span>**On Holiday**</span> |  |
| in class | <span>**<small>} is</small>**</span> <span>**In Class**</span> | } |

#### Parameters

- **<tt>1=</tt> or first unnamed parameter** If you want to display another user's status, or you are having trouble with the editing links (see below), enter the custom username (without the User: prefix) to correct the issue. Example: <tt></tt> This should not be necessary when using this template on one of your own subpages.
- **<tt>align={}</tt>** Use this to control where the box is displayed. The template will float to the by default, however can be made to float with <tt>align=</tt>. Using "" will cause the box to spread across the page like a banner - see "Known issues" below.
- **<tt>irc=y</tt>** Use this to change "Busy" to "On IRC"
- **<tt>url=</tt>** When specifying a custom username with <tt>1=</tt> as described above, some usernames (those with spaces or special characters) may cause the edit links to display incorrectly or not function. Use this to supply a URL encoded version of the username to correct the problem. Example: User:Joe's Username would need to use the template like so: <tt></tt>.

### Known issues

- **Usernames with spaces:** When adding a custom username to the template, you will need to use the <tt>url=</tt> parameter as described above to replace spaces with underscores (_) to allow for the correct operation of the edit links. This should not be necessary when using the default username, which the template is able to retrieve from the page title.
- **Usernames with special characters:** See above. Special characters must be replaced with their corresponding percent code - a limited number of these can be found at the article on Percent-encoding, some others may be found on the article about that particular symbol. If that doesn't help, try using this site to translate your username. This should not be necessary when using the default username, which the template is able to retrieve (and translate) from the page title.
- **Center alignment:** Due to limitations of either the MediaWiki software or internet browsers (not sure which), using <tt>align=</tt> will cause the box to be centered, but will also cause it to spread across the entire page. Whoever's fault it is, I am unable to fix this within the template. Workarounds do exist, but they are generally somewhat complicated and the template will no longer "float" over the page as it is designed to do. If you want such a workaround and can't figure it out yourself, let me know.

=