வார்ப்புரு:StatusTemplate/doc
{{Documentation subpage}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
 
 === Usage ===
 
 #Create [[Special:Mypage/Status]]. You can place any text in here, it doesn't matter; just create it.
 #Go to your [[Special:Mypage/skin.js|vector.js file]] and add &lt;code&gt;importScript('User:Henrik/js/automod.js');&lt;/code&gt; 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.
 #[[WP:BYPASS|Clear your browser's cache]]. The script may not work if you don't.
 #Add this template where you want to use it, like so: {{tn|StatusTemplate}} .
 #Save the page.
 #Click one of the eight &quot;Update&quot; 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 [[User:Henrik/js/automod.js|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.
 
 {| class=&quot;wikitable&quot;
 ! Trigger !! Result
 |-
 |
 |&lt;span style=&quot;color:gray;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol neutral vote.svg|20px]] &lt;span style=&quot;color:gray;&quot;&gt;'''Somewhere'''&lt;/span&gt;
 |-
 |online
 |&lt;span style=&quot;color:green;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol support vote.svg|20px]] &lt;span style=&quot;color:green;&quot;&gt;'''Online'''&lt;/span&gt;
 |-
 |offline
 |&lt;span style=&quot;color:red;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol oppose vote.svg|20px]] &lt;span style=&quot;color:red;&quot;&gt;'''Offline'''&lt;/span&gt;
 |-
 |busy
 |&lt;span style=&quot;color:Blue;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol support2 vote.svg|20px]] &lt;span style=&quot;color:Blue;&quot;&gt;'''Busy'''&lt;/span&gt;
 &lt;small&gt;I may not be actively editing,&lt;br /&gt;but I am around.&lt;/small&gt;
 |-
 |around
 |&lt;span style=&quot;color:blue;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol support2 vote.svg|20px]] &lt;span style=&quot;color:blue;&quot;&gt;'''Around'''&lt;/span&gt;
 |-
 |sleep
 |&lt;span style=&quot;color:Purple;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol wtf vote.svg|20px]] &lt;span style=&quot;color:Purple;&quot;&gt;'''Asleep'''&lt;/span&gt;
 &lt;small&gt;I'm currently asleep,&lt;br /&gt;I'll respond to messages tomorrow.&lt;/small&gt;
 |-
 |wikibreak
 |&lt;span style=&quot;color:brown;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol comment.svg|20px]] &lt;span style=&quot;color:brown;&quot;&gt;'''On a Wikibreak'''&lt;/span&gt;
 |-
 |away
 |&lt;span style=&quot;color:grey;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Time2wait.svg|20px]] &lt;span style=&quot;color:grey;&quot;&gt;'''Away'''&lt;/span&gt;
 |-
 |holiday
 |&lt;span style=&quot;color:#7B68EE;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:Symbol deferred.svg|20px]] &lt;span style=&quot;color:#7B68EE;&quot;&gt;'''On Holiday'''&lt;/span&gt;
 |-
 |in class
 |&lt;span style=&quot;color:red;&quot;&gt;'''&lt;small&gt;{{{1|{{BASEPAGENAME}}}}} is&lt;/small&gt;'''&lt;/span&gt; [[படிமம்:School.svg|20px]] &lt;span style=&quot;color:red;&quot;&gt;'''In Class'''&lt;/span&gt;
 |}
 
 ==== Parameters ====
 
 *'''&lt;tt&gt;1=&lt;/tt&gt; 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: &lt;tt&gt;&lt;nowiki&gt;{{StatusTemplate|Hersfold non-admin}}&lt;/nowiki&gt;&lt;/tt&gt; This should not be necessary when using this template on one of your own subpages.
 *'''&lt;tt&gt;align={left|center|right}&lt;/tt&gt;''' Use this to control where the box is displayed. The template will float to the left by default, however can be made to float right with &lt;tt&gt;align=right&lt;/tt&gt;. Using &quot;center&quot; will cause the box to spread across the page like a banner - see &quot;[[#Known issues|Known issues]]&quot; below.
 *'''&lt;tt&gt;irc=y&lt;/tt&gt;''' Use this to change &quot;Busy&quot; to &quot;On IRC&quot;
 *'''&lt;tt&gt;url=&lt;/tt&gt;''' When specifying a custom username with &lt;tt&gt;1=&lt;/tt&gt; 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 [[Percent-encoding|URL encoded]] version of the username to correct the problem. Example: [[User:Joe's Username]] would need to use the template like so: &lt;tt&gt;&lt;nowiki&gt;{{StatusTemplate|Joe's Username|url=Joe%27s_Username}}&lt;/nowiki&gt;&lt;/tt&gt;.
 
 === Known issues ===
 
 *'''Usernames with spaces:''' When adding a custom username to the template, you will need to use the &lt;tt&gt;url=&lt;/tt&gt; 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 [http://www.motobit.com/util/url-encoder.asp 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 &lt;tt&gt;align=center&lt;/tt&gt; 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 &quot;float&quot; 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.
 
 === See also ===
 
 *{{tl|UserStatus}} - the statuses of which this template is based off
 *{{ul2|Hersfold/StatusTemplate}} - the original template made by [[User:Hersfold|Hersfold]], no longer maintained or updated.
 &lt;includeonly&gt;
 &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;